Blame SPECS/arptables.spec

c42007
Summary: User space tool to set up tables of ARP rules in kernel
c42007
Name:    arptables
c42007
Version: 0.0.4
c42007
Release: 8%{?dist}
c42007
License: GPLv2+
c42007
Group:   System Environment/Base
c42007
c42007
URL:     http://ebtables.sourceforge.net/
c42007
Source0: http://downloads.sourceforge.net/ebtables/arptables/arptables-v%{version}.tar.gz
c42007
Source1: arptables.service
c42007
Source2: arptables-helper
c42007
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
c42007
# http://marc.info/?l=netfilter-devel&m=137908241011194&w=2
c42007
Source3: COPYING
c42007
Source4: arptables-save.8
c42007
Source5: arptables-restore.8
c42007
c42007
Patch1: arptables-0.0.4-covscan_fix01_simple.patch
c42007
Patch2: arptables-0.0.4-covscan_fix02_buf_overflow.patch
c42007
Patch3: arptables-0.0.4-man-install.patch
c42007
Patch4: arptables-0.0.4-set-counters-option.patch
c42007
c42007
BuildRequires: systemd
c42007
Requires(post): systemd
c42007
Requires(preun): systemd
c42007
Requires(postun): systemd
c42007
c42007
Obsoletes: arptables_jf < 0.0.8-37
c42007
Provides:  arptables_jf = 0.0.8-37
c42007
c42007
%description
c42007
The arptables is a user space tool used to set up and maintain
c42007
the tables of ARP rules in the Linux kernel. These rules inspect
c42007
the ARP frames which they see. arptables is analogous to the iptables
c42007
user space tool, but is less complicated.
c42007
c42007
%prep
c42007
%setup -q -n arptables-v%{version}
c42007
%patch1 -p3 -b .covscan_fix01_simple
c42007
%patch2 -p3 -b .covscan_fix02_buf_overflow
c42007
%patch3 -p3 -b .man-install
c42007
%patch4 -p3 -b .set-counters-option
c42007
c42007
cp %{SOURCE3} COPYING
c42007
cp %{SOURCE4} .
c42007
cp %{SOURCE5} .
c42007
c42007
%build
c42007
# Makefile uses $(KERNEL_DIR) to redefine where to look for header files.
c42007
# But when it's set to standard system include directory gcc ignores it
c42007
# (see gcc(1)). It however looks that the code is not ready for using 
c42007
# system headers (instead included ones) so we don't use this option.
c42007
make all 'COPT_FLAGS=%{optflags}' %{_smp_mflags}
c42007
c42007
%install
c42007
make install DESTDIR=%{buildroot} BINDIR=%{_sbindir} MANDIR=%{_mandir}
c42007
c42007
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/arptables.service
c42007
mkdir -p %{buildroot}%{_libexecdir}/
c42007
install -p -D -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/
c42007
rm -rf %{buildroot}%{_initrddir}
c42007
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
c42007
echo '# Configure prior to use' > %{buildroot}%{_sysconfdir}/sysconfig/arptables
c42007
c42007
%post
c42007
%systemd_post arptables.service
c42007
c42007
%preun
c42007
%systemd_preun arptables.service
c42007
c42007
%postun
c42007
%systemd_postun_with_restart arptables.service
c42007
c42007
c42007
%files
c42007
%doc COPYING
c42007
%{_sbindir}/arptables*
c42007
%{_libexecdir}/arptables-helper
c42007
%{_mandir}/*/arptables*
c42007
%{_unitdir}/arptables.service
c42007
%config(noreplace) %{_sysconfdir}/sysconfig/arptables
c42007
c42007
%changelog
c42007
* Wed Jun  8 2016 Jesper Dangaard Brouer <brouer@redhat.com> - 0.0.4-8
c42007
- Add missing long option --set-counters and update documentation
c42007
  Corrosponding short option -c was implemented, but undocumented.
c42007
  Resolves: rhbz#1050854
c42007
c42007
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.0.4-7
c42007
- Mass rebuild 2014-01-24
c42007
c42007
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.4-6
c42007
- Mass rebuild 2013-12-27
c42007
c42007
* Thu Nov 14 2013 Jesper Dangaard Brouer <brouer@redhat.com> - 0.0.4-5
c42007
- fix issues reported by static analysis tools
c42007
  Resolves: rhbz#1027762
c42007
- add man-pages for arptables-{save,restore}
c42007
  Resolves: rhbz#1025726
c42007
c42007
* Mon Sep 16 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-4
c42007
- revert previous change, the code is not ready for this
c42007
c42007
* Mon Sep 16 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-3
c42007
- use system kernel headers
c42007
c42007
* Fri Sep 13 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-2
c42007
- install with '-p' (#1007964)
c42007
c42007
* Fri Sep 13 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-1
c42007
- renamed arptables_jf to arptables