File arptables.spec of Package arptables
#
# spec file for package arptables (Version 0.0.8)
#
# Copyright (c) 2008 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: 0.0.8
Release: 2
License: GPL v2 or later
Group: Productivity/Networking/Security
Summary: User Space Tool to Set Up and Maintain ARP Filtering Tables
PreReq: %insserv_prereq %fillup_prereq
AutoReqProv: on
Source0: %{name}_jf-%{version}.tbz
Patch1: %{name}_jf-%{version}-2.6-kernel.patch
Patch2: %{name}_jf-%{version}-man.patch
Patch3: %{name}_jf-%{version}-warnings.patch
Patch4: %{name}_jf-%{version}-header.patch
Patch5: %{name}_jf-%{version}-no-script.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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.
Authors:
--------
Jay Fenlason <fenlason@redhat.com>
and others
%prep
%setup -q -n %{name}_jf-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p0
%build
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -W -Wall"
export CFLAGS="$RPM_OPT_FLAGS"
make all LIBDIR=/%{_lib}
%install
make install DESTDIR=%{buildroot} LIBDIR=/%{_lib}
%clean
if [ -n "$RPM_BUILD_ROOT" ] && [ "$RPM_BUILD_ROOT" != "/" ] ; then
rm -rf "$RPM_BUILD_ROOT"
fi
%files
%defattr(-,root,root)
/sbin/arptables*
%{_mandir}/*/arptables*
%changelog
* Fri Sep 05 2008 mt@suse.de
- Initial arptables_jf-0.0.8 package (fate#303394).