From 706150b129c945e887c203d96492d03046199bd2 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 13 Jul 2020 20:18:37 +0000 Subject: [PATCH] Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- iptables.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/iptables.spec b/iptables.spec index f80a798..23d5e98 100644 --- a/iptables.spec +++ b/iptables.spec @@ -19,7 +19,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities URL: http://www.netfilter.org/projects/iptables Version: 1.8.6 -Release: 4%{?dist} +Release: 5%{?dist} Source: %{url}/files/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config @@ -151,7 +151,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool rm -f include/linux/types.h -make %{?_smp_mflags} +%make_build %if 0%{?bootstrap} pushd bootstrap_ver @@ -165,7 +165,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool rm -f include/linux/types.h -make %{?_smp_mflags} +%make_build popd %endif @@ -178,7 +178,7 @@ popd -name 'libip*tc.so.%{iptc_so_ver_old}*' -delete -print %endif -make install DESTDIR=%{buildroot} +%make_install # remove la file(s) rm -f %{buildroot}/%{_libdir}/*.la @@ -444,6 +444,9 @@ fi %changelog +* Thu Nov 19 17:32:24 CET 2020 Tom Stellard - 1.8.6-5 +- Use make macros + * Tue Nov 17 14:05:30 CET 2020 Phil Sutter - 1.8.6-4 - ebtables: Fix for broken chain renaming