diff --git a/.abf.yml b/.abf.yml index 512926b..1aeceef 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,2 @@ sources: - v0.10.4.tar.gz: 6deec878c22b99324b50c5e02ed79f18214fab7b + spoofdpi-0.10.6.tar.gz: 7b2f2163102b6ac23cfb55eea37629cd9873e0e9 diff --git a/spoofdpi.spec b/spoofdpi.spec index b019b08..b81119a 100644 --- a/spoofdpi.spec +++ b/spoofdpi.spec @@ -4,13 +4,15 @@ Summary: A simple and fast software designed to bypass Deep Packet Inspection Name: spoofdpi -Version: 0.10.4 +Version: 0.10.6 Release: 1 -License: BSD -Group: Text tools +License: Apache-2.0 +Group: Networking/Other Url: https://github.com/xvzc/SpoofDPI -Source0: https://github.com/xvzc/SpoofDPI/archive/refs/tags/v%{version}.tar.gz +Source0: https://github.com/xvzc/SpoofDPI/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz Source1: spoof-dpi.service +# use 'go mod vendor' command and archive vendor directory +Source2: vendor.tar.gz BuildRequires: golang Provides: SpoofDPI = %{EVRD} @@ -24,19 +26,17 @@ A simple and fast software designed to bypass Deep Packet Inspection #---------------------------------------------------------------------------- %prep -%autosetup -p1 -n %{oname}-%{version} +%autosetup -p1 -n %{oname}-%{version} -a2 %build mkdir -p src/github.com/xvzc ln -s ../../../ src/github.com/xvzc/SpoofDPI export GOPATH=$(pwd):%{gopath} -pushd cmd/spoof-dpi -%gobuild -o ../../bin/spoof-dpi -popd +%gobuild -o ./bin/spoof-dpi ./cmd/spoof-dpi %install install -d %{buildroot}/%{_bindir}/ install -m 0755 bin/spoof-dpi %{buildroot}/%{_bindir}/ install -d %{buildroot}/%{_userunitdir} -install -m 0644 %{S:1} %{buildroot}/%{_userunitdir} +install -m 0644 %{SOURCE1} %{buildroot}/%{_userunitdir}