%define debug_package %{nil} %global forgeurl https://github.com/ntop/ipt_geofence %global commit dfc6e4945fc168e605d93bbf5787be26351a651b %forgemeta Name: ipt-geofence Version: 0 Release: 1%{?dist} Summary: zzzzzzzzzzz License: LGPLv3 URL: %{forgeurl} Source0: %{forgesource} Source1: ipt_geofence.nft Source2: stop-ipt_geofence.nft Source3: ipt-geofence-nfttables.service Patch0: configure.patch Patch1: include.patch Patch2: systemd.patch BuildRequires: autoconf automake libtool %description aaaa %prep %forgesetup %patch0 -p 1 %patch1 -p 1 %patch2 -p 1 %build sh autogen.sh %configure %make_build %install install -D -p -t %{buildroot}/%{_bindir} ipt_geofence install -D -m 0644 -vp packages/etc/ipt_geofence/config.json.sample %{buildroot}%{_sysconfdir}/ipt_geofence/config.json install -D -m 0644 -vp %{SOURCE1} %{buildroot}%{_sysconfdir}/ipt_geofence/ install -D -m 0644 -vp %{SOURCE2} %{buildroot}%{_sysconfdir}/ipt_geofence/ install -D -m 0644 -vp packages/etc/systemd/system/ipt_geofence.service.in %{buildroot}%{_unitdir}/ipt_geofence.service install -D -m 0644 -vp %{SOURCE3} %{buildroot}%{_unitdir}/ %check %files %license LICENSE %doc README.md %{_bindir}/ipt_geofence %{_unitdir}/* %{_sysconfdir}/ipt_geofence/* %changelog * Tue Feb 1 2022 zzzzzzz - 1:2.0-1 - Update to 2.0