mirror of
https://abf.rosa.ru/djam/spoofdpi.git
synced 2025-02-24 02:02:55 +00:00
35 lines
965 B
RPMSpec
35 lines
965 B
RPMSpec
%global oname SpoofDPI
|
|
%global debug_package %nil
|
|
|
|
Summary: A simple and fast software designed to bypass Deep Packet Inspection
|
|
Name: spoofdpi
|
|
Version: 0.10.2
|
|
Release: 1
|
|
License: BSD
|
|
Group: Text tools
|
|
Url: https://github.com/xvzc/SpoofDPI
|
|
Source0: https://github.com/xvzc/SpoofDPI/archive/refs/tags/v%{version}.tar.gz
|
|
Source1: spoof-dpi.service
|
|
BuildRequires: golang
|
|
Provides: SpoofDPI = %{EVRD}
|
|
|
|
%description
|
|
A simple and fast software designed to bypass Deep Packet Inspection
|
|
|
|
%files
|
|
%{_bindir}/spoof-dpi
|
|
%{_userunitdir}/spoof-dpi.service
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{oname}-%{version}
|
|
|
|
%build
|
|
go build -a -v -ldflags="-w -s -X main.VERSION=%{version}" github.com/xvzc/SpoofDPI/cmd/spoof-dpi
|
|
|
|
%install
|
|
install -d %{buildroot}/%{_bindir}/
|
|
install -m 0755 spoof-dpi %{buildroot}/%{_bindir}/
|
|
install -d %{buildroot}/%{_userunitdir}
|
|
install -m 0644 %{S:1} %{buildroot}/%{_userunitdir}
|