%global debug_package %{nil} Name: xray Version: 1.8.11 Release: 1%{?dist} Summary: Xray, Penetrates Everything. License: MPL-2.0 URL: https://github.com/XTLS/Xray-core Source0: %{name}-%{version}.tar.gz Source1: config.json Source2: https://github.com/v2fly/geoip/releases/latest/download/geoip.dat Source3: https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat #BuildRequires: golang >= 1.20 %if 0%{?rhel} && 0%{?rhel} < 8 BuildRequires: systemd %else BuildRequires: systemd-rpm-macros %endif %{?systemd_requires} Provides: Productivity/Networking/Web/Proxy %description Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration. %prep %autosetup %build # https://pagure.io/go-rpm-macros/c/1cc7f5d9026175bb6cb1b8c889355d0c4fc0e40a %undefine _auto_set_build_flags LDFLAGS='-s -w -buildid=' env CGO_ENABLED=0 go build -v -trimpath -ldflags "$LDFLAGS" -o %{name} ./main %install %{__install} -d %{buildroot}%{_bindir} %{__install} -p -m 755 %{name} %{buildroot}%{_bindir} %{__install} -d %{buildroot}%{_sysconfdir}/%{name} %{__install} -p -m 644 %{S:1} %{buildroot}%{_sysconfdir}/%{name}/config.json %{__install} -d %{buildroot}%{_datadir}/%{name} %{__install} -p -m 0644 %{S:2} %{buildroot}%{_datadir}/%{name}/geoip.dat %{__install} -p -m 0644 %{S:3} %{buildroot}%{_datadir}/%{name}/geosite.dat %{__install} -d %{buildroot}%{_unitdir} cat > %{buildroot}%{_unitdir}/%{name}.service < %{buildroot}%{_unitdir}/%{name}@.service < - 1.8.11-1 - Update to version 1.8.11 * Sat Mar 30 2024 Teddysun - 1.8.10-1 - Update to version 1.8.10 * Mon Mar 11 2024 Teddysun - 1.8.9-1 - Update to version 1.8.9 * Mon Feb 26 2024 Teddysun - 1.8.8-1 - Update to version 1.8.8 * Mon Jan 08 2024 Teddysun - 1.8.7-1 - Update to version 1.8.7 * Sat Nov 18 2023 Teddysun - 1.8.6-1 - Update to version 1.8.6 * Tue Nov 14 2023 Teddysun - 1.8.5-1 - Update to version 1.8.5 * Wed Oct 18 2023 Teddysun - 1.8.4-1 - Update to version 1.8.4