2010-01-07 11:52:44 +01:00
|
|
|
#
|
2011-04-07 17:13:26 +02:00
|
|
|
# spec file for package xtables-addons
|
2010-01-07 11:52:44 +01:00
|
|
|
#
|
2012-01-04 22:15:57 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-01-07 11:52:44 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: xtables-addons
|
2012-11-12 22:05:43 +01:00
|
|
|
%if "%_repository" == "Kernel_HEAD"
|
|
|
|
Version: 2.0
|
|
|
|
Release: 0
|
|
|
|
%else
|
2012-10-15 21:20:37 +02:00
|
|
|
Version: 1.47.1
|
2012-01-04 22:15:57 +01:00
|
|
|
Release: 0
|
2012-11-12 22:05:43 +01:00
|
|
|
%endif
|
2010-01-07 11:52:44 +01:00
|
|
|
Summary: IP Packet Filter Administration Extensions
|
2012-02-13 12:59:40 +01:00
|
|
|
License: GPL-2.0 ; GPL-2.0+
|
|
|
|
Group: Productivity/Networking/Security
|
2011-12-31 00:37:41 +01:00
|
|
|
Url: http://xtables-addons.sf.net/
|
2012-01-04 22:15:57 +01:00
|
|
|
|
2012-12-21 03:08:56 +01:00
|
|
|
#Freecode-URL: http://freecode.com/projects/xtables-addons/
|
2012-01-04 22:15:57 +01:00
|
|
|
#Git-Clone: git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons
|
|
|
|
#Git-Web: http://xtables-addons.git.sf.net/
|
|
|
|
%define git_snapshot 0
|
2011-04-11 10:25:38 +02:00
|
|
|
Source3: %name-preamble
|
2012-12-09 23:39:23 +01:00
|
|
|
Source4: %name.keyring
|
2012-12-21 03:08:56 +01:00
|
|
|
Source5: %name-1.47.1.tar.xz
|
|
|
|
Source6: %name-1.47.1.tar.xz.asc
|
|
|
|
Source7: %name-2.0.tar.xz
|
|
|
|
Source8: %name-2.0.tar.xz.asc
|
2012-01-04 22:15:57 +01:00
|
|
|
|
2011-06-06 12:00:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-09 23:43:48 +01:00
|
|
|
%if 0%{?suse_version} >= 1230
|
2012-12-09 23:36:50 +01:00
|
|
|
BuildRequires: gpg-offline
|
2012-12-09 23:43:48 +01:00
|
|
|
%endif
|
2012-01-04 22:15:57 +01:00
|
|
|
%if %git_snapshot
|
2012-02-13 12:59:40 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake >= 1.10b
|
|
|
|
BuildRequires: libtool
|
2012-01-04 22:15:57 +01:00
|
|
|
%endif
|
2012-06-30 19:47:20 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
2012-02-13 12:59:40 +01:00
|
|
|
BuildRequires: xz
|
2012-06-30 19:47:20 +02:00
|
|
|
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
|
2012-04-05 05:06:09 +02:00
|
|
|
BuildRequires: pkgconfig(xtables) >= 1.4.5
|
2012-06-30 19:47:20 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
BuildRequires: libxtables-devel >= 1.4.5
|
|
|
|
%endif
|
|
|
|
%if 0%{?redhat_version} || 0%{?centos_version}
|
|
|
|
BuildRequires: libxtables-devel >= 1.4.5
|
|
|
|
%endif
|
2011-08-20 17:26:04 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
|
|
|
Recommends: %name-kmp
|
2010-01-07 11:52:44 +01:00
|
|
|
Recommends: xtables-geoip
|
2011-08-20 17:26:04 +02:00
|
|
|
%else
|
2011-08-22 16:04:54 +02:00
|
|
|
Requires: xtables-geoip
|
2011-08-20 17:26:04 +02:00
|
|
|
%endif
|
2010-11-23 14:48:13 +01:00
|
|
|
|
|
|
|
%define xtlibdir %(pkg-config xtables --variable=xtlibdir)
|
|
|
|
|
2011-04-07 17:13:26 +02:00
|
|
|
%kernel_module_package -p %name-preamble
|
2010-01-07 11:52:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Xtables is used to set up, maintain, and inspect the tables of IP
|
|
|
|
packet filter rules in the Linux kernel.
|
|
|
|
|
|
|
|
Xtables-addons is the successor to patch-o-matic(-ng). Likewise, it
|
2010-02-12 00:47:05 +01:00
|
|
|
contains extensions that were not, or are not yet, accepted in the
|
|
|
|
main kernel/iptables packages.
|
|
|
|
|
|
|
|
%package KMP
|
|
|
|
Summary: IP Packet Filter Administration Extensions
|
2012-02-13 12:59:40 +01:00
|
|
|
Group: System/Kernel
|
2010-02-12 00:47:05 +01:00
|
|
|
|
|
|
|
%description KMP
|
|
|
|
Xtables is used to set up, maintain, and inspect the tables of IP
|
|
|
|
packet filter rules in the Linux kernel.
|
|
|
|
|
|
|
|
Xtables-addons is the successor to patch-o-matic(-ng). Likewise, it
|
2010-01-07 11:52:44 +01:00
|
|
|
contains extensions that were not, or are not yet, accepted in the
|
|
|
|
main kernel/iptables packages.
|
|
|
|
|
|
|
|
%prep
|
2012-12-21 03:08:56 +01:00
|
|
|
%{?gpg_verify: %gpg_verify %_sourcedir/%name-%version.tar.xz.asc}
|
2012-11-12 22:05:43 +01:00
|
|
|
echo "Version: %version"
|
|
|
|
echo "Repository: %_repository"
|
2012-12-21 03:08:56 +01:00
|
|
|
%if "%_repository" == "Kernel_HEAD"
|
|
|
|
%setup -Tqb7
|
|
|
|
%else
|
|
|
|
%setup -Tqb5
|
|
|
|
%endif
|
2010-11-05 19:51:37 +01:00
|
|
|
|
|
|
|
%build
|
2010-01-07 11:52:44 +01:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
./autogen.sh;
|
|
|
|
fi;
|
|
|
|
pushd ../;
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
cp -a "%name-%version" "%name-$flavor-%version";
|
|
|
|
pushd "%name-$flavor-%version/";
|
|
|
|
%configure --with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor";
|
|
|
|
make %{?_smp_mflags};
|
|
|
|
popd;
|
|
|
|
done;
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
pushd ../;
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
pushd "%name-$flavor-%version/";
|
|
|
|
make install DESTDIR="$b";
|
|
|
|
popd;
|
|
|
|
done;
|
|
|
|
# There is no -devel package. So no need for these files.
|
2010-03-19 09:56:39 +01:00
|
|
|
find "$b/%_prefix" -iname "*.la" -delete;
|
|
|
|
find "$b/%_libdir" -maxdepth 1 -type l -iname "*.so" -delete;
|
2010-01-07 11:52:44 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2010-10-03 22:35:31 +02:00
|
|
|
%doc %_mandir/*/*
|
2010-01-07 11:52:44 +01:00
|
|
|
%_sbindir/*
|
|
|
|
%_libdir/*.so.*
|
2010-11-23 14:48:13 +01:00
|
|
|
%xtlibdir
|
2010-10-03 22:35:31 +02:00
|
|
|
%_libexecdir/xtables-addons
|
2010-02-09 22:19:46 +01:00
|
|
|
|
2010-01-07 11:52:44 +01:00
|
|
|
%changelog
|