X-Git-Url: http://git.pld-linux.org/?p=packages%2Fxtables-addons.git;a=blobdiff_plain;f=xtables-addons.spec;h=2a4bbf422959e3b6510db2c87ab905c1372027cd;hp=213d3921cc51822c0f3af6d1e12f04bd5275ab21;hb=508b64c5b877c6ae2d4c2732dc768d4e9fe509ac;hpb=c0755858925f00407c6c39e3f4f04801d04850f4 diff --git a/xtables-addons.spec b/xtables-addons.spec index 213d392..2a4bbf4 100644 --- a/xtables-addons.spec +++ b/xtables-addons.spec @@ -2,7 +2,8 @@ # Conditional build: %bcond_without dist_kernel # without distribution kernel %bcond_without kernel # don't build kernel modules -%bcond_without userspace # # don't build userspace tools +%bcond_without userspace # don't build userspace tools +%bcond_with ipset # include IPSET (6.x) %if %{without kernel} %undefine with_dist_kernel @@ -15,19 +16,18 @@ %define _enable_debug_packages 0 %endif -%define rel 2 +%define rel 19 Summary: Additional extensions for xtables packet filtering system Summary(pl.UTF-8): Dodatkowe rozszerzenia do systemu filtrowania pakietów xtables Name: xtables-addons -Version: 1.38 +Version: 1.39 Release: %{rel} License: GPL v2 Group: Networking/Admin Source0: http://downloads.sourceforge.net/xtables-addons/%{name}-%{version}.tar.xz -# Source0-md5: 6a69e9931e2392348c8674af1f2fc056 -Patch0: %{name}-build.patch +# Source0-md5: 63dedce9afd16acfd68efc30c9f55950 URL: http://xtables-addons.sourceforge.net/ -BuildRequires: autoconf >= 2.50 +BuildRequires: autoconf >= 2.65 BuildRequires: automake >= 1:1.11 BuildRequires: iptables-devel >= 1.4.3 %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.29} @@ -37,7 +37,11 @@ BuildRequires: rpmbuild(macros) >= 1.379 BuildRequires: tar >= 1.22 BuildRequires: xz Requires: iptables >= 1.4.3 +%if %{with ipset} +Provides: ipset = 6.7 Obsoletes: ipset +%endif +Obsoletes: iptables-ipp2p BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # use macro, so adapter won't try to wrap @@ -79,9 +83,10 @@ Moduły jądra dla rozszerzeń z pakietu xtables-addons. %prep %setup -q -%patch0 -p1 -%{__sed} -i -e 's#build_ipset4=m#build_ipset4=#' mconfig +%if %{without ipset} +%{__sed} -i -e 's#build_ipset6=m#build_ipset6=#' mconfig +%endif %build %{__libtoolize} @@ -126,11 +131,13 @@ EOF %if %{with userspace} %{__make} -C extensions install \ DESTDIR=$RPM_BUILD_ROOT +%{__make} install-man \ + DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxt_ACCOUNT_cl.{la,so} - -install -d $RPM_BUILD_ROOT%{_mandir}/man8 -cp -a xtables-addons.8 $RPM_BUILD_ROOT%{_mandir}/man8 +%if %{with ipset} +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libipset.{la,so} +%endif %endif %clean @@ -149,15 +156,18 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README doc/{README.psd,changelog.txt} -%attr(755,root,root) %{_sbindir}/ipset %attr(755,root,root) %{_sbindir}/iptaccount %attr(755,root,root) %{_libdir}/libxt_ACCOUNT_cl.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libxt_ACCOUNT_cl.so.0 %attr(755,root,root) %{_libdir}/xtables/libxt_*.so -%attr(755,root,root) %{_libdir}/libipset.so.* -%{_mandir}/man8/ipset.8* %{_mandir}/man8/iptaccount.8* %{_mandir}/man8/xtables-addons.8* +%if %{with ipset} +%attr(755,root,root) %{_sbindir}/ipset +%attr(755,root,root) %{_libdir}/libipset.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libipset.so.1 +%{_mandir}/man8/ipset.8* +%endif %endif %if %{with kernel}