File arptables.spec of Package arptables
#
# spec file for package arptables
#
# Copyright (c) 2011 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/
#
Url: http://ebtables.sourceforge.net/
Name: arptables
Version: 1.0.3.4
Release: 8
%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
Source1: COPYING
Patch1: arptables-install.diff
Patch2: arptables-warnings.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: coreutils perl xz
%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.
%prep
%if 0%{?__xz:1}
%setup -qn %name-%oversion
%else
tar -xf "%{S:0}" --use=xz;
%setup -DTqn %name-%oversion
%endif
%patch -P 1 -P 2 -p1
%build
make %{?_smp_mflags} all LIBDIR=/%{_lib} PREFIX=%_prefix COPT_FLAGS="$RPM_OPT_FLAGS -W -Wall"
cp %{S:1} .
%install
make install DESTDIR=%{buildroot} LIBDIR=/%{_lib} PREFIX=%_prefix MANDIR=%_mandir
%files
%defattr(-,root,root)
%_sbindir/arptables*
%{_mandir}/*/arptables*
%doc COPYING
%changelog