1 |
%define name xtables-addons |
2 |
%define version 1.47.1 |
3 |
%define release 10 |
4 |
Summary: xtables-addons is a set of additional extensions for the Xtables packet filter. |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
9 |
License: GNU GPL version 2 |
10 |
Group: SME Server/addon |
11 |
Source: %{name}-%{version}.tar.xz |
12 |
URL: http://xtables-addons.sourceforge.net |
13 |
Patch0: xtables-addons-1.47.1-v6.patch |
14 |
Patch1: xtables-addons-1.47.1-g2.patch |
15 |
Packager: Michel Begue <mab974@gmail.com> |
16 |
BuildRoot: %RPM_BUILD_ROOT |
17 |
#BuildRequires: e-smith-devtools |
18 |
BuildRequires: iptables-devel |
19 |
Requires: smeserver-release >= 9.0 |
20 |
Requires: xtables-addons-kmod >= 1.47.1-1 |
21 |
Requires: perl-Text-CSV_XS >= 0.80 |
22 |
Requires: perl-IO-Socket-INET6 >= 2.67 |
23 |
Requires: perl-Socket >= 2.021 |
24 |
AutoReqProv: no |
25 |
Provides: %{name}-kmod-common = %{version} |
26 |
|
27 |
%description |
28 |
%{name} is a set of additional extensions for the Xtables packet filter that is present in the Linux kernel. |
29 |
|
30 |
%changelog |
31 |
* Tue Feb 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-10.sme |
32 |
- rel 9 change requires xtables-addons-kmod to kmod-xtables-addons [SME: 10739] |
33 |
while it does not respect the rpmfusion doc, this seems the way to get depmod on install |
34 |
- rel 10 reverse previous changes |
35 |
|
36 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-8.sme |
37 |
- include Michel Begue last patches and fixes |
38 |
- changes for using GeoIP2 databases (download and build (-g2) + fetch) |
39 |
xtables-addons-1.47.1-g2.patch |
40 |
- new dependency : perl-Socket |
41 |
- new dependency : perl-IO-Socket-INET6 (bug sa-update) |
42 |
|
43 |
* Sun Feb 17 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-7.sme |
44 |
- fix missing Provides %{name}-kmod-common = %{version} [SME: 10734] |
45 |
|
46 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-6.sme |
47 |
- first import for SMe buildserver |
48 |
- added Build requirements iptables-devel |
49 |
- do not build kernel module --without-kbuild kmod package will do |
50 |
- add macro to build both x86_64 and i386 |
51 |
|
52 |
* Fri Sep 29 2017 Mab974 <mab974@gmail.com> |
53 |
- extract "extensions" (kmod) from here to xtables-addons-kmod packet |
54 |
- no more dependencie to kernel version |
55 |
|
56 |
* Fri Sep 22 2017 Mab974 <mab974@gmail.com> |
57 |
- initial release |
58 |
- patch disable WITH_IPV6 in extra/*c |
59 |
|
60 |
%prep |
61 |
|
62 |
%setup |
63 |
%patch0 -p1 |
64 |
%patch1 -p1 |
65 |
|
66 |
./configure --prefix=/usr --without-kbuild |
67 |
|
68 |
%build |
69 |
%{__make} |
70 |
|
71 |
%install |
72 |
%{__rm} -rf %{buildroot} |
73 |
%{__make} install DESTDIR="%{buildroot}" |
74 |
%{__rm} -rf %{buildroot}/lib/modules/ |
75 |
|
76 |
%clean |
77 |
%{__rm} -rf %{buildroot} |
78 |
|
79 |
%pre |
80 |
|
81 |
%post |
82 |
|
83 |
%preun |
84 |
|
85 |
%postun |
86 |
|
87 |
%files |
88 |
%defattr(-, root, root, 0755) |
89 |
/%{_lib}/xtables/libxt_* |
90 |
/usr/lib/libxt_* |
91 |
/usr/libexec/xtables-* |
92 |
/usr/sbin/iptaccount |
93 |
/usr/share/man/man1/xt_* |
94 |
/usr/share/man/man8/iptaccount.* |
95 |
/usr/share/man/man8/xtables-* |