From 287c8d9d2a2535720205e9f5c60e7e57faed0537 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Tue, 21 Jul 2020 22:47:57 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ shadowsocks-rust.spec | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .abf.yml create mode 100644 shadowsocks-rust.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..f04e86d --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + shadowsocks-rust-1.8.13.tar.gz: 3fbe9804930729087b1e19262ca99b810c4730ed diff --git a/shadowsocks-rust.spec b/shadowsocks-rust.spec new file mode 100644 index 0000000..60394f9 --- /dev/null +++ b/shadowsocks-rust.spec @@ -0,0 +1,36 @@ +%define debug %nil +%define debug_package %nil + +Name: shadowsocks-rust +Version: 1.8.13 +Release: 1 +Summary: Shadowsocks on rust +URL: https://shadowsocks.org +Source0: https://github.com/shadowsocks/shadowsocks-rust/archive/v%{version}/%{name}-%{version}.tar.gz +License: MIT +Group: Networking/Other +BuildRequires: rust +Provides: ssserver == %{version} +Provides: sslocal == %{version} +Provides: ssmanager == %{version} +Provides: ssurl == %{version} + +%description +shadowsocks is a fast tunnel proxy that helps you bypass firewalls + +%prep +%setup -q + +%build +make build TARGET=release + +%install +make install DESTDIR=%{buildroot} PREFIX=%{_bindir} TARGET=release + +%files +%doc README.md LICENSE examples/ +%{_bindir}/ssserver +%{_bindir}/sslocal +%{_bindir}/ssmanager +%{_bindir}/ssurl +