# # spec file for package xtables-addons # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 Version: 2.4 Release: 0 Summary: IP Packet Filter Administration Extensions License: GPL-2.0 and GPL-2.0+ Group: Productivity/Networking/Security Url: http://xtables-addons.sf.net/ #Freecode-URL: http://freecode.com/projects/xtables-addons/ #Git-Clone: git://xtables-addons.git.sf.net/gitroot/xtables-addons/xtables-addons #Git-Web: http://xtables-addons.git.sf.net/ Source3: %name-preamble Source4: %name.keyring Source7: %name-2.4.tar.xz Source8: %name-2.4.tar.asc BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1230 BuildRequires: gpg-offline %endif BuildRequires: %kernel_module_package_buildreqs BuildRequires: kernel-syms >= 3.7 BuildRequires: pkgconfig >= 0.21 BuildRequires: xz BuildRequires: pkgconfig(xtables) >= 1.4.5 Recommends: %name-kmp Recommends: xtables-geoip %define xtlibdir %(pkg-config xtables --variable=xtlibdir) %kernel_module_package -p %name-preamble %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 contains extensions that were not, or are not yet, accepted in the main kernel/iptables packages. %package KMP Summary: IP Packet Filter Administration Extensions Group: System/Kernel %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 contains extensions that were not, or are not yet, accepted in the main kernel/iptables packages. %prep xz -dk "%_sourcedir/%name-%version.tar.xz" %{?gpg_verify: %gpg_verify %_sourcedir/%name-%version.tar.asc} %setup -Tqb7 %build 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} V=1; 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. find "$b/%_prefix" -iname "*.la" -delete; find "$b/%_libdir" -maxdepth 1 -type l -iname "*.so" -delete; %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc %_mandir/*/* %_sbindir/* %_libdir/*.so.* %xtlibdir %_libexecdir/xtables-addons %changelog