blob: bc40b582ea60d85f48f32482c24102d281d2bdf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
%global commit 85a871c1d226956df7c1308a1e5527556fe35fe1
Name: tunsafe
Version: 1.5rc2
Release: 1%{?dist}
Summary: WireGuard VPN client
License: AGPL-1.0 AND BSD-3-Clause AND OpenSSL
URL: https://github.com/TunSafe/TunSafe
Source0: https://github.com/TunSafe/TunSafe/archive/%{commit}.tar.gz
BuildRequires: clang
%description
High performance and secure VPN client that uses the WireGuard protocol.
%prep
%setup -q -n TunSafe-%{commit}
%build
sed -i "s|clang++-6.0|clang++ -g $CXXFLAGS|;s|-lrt|-lrt $LDFLAGS|" build_linux.sh
#sed -i "s|-mtls-dialect=gnu2||g" build_linux.sh
#sed -i "s|-flto=auto||g; s|-ffat-lto-objects||g" build_linux.sh
make
%install
install -Dm755 %{name} %{buildroot}/%{_bindir}/%{name}
%files
%license LICENSE.AGPL.TXT installer/LICENSE.TXT
%doc docs/*txt installer/TunSafe.conf installer/ChangeLog.txt
%{_bindir}/%{name}
%changelog
|