Files
packages/anda/langs/go/v2ray/stable/v2ray.spec
T
2026-04-12 21:35:08 +00:00

68 lines
1.4 KiB
RPMSpec

%global goipath github.com/v2fly/v2ray-core
Version: 5.49.0
%global golicenses LICENSE
%global godocs README.md SECURITY.md
%gometa -f
Name: v2ray
Release: 1%{?dist}
Summary: A platform for building proxies to bypass network restrictions
License: MIT
Packager: veuxit <erroor234@gmail.com>
URL: %{gourl}
Source: %{gosource}
Conflicts: v2ray-nightly
Requires: v2ray-geoip v2ray-domain-list-community
BuildRequires: go go-rpm-macros go-srpm-macros anda-srpm-macros
%description
%summary.
%gopkg
%prep
%goprep_online -A
%build
%gobuild -o v2ray ./main
%install
%gopkginstall
install -Dm755 v2ray %{buildroot}%{_bindir}/v2ray
install -Dm644 release/config/systemd/system/v2ray.service -t %{buildroot}%{_unitdir}/
install -Dm644 release/config/systemd/system/v2ray@.service -t %{buildroot}%{_unitdir}/
install -Dm644 release/config/*.json -t %{buildroot}/%{_sysconfdir}/v2ray/
%post
%systemd_post v2ray.service
%preun
%systemd_preun v2ray.service
%postun
%systemd_postun_with_restart v2ray.service
%files
%doc README.md
%doc SECURITY.md
%license LICENSE
%{_bindir}/v2ray
%{_unitdir}/v2ray.service
%{_unitdir}/v2ray@.service
%{_sysconfdir}/v2ray/config.json
%{_sysconfdir}/v2ray/vpoint_socks_vmess.json
%{_sysconfdir}/v2ray/vpoint_vmess_freedom.json
%gopkgfiles
%changelog
* Sun Mar 8 2026 veuxit <erroor234@gmail.com> - 5.44.1-1
- Initial package release