Name: xraysm Version: 26.5.9 Release: %{autorelease} Summary: XTLS/Xray proxy platform License: MPL-2.0 URL: https://github.com/XTLS/Xray-core Source0: https://github.com/XTLS/Xray-core/archive/refs/tags/v%{version}.tar.gz#/xraysm-%{version}.tar.gz Source1: xraysm.service Source2: xraysm@.service BuildRequires: golang-bin BuildRequires: go-rpm-macros BuildRequires: systemd-rpm-macros %define debug_package %{nil} %description XTLS/Xray is an advanced proxy platform. It allows to circumvent censorship and data discrimination. %prep %autosetup -n Xray-core-%{version} %build export GOPROXY="https://proxy.golang.org,direct" export GOFLAGS="-trimpath" export GO111MODULE=on export GO_LDFLAGS="-s -w" go mod download -x go mod verify %gobuild -o %{name} ./main %install %__install -p -m 755 -d -T %{buildroot}%{_sysconfdir}/%{name} %__install -p -m 644 -D -t %{buildroot}%{_unitdir} %{SOURCE1} %{SOURCE2} %__install -p -m 755 -D -t %{buildroot}%{_bindir} %{name} %__install -p -m 644 -D -t %{buildroot}%{_licensedir}/%{name} LICENSE %__install -p -m 644 -D -t %{buildroot}%{_pkgdocdir} README.md %post %systemd_post %{name}.service %{name}@.service %preun %systemd_preun %{name}.service %{name}@.service %postun %systemd_postun_with_restart %{name}.service %{name}@\*.service %files %license %{_licensedir}/* %doc %{_pkgdocdir} %{_sysconfdir}/* %{_unitdir}/* %{_bindir}/* %changelog * Wed May 20 2026 vx32 - 26.5.9 - first