commit 35ec7d4e82a5e633302774f25d68cf3265a8a51d
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Thu Apr 4 19:35:32 2019 +0200
Unifying spec with Lubomir Rintel's one
Rebuilt for akmods-ostree-post scriptlet
Signed-off-by: Robert-André Mauchin <zebob.m(a)gmail.com>
wireguard.spec | 42 +++++++++++++++++++-----------------------
1 file changed, 19 insertions(+), 23 deletions(-)
---
diff --git a/wireguard.spec b/wireguard.spec
index 8e5d988..2ca3050 100644
--- a/wireguard.spec
+++ b/wireguard.spec
@@ -1,7 +1,7 @@
Name: wireguard
Summary: Fast, modern, secure VPN tunnel
Version: 0.0.20190227
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2
URL:
https://www.wireguard.com/
@@ -17,41 +17,33 @@ Provides: %{name}-kmod-common = %{version}
Requires: %{name}-kmod >= %{version}
%description
-WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
-state-of-the-art cryptography. It aims to be faster, simpler, leaner,
-and more useful than IPSec, while avoiding the massive headache. It intends
-to be considerably more performant than OpenVPN. WireGuard is designed as a
-general purpose VPN for running on embedded interfaces and super computers
+WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
+state-of-the-art cryptography. It aims to be faster, simpler, leaner,
+and more useful than IPSec, while avoiding the massive headache. It intends
+to be considerably more performant than OpenVPN. WireGuard is designed as a
+general purpose VPN for running on embedded interfaces and super computers
alike, fit for many different circumstances. It runs over UDP.
%prep
-%autosetup -n WireGuard-%{version} different circumstances. It runs over UDP.
+%autosetup -n WireGuard-%{version}
# Remove .gitignore files in examples
find contrib/ -type f -name ".gitignore" -exec rm "{}" \;
# Do not use /usr/bin/env
sed -i '1s@/usr/bin/env bash@/bin/bash@'
contrib/examples/ncat-client-server/client-quick.sh
-# Use standard perms for /etc/wireguard
-sed -i 's|install -v -m 0700|install -v -m 0755|' src/tools/Makefile
%build
%set_build_flags
-
-pushd contrib/examples/dns-hatchet
-sh apply.sh
-popd
-
-pushd src/tools
-%make_build V=1
-popd
+%make_build V=1 -C src/tools
%install
-pushd src/tools
-%make_install
-popd
+%make_install -C src/tools \
+ WITH_BASHCOMPLETION=yes \
+ WITH_WGQUICK=yes \
+ WITH_SYSTEMDUNITS=yes
%post
@@ -71,17 +63,21 @@ popd
%license COPYING
%{_bindir}/wg
%{_bindir}/wg-quick
+%{_unitdir}/wg-quick@.service
%{_sysconfdir}/wireguard
+%{_mandir}/man8/wg.8*
+%{_mandir}/man8/wg-quick.8*
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/wg
%{_datadir}/bash-completion/completions/wg-quick
-%{_unitdir}/wg-quick@.service
-%{_mandir}/man8/wg.8*
-%{_mandir}/man8/wg-quick.8*
%changelog
+* Thu Mar 07 2019 Robert-André Mauchin <zebob.m(a)gmail.com> - 0.0.20190227-3
+- Unifying spec with Lubomir Rintel's one
+- Rebuilt for akmods-ostree-post scriptlet
+
* Tue Mar 05 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
0.0.20190227-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild