Blame arptables.spec

0f2bd31
Summary: User space tool to set up tables of ARP rules in kernel
0f2bd31
Name:    arptables
0f2bd31
Version: 0.0.4
2be0af8
Release: 13%{?dist}
0f2bd31
License: GPLv2+
0f2bd31
Group:   System Environment/Base
0f2bd31
0f2bd31
URL:     http://ebtables.sourceforge.net/
0f2bd31
Source0: http://downloads.sourceforge.net/ebtables/arptables/arptables-v%{version}.tar.gz
0f2bd31
Source1: arptables.service
0f2bd31
Source2: arptables-helper
0f2bd31
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
0f2bd31
# http://marc.info/?l=netfilter-devel&m=137908241011194&w=2
0f2bd31
Source3: COPYING
0f2bd31
d9f6a39
BuildRequires: perl-generators
0f2bd31
BuildRequires: systemd
0f2bd31
Requires(post): systemd
0f2bd31
Requires(preun): systemd
0f2bd31
Requires(postun): systemd
0f2bd31
0f2bd31
Obsoletes: arptables_jf < 0.0.8-37
0f2bd31
Provides:  arptables_jf = 0.0.8-37
0f2bd31
0f2bd31
%description
0f2bd31
The arptables is a user space tool used to set up and maintain
0f2bd31
the tables of ARP rules in the Linux kernel. These rules inspect
0f2bd31
the ARP frames which they see. arptables is analogous to the iptables
0f2bd31
user space tool, but is less complicated.
0f2bd31
0f2bd31
%prep
0f2bd31
%setup -q -n arptables-v%{version}
0f2bd31
0f2bd31
cp %{SOURCE3} COPYING
0f2bd31
0f2bd31
%build
0f2bd31
# Makefile uses $(KERNEL_DIR) to redefine where to look for header files.
0f2bd31
# But when it's set to standard system include directory gcc ignores it
0f2bd31
# (see gcc(1)). It however looks that the code is not ready for using 
0f2bd31
# system headers (instead included ones) so we don't use this option.
2be0af8
make all 'COPT_FLAGS=%{optflags}' 'LDFLAGS=%{build_ldflags}' %{_smp_mflags}
0f2bd31
0f2bd31
%install
0f2bd31
make install DESTDIR=%{buildroot} BINDIR=%{_sbindir} MANDIR=%{_mandir}
0f2bd31
0f2bd31
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/arptables.service
0f2bd31
mkdir -p %{buildroot}%{_libexecdir}/
0f2bd31
install -p -D -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/
0f2bd31
rm -rf %{buildroot}%{_initrddir}
0f2bd31
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
0f2bd31
echo '# Configure prior to use' > %{buildroot}%{_sysconfdir}/sysconfig/arptables
0f2bd31
0f2bd31
%post
0f2bd31
%systemd_post arptables.service
0f2bd31
0f2bd31
%preun
0f2bd31
%systemd_preun arptables.service
0f2bd31
0f2bd31
%postun
0f2bd31
%systemd_postun_with_restart arptables.service
0f2bd31
0f2bd31
0f2bd31
%files
0f2bd31
%doc COPYING
0f2bd31
%{_sbindir}/arptables*
0f2bd31
%{_libexecdir}/arptables-helper
0f2bd31
%{_mandir}/*/arptables*
0f2bd31
%{_unitdir}/arptables.service
0f2bd31
%config(noreplace) %{_sysconfdir}/sysconfig/arptables
0f2bd31
0f2bd31
%changelog
2be0af8
* Wed Feb 21 2018 Florian Weimer <fweimer@redhat.com> - 0.0.4-13
2be0af8
- Use LDFLAGS from redhat-rpm-config
2be0af8
7b99f8e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-12
7b99f8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7b99f8e
2e7b335
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-11
2e7b335
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2e7b335
1527985
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-10
1527985
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1527985
b7d64f4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-9
b7d64f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b7d64f4
e13b62e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-8
e13b62e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e13b62e
b142b8d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-7
b142b8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b142b8d
613d113
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-6
613d113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
613d113
396605e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.4-5
396605e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
396605e
0f2bd31
* Mon Sep 16 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-4
0f2bd31
- revert previous change, the code is not ready for this
0f2bd31
0f2bd31
* Mon Sep 16 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-3
0f2bd31
- use system kernel headers
0f2bd31
0f2bd31
* Fri Sep 13 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-2
0f2bd31
- install with '-p' (#1007964)
0f2bd31
0f2bd31
* Fri Sep 13 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-1
0f2bd31
- renamed arptables_jf to arptables