1 |
%define name xtables-addons |
2 |
%define version 1.47.1 |
3 |
%define release 4 |
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 |
Packager: Michel Begue <mab974@gmail.com> |
15 |
BuildRoot: %RPM_BUILD_ROOT |
16 |
#BuildRequires: e-smith-devtools |
17 |
Requires: smeserver-release >= 9.0 |
18 |
Requires: xtables-addons-kmod >= 1.47.1-1 |
19 |
Requires: perl-Text-CSV_XS >= 0.80 |
20 |
AutoReqProv: no |
21 |
|
22 |
%description |
23 |
%{name} is a set of additional extensions for the Xtables packet filter that is present in the Linux kernel. |
24 |
|
25 |
%changelog |
26 |
* Fri Sep 29 2017 Mab974 <mab974@gmail.com> |
27 |
- extract "extensions" (kmod) from here to xtables-addons-kmod packet |
28 |
- no more dependencie to kernel version |
29 |
|
30 |
* Fri Sep 22 2017 Mab974 <mab974@gmail.com> |
31 |
- initial release |
32 |
- patch disable WITH_IPV6 in extra/*c |
33 |
|
34 |
%prep |
35 |
|
36 |
%setup |
37 |
%patch0 -p1 |
38 |
|
39 |
./configure --prefix=/usr |
40 |
|
41 |
%build |
42 |
%{__make} |
43 |
|
44 |
%install |
45 |
%{__rm} -rf %{buildroot} |
46 |
%{__make} install DESTDIR="%{buildroot}" |
47 |
%{__rm} -rf %{buildroot}/lib/modules/ |
48 |
|
49 |
%clean |
50 |
%{__rm} -rf %{buildroot} |
51 |
|
52 |
%pre |
53 |
|
54 |
%post |
55 |
|
56 |
%preun |
57 |
|
58 |
%postun |
59 |
|
60 |
%files |
61 |
%defattr(-, root, root, 0755) |
62 |
/lib64/xtables/libxt_* |
63 |
/usr/lib/libxt_* |
64 |
/usr/libexec/xtables-* |
65 |
/usr/sbin/iptaccount |
66 |
/usr/share/man/man1/xt_* |
67 |
/usr/share/man/man8/iptaccount.* |
68 |
/usr/share/man/man8/xtables-* |