%define with_atomicscl %{?_with_atomicscl: 1} %{?!_with_atomicscl: 0} %if %{with_atomicscl} %global scl atomic-iptables %define _scl_prefix /opt/atomic %global debug_package %{nil} %endif %{?scl:%scl_package xtables-addons} %{!?scl:%global pkg_name %{name}} Name: %{?scl_prefix}xtables-addons Summary: Extensions targets and matches for iptables Version: 2.6 Release: 3.82%{?dist}.art # The entire source code is GPLv2 except ACCOUNT/libxt_ACCOUNT_cl.* which is LGPLv2 License: GPLv2 and LGPLv2 Group: System Environment/Base URL: http://xtables-addons.sourceforge.net Source0: http://dl.sourceforge.net/xtables-addons/Xtables-addons/%{version}/xtables-addons-%{version}.tar.gz BuildRequires: %{?scl_prefix}iptables-devel >= 1.4.21 BuildRequires: %{?scl_prefix}iptables-runtime >= 1.4.21 BuildRequires: autoconf automake libtool BuildRequires: scl-utils # el5 BuildRoot: /var/tmp/%{pkg_name}-%{version}-root %description Xtables-addons provides extra modules for iptables not present in the kernel, and is the successor of patch-o-matic. Extensions includes new targets like TEE, TARPIT, CHAOS, or modules like geoip, ipset, and account. This package provides the userspace libraries for iptables to use extensions in the %{pkg_name}-kmod package. You must also install the %{pkg_name}-kmod package. %prep %setup -q -n %{pkg_name}-%{version} ./autogen.sh if [ ! -e /%{_lib}/xtables/libxt_CHECKSUM.so ]; then sed -i 's/build_CHECKSUM=/build_CHECKSUM=m/' mconfig fi if [ ! -e /%{_lib}/xtables/libxt_TEE.so ]; then sed -i 's/build_TEE=/build_TEE=m/' mconfig fi sed -i 's/build_ipset6=/build_ipset6=m/' mconfig %build # test1: nope # This is all for el5 export echo=echo # test2: libtoolize --force --copy aclocal autoconf automake # end el5 %{?scl:scl enable %{scl} - << \EOF} %configure --without-kbuild %{?scl:EOF} %{?scl:scl enable %{scl} - << \EOF} make V=1 %{?_smp_mflags} %{?scl:EOF} %install # el5 #make DESTDIR=%{buildroot} install %{?scl:scl enable %{scl} - << \EOF} make DESTDIR=$RPM_BUILD_ROOT install %{?scl:EOF} echo DEBUG # We add xt_geoip database scripts manually rm -rf %{buildroot}%{_libexecdir} rm -f geoip/{Makefile*,.gitignore} chmod 0644 geoip/* # There is no -devel package. So no need for these files rm -f %{buildroot}%{_libdir}/*.{la,so} %files %doc LICENSE README doc/* geoip #%{_libdir}/xtables/*.so %{_libdir}/*.so.* # EL6 settings #/%{_lib}/xtables/*.so #%{_libdir}/*.so.* %ifarch x86_64 /opt/atomic/atomic-iptables/root/usr/lib64/xtables/*.so %else /opt/atomic/atomic-iptables/root/usr/lib/xtables/*.so %endif %{_sbindir}/iptaccount %{_mandir}/man?/* %changelog * Wed Mar 9 2016 Support - 2.6-2 - Initiate SCL package * Tue Nov 04 2014 Nicolas Chauvet - 2.6-1 - Update to 2.6 - Drop initscript (use ipset-services instead) - Spec file clean-up * Sat Apr 26 2014 Nicolas Chauvet - 2.5-1 - Update to 2.5 * Sun Jan 12 2014 Nicolas Chauvet - 2.4-1 - Update to 2.4 * Tue Jun 18 2013 Nicolas Chauvet - 2.3-1 - Update to 2.3 * Thu Apr 18 2013 Nicolas Chauvet - 2.2-1 - Update to 2.2 * Mon Jan 14 2013 Nicolas Chauvet - 2.1-1 - Update to 2.1 * Thu Oct 18 2012 Nicolas Chauvet - 1.47.1-1 - Update to 1.47.1 * Wed Oct 03 2012 Nicolas Chauvet - 1.46-1 - Update to 1.46 * Tue Jul 31 2012 Nicolas Chauvet - 1.45-1 - Update to 1.45 * Thu Jun 14 2012 Nicolas Chauvet - 1.42-3 - Fix ipset path in F-16 and later * Tue Jun 05 2012 Nicolas Chauvet - 1.42-2 - Fix for UsrMove - rfbz#2360 - Fix Conflict with ipset - rfbz#2201 - Add Requires ipset >= 6.11 - rfbz#2226 * Thu Apr 12 2012 Nicolas Chauvet - 1.42-1 - Update to 1.42 * Tue Jan 24 2012 Nicolas Chauvet - 1.41-1 - Update to 1.41 * Thu Nov 17 2011 Nicolas Chauvet - 1.39-1 - Update to 1.39 * Wed Oct 27 2010 Chen Lei - 1.30-1 - update to 1.30 * Sun Jul 25 2010 Chen Lei - 1.28-1 - update to 1.28 * Mon Jun 28 2010 Chen Lei - 1.27-2 - rebuild for kernel 2.6.35 * Mon May 31 2010 Chen Lei - 1.27-1 - update to 1.27 * Sun May 02 2010 Chen Lei - 1.26-1 - update to 1.26 * Mon Apr 26 2010 Chen Lei - 1.25-1 - update to 1.25 * Sun Apr 25 2010 Thorsten Leemhuis - 1.24-2 - rebuilt * Thu Mar 18 2010 Chen Lei - 1.24-1 - initial rpm build