mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
37 lines
824 B
RPMSpec
37 lines
824 B
RPMSpec
#
|
|
# spec file for package xray-plugin
|
|
#
|
|
Name: xray-plugin
|
|
Version: 1.8.15
|
|
Release: 1%{?dist}
|
|
Summary: A SIP003 plugin for shadowsocks
|
|
License: MIT
|
|
Group: Productivity/Networking/Security
|
|
URL: https://github.com/teddysun/xray-plugin
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRequires: bash
|
|
|
|
%global debug_package %{nil}
|
|
%global _missing_build_ids_terminate_build 0
|
|
|
|
%description
|
|
Yet another SIP003 plugin for shadowsocks, based on xray-core
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
export CGO_ENABLED=0
|
|
go build -v -trimpath -ldflags "-X main.VERSION=v%{version} -s -w -buildid=" -o xray-plugin
|
|
|
|
%install
|
|
# install binary
|
|
install -D -p -m 0755 xray-plugin %{buildroot}%{_bindir}/xray-plugin
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.md
|
|
%{_bindir}/xray-plugin
|
|
%license LICENSE
|