Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zzndb:Qv2ray
Xray-core
Xray-core.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Xray-core.spec of Package Xray-core
# # spec file for package Xray-core # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # disable debug packages %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %global debug_package %{nil} %endif %define project xray Name: Xray-core Version: 1.8.10 Release: 0 Summary: The best v2ray-core with XTLS support License: MPL-2.0 URL: https://github.com/XTLS/Xray-core Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Source2: xray.service Source3: geoip.dat Source4: geosite.dat Source5: xray@.service BuildRequires: fdupes BuildRequires: golang(API) = 1.22 BuildRequires: pkgconfig(systemd) %{?systemd_ordering} %description Project X originates from XTLS protocol, provides a set of network tools such as Xray-core and Xray-flutter. %prep %setup -q -a 1 -n %{name}-%{version} %build go build -mod vendor -buildmode pie -trimpath -ldflags="-s -w -buildid=" -o xray ./main %install install -d %{buildroot}%{_bindir} install -m0755 xray %{buildroot}%{_bindir}/ install -d %{buildroot}%{_unitdir}/xray install -m0644 %{S:2} %{buildroot}%{_unitdir}/ install -m0644 %{S:5} %{buildroot}%{_unitdir}/ install -d %{buildroot}%{_sysconfdir}/xray install -d %{buildroot}%{_sbindir} ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxray install -d %{buildroot}%{_datadir}/xray install -m0644 %{S:3} %{buildroot}%{_datadir}/xray/ install -m0644 %{S:4} %{buildroot}%{_datadir}/xray/ %pre %if 0%{?suse_version} %service_add_pre %{project}.service %{project}@.service ## No need for Fedora/CentOS %endif %post %if 0%{?suse_version} %service_add_post %{project}.service %{project}@.service %else %systemd_post %{project}.service %{project}@.service %endif %preun %if 0%{?suse_version} %service_del_preun %{project}.service %{project}@.service %else %systemd_preun %{project}.service %{project}@.service %endif %postun %if 0%{?suse_version} %service_del_postun %{project}.service %{project}@.service %else %systemd_postun_with_restart %{project}.service %{project}@.service %endif %files %defattr(-,root,root) %license LICENSE %doc README.md %{_bindir}/xray %{_unitdir}/xray.service %{_unitdir}/xray@.service %dir %{_sysconfdir}/xray ## %config(noreplace) %{_sysconfdir}/xray/*.json %{_sbindir}/rcxray %dir %{_datadir}/xray %{_datadir}/xray/geoip.dat %{_datadir}/xray/geosite.dat %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