%global forgeurl https://github.com/amnezia-vpn/amneziawg-tools %global version 1.0 %global commit 5c6ffd6168f7c69199200a91803fa02e1b8c4152 %global date 20250903 %global source_date_epoch_from_changelog 0 %forgemeta Name: amneziawg-tools Version: %{forgeversion} Release: %{autorelease} URL: %{forgeurl} Summary:AmneziaWG VPN kernel module License: GPL-2.0-or-later Source0: %{forgesource} %{?systemd_requires} BuildRequires: make BuildRequires: systemd BuildRequires: gcc Requires: kmod(amneziawg.ko) %description AmneziaWG is a VPN solution with traffic obfuscation. It is based on WireGuard and relies on UDP. This package provides the service binary tools. %prep %forgesetup %build %set_build_flags ## Start DNS Hatchet %if (0%{?fedora} && 0%{?fedora} < 33) || (0%{?rhel} && 0%{?rhel} < 9) pushd contrib/dns-hatchet ./apply.sh popd %endif ## End DNS Hatchet %make_build RUNSTATEDIR=%{_rundir} -C src %install %make_install BINDIR=%{_bindir} MANDIR=%{_mandir} RUNSTATEDIR=%{_rundir} \ WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes WITH_SYSTEMDUNITS=yes -C src %files %doc README.md contrib %license COPYING %{_bindir}/awg %{_bindir}/awg-quick %{_sysconfdir}/amnezia/amneziawg/ %{_datadir}/bash-completion/completions/awg %{_datadir}/bash-completion/completions/awg-quick %{_unitdir}/awg-quick@.service %{_unitdir}/awg-quick.target %{_mandir}/man8/awg.8* %{_mandir}/man8/awg-quick.8*