--- rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec 2019/02/17 08:00:43 1.5 +++ 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 6 +%define release 11 Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). Name: %{name} Version: %{version} @@ -23,6 +23,7 @@ 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 @@ -31,7 +32,9 @@ Requires: xtables-addons >= 1.47.1-4 BuildRequires: e-smith-devtools BuildRequires: iptables-devel BuildRequires: %{_bindir}/kmodtool -ExcludeArch: i686 x86_6 +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} } @@ -44,14 +47,25 @@ ExcludeArch: i686 x86_6 It is just a "kernel update" release. %changelog -* Wed Feb 06 2019 Jean-Philipe Pialasse 1.47.1-6.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] - add buildrequires iptables-devel - update spec files according to rpmfusion way, add buildsys-build-rpmfusion-kerneldevpkgs requirement from rpmfusion - workaround for install dir lib while script send it to usr/lib - set current -- set archs i686 x86_6, as no i386 buildsys-build-rpmfusion-kerneldevpkgs available to build +- set archs x86_6, as no i386 buildsys-build-rpmfusion-kerneldevpkgs available to build +- TODO: try to build i386 using i686 buildsys-build-rpmfusion-kerneldevpkgs * Thu Mar 15 2018 Mab974 - compiled for kernel version 2.6.32-696.23.1.el6.x86_64 @@ -72,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 @@ -103,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)