File arptables.spec of Package arptables

# spec file for package arptables (Version
# Copyright (c) 2010 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

# norootforbuild


Name:           arptables
Release:        2
%define oversion	v0.0.3-4
License:        GPLv2+
Group:          Productivity/Networking/Security
Summary:        User Space Tool to Set Up and Maintain ARP Filtering Tables

Source:         %name-%oversion.tar.xz
Patch1:         arptables-install.diff
Patch2:         arptables-warnings.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  coreutils licenses perl xz
Requires:       licenses

arptables is a user space tool used to set up and maintain thetables of
ARP rules in the Linux kernel. These rules inspect the ARPframes.
arptables is similar to the iptables userspace tool, but less

	Bart De Schuymer <>
	Netfilter Developers <>

%setup -qn %name-%oversion
%patch -P 1 -P 2 -p1

make %{?_smp_mflags} all LIBDIR=/%{_lib} PREFIX=%_prefix COPT_FLAGS="$RPM_OPT_FLAGS -W -Wall"

make install DESTDIR=%{buildroot} LIBDIR=/%{_lib} PREFIX=%_prefix MANDIR=%_mandir
ln -sf $(readlink -f /usr/share/doc/licenses/GPL-2.0.txt) COPYING

if [ -n "$RPM_BUILD_ROOT" ] && [ "$RPM_BUILD_ROOT" != "/" ] ; then
	rm -rf "$RPM_BUILD_ROOT"


openSUSE Build Service is sponsored by