File arptables.spec of Package arptables

#
# spec file for package arptables (Version 1.0.3.4)
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild

Url:            http://ebtables.sourceforge.net/

Name:           arptables
Version:        1.0.3.4
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:	http://downloads.sf.net/ebtables/arptables-v0.0.3-4.tar.gz
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

%description
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
complicated.



Authors:
--------
	Bart De Schuymer <bdschuym@pandora.be>
	Netfilter Developers <netfilter-devel@vger.kernel.org>

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

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

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

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

%files
%defattr(-,root,root)
%_sbindir/arptables*
%{_mandir}/*/arptables*
%doc COPYING

%changelog
openSUSE Build Service is sponsored by