Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:davidxuang
xray-core
_service:set_version:xray-core.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:xray-core.spec of Package xray-core
%define provider github %define provider_tld com %define project xtls %define repo xray-core # https://github.com/xtls/xray-core %define provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %define import_path github.com/xtls/xray-core Name: xray-core Version: 1.8.15 Release: 0 Summary: Network tools for building a computer network License: MPL-2.0 Group: Productivity/Networking/Web/Proxy URL: https://github.com/xtls/xray-core Source0: %{repo}-%{version}.tar.gz Source1: debian.vendor.gz Source2: debian.xray.service Source3: debian.xray@.service Source4: debian.geoip.dat Source5: debian.geosite.dat Source6: debian.config.json Source99: %{name}-rpmlintrc BuildRequires: fdupes BuildRequires: golang-packaging BuildRequires: systemd-rpm-macros BuildRequires: golang(API) = 1.22 BuildRequires: pkgconfig(systemd) AutoReqProv: Off Provides: xray = %{version}-%{release} Obsoletes: xray < %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %{go_provides} %{?systemd_ordering} %description Project X is a set of network tools for building a computer network. It secures network connections and protects privacy. %package -n golang-%{provider}-%{project}-%{repo} Summary: Additional mobile libraries Group: Development/Languages/Golang BuildArch: noarch %description -n golang-%{provider}-%{project}-%{repo} Project X is a set of network tools for building a computer network. It secures network connections and protects privacy. This package provide source code for %{repo} %prep %setup -q -a1 -n %{repo}-%{version} %build %goprep %{import_path} %gobuild main... mv %{_builddir}/go/bin/main %{_builddir}/go/bin/xray %install %goinstall %gosrc %gofilelist install -d %{buildroot}%{_unitdir} install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/xray.service install -m0644 %{SOURCE3} %{buildroot}%{_unitdir}/xray@.service install -d %{buildroot}%{_datadir}/xray install -m0644 %{SOURCE4} %{buildroot}%{_datadir}/xray/geoip.dat install -m0644 %{SOURCE5} %{buildroot}%{_datadir}/xray/geosite.dat install -d %{buildroot}%{_sysconfdir}/xray install -m0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/xray/config.json %fdupes %{buildroot} %pre %service_add_pre xray.service xray@.service %post %service_add_post xray.service xray@.service %preun %service_del_preun xray.service xray@.service %postun %service_del_postun xray.service xray@.service %files %doc README.md %license LICENSE %{_bindir}/xray %{_unitdir}/xray.service %{_unitdir}/xray@.service %dir %{_datadir}/xray %{_datadir}/xray/* %dir %{_sysconfdir}/xray %config(noreplace) %{_sysconfdir}/xray/*.json %files -n golang-%{provider}-%{project}-%{repo} -f file.lst %doc README.md %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor