--- rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec 2019/02/17 08:05:48 1.7 +++ rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec 2019/02/20 02:36:55 1.11 @@ -11,7 +11,7 @@ %define name xtables-addons-kmod %define name_src xtables-addons %define version 1.47.1 -%define release 7 +%define release 10 Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). Name: %{name} Version: %{version} @@ -32,6 +32,8 @@ 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} } @@ -44,6 +46,13 @@ ExclusiveArch: x86_64 It is just a "kernel update" release. %changelog +* 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 @@ -104,11 +113,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)