From 5df98ca110d320b8d87cec3cd2fc0a6acff6a4ef258b61697939363589d4e859 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 20 Sep 2021 10:12:42 +0000 Subject: [PATCH] update macros OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=147 --- iptables.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iptables.spec b/iptables.spec index 17fb13b..558014c 100644 --- a/iptables.spec +++ b/iptables.spec @@ -176,7 +176,7 @@ rm -f extensions/libipt_unclean.man # includedir is overriden on purpose to detect projects that # fail to include libxtables_CFLAGS %configure --includedir="%_includedir/%name" --enable-libipq -make %{?_smp_mflags} V=1 +%make_build V=1 %install %make_install @@ -186,7 +186,7 @@ rm -f "$b/%_libdir/"libiptc.so* # iptables-apply is not installed by upstream Makefile install -m0755 iptables/iptables-apply "$b/%_sbindir/" rm -f "$b/%_libdir"/*.la -rm -f "$b/%_sysconfdir/ethertypes" # -> netcfg +rm -f "$b/%_sysconfdir/ethertypes" # provided by netcfg for i in iptables iptables-restore iptables-save ip6tables ip6tables-restore \ ip6tables-save arptables arptables-restore arptables-save ebtables \ @@ -244,7 +244,7 @@ done %if %{with libalternatives} %pre # removing old update-alternatives entries -if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then +if [ "$1" -gt 0 ] && [ -f "%_sbindir/update-alternatives" ]; then update-alternatives --remove iptables "%_sbindir/xtables-legacy-multi" fi %else @@ -267,7 +267,7 @@ fi %if %{with libalternatives} %pre backend-nft # removing old update-alternatives entries -if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then +if [ "$1" -gt 0 ] && [ -f "%_sbindir/update-alternatives" ]; then update-alternatives --remove iptables "%_sbindir/xtables-nft-multi" update-alternatives --remove arptables "%_sbindir/xtables-nft-multi" update-alternatives --remove ebtables "%_sbindir/xtables-nft-multi"