File arptables.spec of Package arptables
#
# spec file for package arptables
#
# Copyright (c) 2013 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: arptables
Summary: User Space Tool to Set Up and Maintain ARP Filtering Tables
License: GPL-2.0+
Group: Productivity/Networking/Security
Version: 0.0.4
Release: 0
%define oversion v0.0.4
Url: http://ebtables.sourceforge.net/
Source: http://downloads.sf.net/ebtables/arptables-v0.0.4.tar.gz
Source1: COPYING
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: coreutils
BuildRequires: perl
%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
%setup -qn %name-%oversion
%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
# This is a RH-specific init script
rm -Rf "%buildroot/etc/rc.d"
%files
%defattr(-,root,root)
%_sbindir/arptables*
%{_mandir}/*/arptables*
%doc COPYING
%changelog