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
|
|
|
#
|
2018-02-05 23:58:54 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
2018-08-14 14:54:03 +02:00
|
|
|
Version: 3.1
|
2012-11-12 22:05:43 +01:00
|
|
|
Release: 0
|
2010-01-07 11:52:44 +01:00
|
|
|
Summary: IP Packet Filter Administration Extensions
|
2018-06-20 00:01:17 +02:00
|
|
|
License: GPL-2.0-only AND GPL-2.0-or-later
|
2012-02-13 12:59:40 +01:00
|
|
|
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
|
|
|
|
|
|
|
#Git-Clone: git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons
|
|
|
|
#Git-Web: http://xtables-addons.git.sf.net/
|
2014-09-29 10:41:29 +02:00
|
|
|
Source: http://downloads.sf.net/%name/%name-%version.tar.xz
|
|
|
|
Source2: http://downloads.sf.net/%name/%name-%version.tar.asc
|
2011-04-11 10:25:38 +02:00
|
|
|
Source3: %name-preamble
|
2012-12-09 23:39:23 +01:00
|
|
|
Source4: %name.keyring
|
2011-06-06 12:00:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-01-09 14:52:34 +01:00
|
|
|
BuildRequires: %kernel_module_package_buildreqs
|
2018-02-12 15:24:43 +01:00
|
|
|
BuildRequires: kernel-syms >= 4.15
|
2015-08-19 12:45:27 +02:00
|
|
|
BuildRequires: pkg-config >= 0.21
|
2012-02-13 12:59:40 +01:00
|
|
|
BuildRequires: xz
|
2018-02-12 15:24:43 +01:00
|
|
|
BuildRequires: pkgconfig(xtables) >= 1.6.0
|
2011-08-20 17:26:04 +02:00
|
|
|
Recommends: %name-kmp
|
2010-01-07 11:52:44 +01:00
|
|
|
Recommends: xtables-geoip
|
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
|
2014-09-29 10:41:29 +02:00
|
|
|
%setup -q
|
2010-11-05 19:51:37 +01:00
|
|
|
|
|
|
|
%build
|
2015-11-20 23:58:19 +01:00
|
|
|
pushd ../
|
2010-01-07 11:52:44 +01:00
|
|
|
for flavor in %flavors_to_build; do
|
2015-11-20 23:58:19 +01:00
|
|
|
cp -a "%name-%version" "%name-$flavor-%version"
|
|
|
|
pushd "%name-$flavor-%version/"
|
|
|
|
%configure --with-kbuild="/usr/src/linux-obj/%_target_cpu/$flavor"
|
2018-06-20 00:01:17 +02:00
|
|
|
make %{?linux_make_arch} %{?_smp_mflags} V=1
|
2015-11-20 23:58:19 +01:00
|
|
|
popd
|
|
|
|
done
|
2010-01-07 11:52:44 +01:00
|
|
|
|
|
|
|
%install
|
2015-11-20 23:58:19 +01:00
|
|
|
b="%buildroot"
|
|
|
|
pushd ../
|
2010-01-07 11:52:44 +01:00
|
|
|
for flavor in %flavors_to_build; do
|
2015-11-20 23:58:19 +01:00
|
|
|
pushd "%name-$flavor-%version/"
|
2018-06-20 00:01:17 +02:00
|
|
|
make %{?linux_make_arch} install DESTDIR="$b"
|
2015-11-20 23:58:19 +01:00
|
|
|
popd
|
|
|
|
done
|
2010-01-07 11:52:44 +01:00
|
|
|
# There is no -devel package. So no need for these files.
|
2015-11-20 23:58:19 +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
|
|
|
|
2015-08-19 12:45:27 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2010-01-07 11:52:44 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-09-29 10:41:29 +02:00
|
|
|
%_mandir/man*/*
|
2010-01-07 11:52:44 +01:00
|
|
|
%_sbindir/*
|
|
|
|
%_libdir/*.so.*
|
2014-09-29 10:41:29 +02:00
|
|
|
%xtlibdir/
|
|
|
|
%_libexecdir/xtables-addons/
|
2017-08-25 01:06:41 +02:00
|
|
|
%doc LICENSE
|
2010-02-09 22:19:46 +01:00
|
|
|
|
2010-01-07 11:52:44 +01:00
|
|
|
%changelog
|