File xtables-addons.spec of Package xtables-addons

# original specfile by jengelh
Name:		xtables-addons
Version:	1.5.7.20081103
%define base_version 1.5.7.1
Release:	1
Group:		Productivity/Networking/Security
Summary:	IP Packet Filter Administration
License:	GPL

Source:		%name-%version.tar.bz2
BuildRoot:	%_tmppath/%name-%version-build
BuildRequires:	module-init-tools kernel-source, kernel-syms, iptables-devel >= 1.4.1
Requires:	%name-kmp
Requires:	iptables >= 1.4.1

%suse_kernel_module_package

%description
Xtables is used to set up, maintain, and inspect the tables of IP
packet filter rules in the Linux kernel.

%debug_package
%prep
%setup -q

%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 %{?jobs:-j%jobs};
	popd;
done;

%install
b="%buildroot";
rm -Rf "$b";
mkdir "$b";
pushd ../;
for flavor in %flavors_to_build; do
	pushd %name-$flavor-%version/;
	make install DESTDIR="$b";
	popd;
done;
find "$b/%_prefix" -iname "*.la" -print0 | xargs -0r rm -f;

%clean
rm -Rf "%buildroot";

%files
%defattr(-,root,root)
%_libdir/xtables/*
%_mandir/*/*
%_sbindir/ipset

%changelog
* Wed Oct 15 2008 Leo Eraly <leo@unstable.be> - 1.5.7.1
- Initial package.
openSUSE Build Service is sponsored by