--- rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec 2019/02/18 04:42:34 1.9 +++ rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec 2019/03/07 03:33:41 1.12 @@ -11,7 +11,7 @@ %define name xtables-addons-kmod %define name_src xtables-addons %define version 1.47.1 -%define release 8 +%define release 11 Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). Name: %{name} Version: %{version} @@ -23,16 +23,18 @@ Source: %{name_src}-%{version}.tar.xz #Source: xtables-addons-%{version}.tar.xz URL: http://xtables-addons.sourceforge.net Patch0: xtables-addons-1.47.1-v6.patch +Patch1: xtables-addons-1.47.1-10749-maxcountries.patch Packager: Michel Begue #Requires: smeserver-release >= 9.0 Requires: xtables-addons >= 1.47.1-4 -Provides: %{name}-common = %{version} #Requires: kernel = 2.6.32-696 #Requires: kernel = 2.6.32-696.28.1.el6 BuildRequires: e-smith-devtools BuildRequires: iptables-devel BuildRequires: %{_bindir}/kmodtool ExclusiveArch: x86_64 +Requires(post): /sbin/weak-modules +Requires(postun): /sbin/weak-modules %{!?kernels:BuildRequires: buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu} } @@ -45,8 +47,15 @@ ExclusiveArch: x86_64 It is just a "kernel update" release. %changelog -* Sun Feb 17 2019 Jean-Philipe Pialasse 1.47.1-8.sme +* Wed Mar 06 2019 Jean-Philipe Pialasse 1.47.1-11.sme +- set XT_GEOIP_MAX from 15 to 50 [SME: 10749] + +* Tue Feb 19 2019 Jean-Philipe Pialasse 1.47.1-10.sme +- add weak-modules as post and postun [SME: 10739] + +* Sun Feb 17 2019 Jean-Philipe Pialasse 1.47.1-9.sme - fix Requires: xtables-addons-kmod-common [SME: 10734] +- revert change from -8 for -9 * Wed Feb 06 2019 Jean-Philipe Pialasse 1.47.1-7.sme - first import to SME buildsys [SME: 10734] @@ -77,6 +86,8 @@ kmodtool --target %{_target_cpu} --repo %setup -q -c -T -a 0 %patch0 +%patch1 + for kernel_version in %{?kernel_versions} ; do cp -a xtables-addons-%{version} _kmod_build_${kernel_version%%___*} done @@ -108,11 +119,13 @@ done %pre -%post +%post -n %{name} +/sbin/weak-modules --add-kernel -%preun +%preun -%postun +%postun -n %{name} +/sbin/weak-modules --add-kernel %files %defattr(-, root, root, 0755)