11 |
%define name xtables-addons-kmod |
%define name xtables-addons-kmod |
12 |
%define name_src xtables-addons |
%define name_src xtables-addons |
13 |
%define version 1.47.1 |
%define version 1.47.1 |
14 |
%define release 9 |
%define release 11 |
15 |
Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). |
Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). |
16 |
Name: %{name} |
Name: %{name} |
17 |
Version: %{version} |
Version: %{version} |
23 |
#Source: xtables-addons-%{version}.tar.xz |
#Source: xtables-addons-%{version}.tar.xz |
24 |
URL: http://xtables-addons.sourceforge.net |
URL: http://xtables-addons.sourceforge.net |
25 |
Patch0: xtables-addons-1.47.1-v6.patch |
Patch0: xtables-addons-1.47.1-v6.patch |
26 |
|
Patch1: xtables-addons-1.47.1-10749-maxcountries.patch |
27 |
Packager: Michel Begue <mab974@gmail.com> |
Packager: Michel Begue <mab974@gmail.com> |
28 |
#Requires: smeserver-release >= 9.0 |
#Requires: smeserver-release >= 9.0 |
29 |
Requires: xtables-addons >= 1.47.1-4 |
Requires: xtables-addons >= 1.47.1-4 |
33 |
BuildRequires: iptables-devel |
BuildRequires: iptables-devel |
34 |
BuildRequires: %{_bindir}/kmodtool |
BuildRequires: %{_bindir}/kmodtool |
35 |
ExclusiveArch: x86_64 |
ExclusiveArch: x86_64 |
36 |
|
Requires(post): /sbin/weak-modules |
37 |
|
Requires(postun): /sbin/weak-modules |
38 |
|
|
39 |
%{!?kernels:BuildRequires: buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu} } |
%{!?kernels:BuildRequires: buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu} } |
40 |
|
|
47 |
It is just a "kernel update" release. |
It is just a "kernel update" release. |
48 |
|
|
49 |
%changelog |
%changelog |
50 |
|
* Wed Mar 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-11.sme |
51 |
|
- set XT_GEOIP_MAX from 15 to 50 [SME: 10749] |
52 |
|
|
53 |
|
* Tue Feb 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-10.sme |
54 |
|
- add weak-modules as post and postun [SME: 10739] |
55 |
|
|
56 |
* Sun Feb 17 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-9.sme |
* Sun Feb 17 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-9.sme |
57 |
- fix Requires: xtables-addons-kmod-common [SME: 10734] |
- fix Requires: xtables-addons-kmod-common [SME: 10734] |
58 |
- revert change from -8 for -9 |
- revert change from -8 for -9 |
86 |
|
|
87 |
%setup -q -c -T -a 0 |
%setup -q -c -T -a 0 |
88 |
%patch0 |
%patch0 |
89 |
|
%patch1 |
90 |
|
|
91 |
for kernel_version in %{?kernel_versions} ; do |
for kernel_version in %{?kernel_versions} ; do |
92 |
cp -a xtables-addons-%{version} _kmod_build_${kernel_version%%___*} |
cp -a xtables-addons-%{version} _kmod_build_${kernel_version%%___*} |
93 |
done |
done |
119 |
|
|
120 |
%pre |
%pre |
121 |
|
|
122 |
%post |
%post -n %{name} |
123 |
|
/sbin/weak-modules --add-kernel |
124 |
|
|
125 |
%preun |
%preun |
126 |
|
|
127 |
%postun |
%postun -n %{name} |
128 |
|
/sbin/weak-modules --add-kernel |
129 |
|
|
130 |
%files |
%files |
131 |
%defattr(-, root, root, 0755) |
%defattr(-, root, root, 0755) |