Blame SPECS/ebtables.spec

8c7451
%global ebminor 4
8c7451
8c7451
Name:			ebtables
8c7451
Version:		2.0.10
8c7451
Release:		16%{?dist}
8c7451
Summary:		Ethernet Bridge frame table administration tool
8c7451
License:		GPLv2+
8c7451
Group:			System Environment/Base
8c7451
URL:			http://ebtables.sourceforge.net/
8c7451
Source0:		http://downloads.sourceforge.net/ebtables/ebtables-v%{version}-%{ebminor}.tar.gz
8c7451
Source1:		ebtables-save
8c7451
Source2:		ebtables.systemd
8c7451
Source3:		ebtables.service
8c7451
Patch0:			ebtables-2.0.10-norootinst.patch
8c7451
Patch3:			ebtables-2.0.9-lsb.patch
8c7451
Patch4:			ebtables-2.0.10-linkfix.patch
8c7451
Patch5:			ebtables-2.0.0-audit.patch
8c7451
Patch6:			ebtables-2.0.10-noflush.patch
8c7451
Patch7:			ebtables-2.0.10-lockdirfix.patch
8c7451
Patch8:			ebtables-2.0.10-flock.patch
8c7451
BuildRequires:		systemd-units
8c7451
Requires(post):		systemd
8c7451
Requires(preun):	systemd
8c7451
Requires(postun):	systemd
8c7451
8c7451
%description
8c7451
Ethernet bridge tables is a firewalling tool to transparently filter network
8c7451
traffic passing a bridge. The filtering possibilities are limited to link
8c7451
layer filtering and some basic filtering on higher network layers.
8c7451
8c7451
This tool is the userspace control for the bridge and ebtables kernel
8c7451
components.
8c7451
8c7451
The ebtables tool can be used together with the other Linux filtering tools,
8c7451
like iptables. There are no known incompatibility issues.
8c7451
8c7451
%prep
8c7451
%setup -q -n ebtables-v%{version}-%{ebminor}
8c7451
%patch0 -p1 -b .norootinst
8c7451
%patch3 -p1 -b .lsb
8c7451
# extension modules need to link to libebtc.so for ebt_errormsg
8c7451
%patch4 -p1 -b .linkfix
8c7451
%patch5 -p1 -b .AUDIT
8c7451
%patch6 -p1 -b .noflush
8c7451
%patch7 -p1 -b .lockdir
8c7451
%patch8 -p1 -b .flock
8c7451
8c7451
# Convert to UTF-8
8c7451
f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
8c7451
8c7451
%build
8c7451
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}" LIBDIR="/%{_lib}/ebtables" BINDIR="/sbin" MANDIR="%{_mandir}" LDFLAGS="${RPM_LD_FLAGS} -Wl,-z,now"
8c7451
8c7451
%install
8c7451
mkdir -p %{buildroot}%{_initrddir}
8c7451
mkdir -p %{buildroot}%{_unitdir}
8c7451
install -m 644 -p %{SOURCE3} %{buildroot}%{_unitdir}/
8c7451
mkdir -p %{buildroot}%{_libexecdir}
8c7451
install -m0755 %{SOURCE2} %{buildroot}%{_libexecdir}/ebtables
8c7451
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
8c7451
make DESTDIR="%{buildroot}" LIBDIR="/%{_lib}/ebtables" BINDIR="/sbin" MANDIR="%{_mandir}" install
8c7451
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.filter
8c7451
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.nat
8c7451
touch %{buildroot}%{_sysconfdir}/sysconfig/ebtables.broute
8c7451
8c7451
# Do not need the sysvinit
8c7451
rm -rf %{buildroot}%{_initrddir}
8c7451
8c7451
# install ebtables-save bash script
8c7451
rm -f %{buildroot}/sbin/ebtables-save
8c7451
install %{SOURCE1} %{buildroot}/sbin/ebtables-save
8c7451
8c7451
# move libebtc.so into the ldpath
8c7451
mv %{buildroot}/%{_lib}/ebtables/libebtc.so %{buildroot}/%{_lib}/
8c7451
8c7451
%post
8c7451
%systemd_post ebtables.service
8c7451
/sbin/ldconfig
8c7451
8c7451
%preun
8c7451
%systemd_preun ebtables.service
8c7451
8c7451
%postun
8c7451
%systemd_postun_with_restart ebtables.service
8c7451
/sbin/ldconfig
8c7451
8c7451
%files
8c7451
%defattr(-, root, root, 0755)
8c7451
%doc ChangeLog COPYING THANKS
8c7451
%doc %{_mandir}/man8/ebtables.8*
8c7451
%config(noreplace) %{_sysconfdir}/ethertypes
8c7451
%config(noreplace) %{_sysconfdir}/sysconfig/ebtables-config
8c7451
%{_unitdir}/ebtables.service
8c7451
%{_libexecdir}/ebtables
8c7451
/%{_lib}/libebtc.so
8c7451
/%{_lib}/ebtables/
8c7451
/sbin/ebtables*
8c7451
%ghost %{_sysconfdir}/sysconfig/ebtables.filter
8c7451
%ghost %{_sysconfdir}/sysconfig/ebtables.nat
8c7451
%ghost %{_sysconfdir}/sysconfig/ebtables.broute
8c7451
8c7451
%changelog
8c7451
* Wed Oct 25 2017 Phil Sutter <psutter@redhat.com> - 2.0.10-16
8c7451
- Fix for potentially stale lock files (RHBZ#1495893)
8c7451
8c7451
* Thu Jun 30 2016 Thomas Woerner <twoerner@redhat.com> - 2.0.10-15
8c7451
- Backported lockdirfix to use (/var)/run from Fedora (RHBZ#1346376)
8c7451
8c7451
* Tue May 17 2016 Thomas Woerner <twoerner@redhat.com> - 2.0.10-14
8c7451
- Fixed persmissions of ebtables.service (RHBZ#1288586)
8c7451
- Added upstream patch to add noflush option to ebtables-restore (RHBZ#1334271)
8c7451
8c7451
* Tue Mar 04 2014 Jiri Popelka <jpopelka@redhat.com> - 2.0.10-13
8c7451
- do not eviscerate -fstack-protector(-strong) from CFLAGS (#1070801)
8c7451
8c7451
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0.10-12
8c7451
- Mass rebuild 2014-01-24
8c7451
8c7451
* Tue Jan  7 2014 Thomas Woerner <twoerner@redhat.com> - 2.0.10-11
8c7451
- fixed rebuild problem, using MY_CFLAGS from latest fedora package
8c7451
  (RHBZ#1048855)
8c7451
8c7451
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.10-10
8c7451
- Mass rebuild 2013-12-27
8c7451
8c7451
* Tue Nov  5 2013 Thomas Woerner <twoerner@redhat.com> - 2.0.10-9
8c7451
- fixed missing systemd unit file (RHBZ#818953)
8c7451
  merged fedora patches from Tom Callaway
8c7451
- fixed NETWORK test in the init script (RHBZ#1026784)
8c7451
- fixed needed rpmdiff failures (RHBZ#883988)
8c7451
8c7451
* Thu Mar 21 2013 Tom Callaway <spot@fedoraproject.org> - 2.0.10-8
8c7451
- add audit module
8c7451
8c7451
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-7
8c7451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8c7451
8c7451
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-6
8c7451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8c7451
8c7451
* Thu Apr  5 2012 Tom Callaway <spot@fedoraproject.org> - 2.0.10-5
8c7451
- update to 2.0.10-4 (upstream numbering is goofy)
8c7451
- fix missing symbol issue with extension modules (bz810006)
8c7451
8c7451
* Thu Feb 16 2012 Thomas Woerner <twoerner@redhat.com> - 2.0.10-4
8c7451
- replaced ebtables-save perl script by bash script to get rid of the perl 
8c7451
  requirement
8c7451
8c7451
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-3
8c7451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8c7451
8c7451
* Thu Aug 11 2011 Tom Callaway <spot@fedoraproject.org> - 2.0.10-2
8c7451
- update to 2.0.10-2
8c7451
8c7451
* Mon Jul 11 2011 Tom Callaway <spot@fedoraproject.org> - 2.0.10-1
8c7451
- update to 2.0.10-1
8c7451
8c7451
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-6
8c7451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8c7451
8c7451
* Mon Feb 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.9-5
8c7451
- update to 2.0.9-2
8c7451
8c7451
* Fri Jan 29 2010 Thomas Woerner <twoerner@redhat.com> - 2.0.9-4
8c7451
- moved ebtables modules to /lib[64]/ebtables (rhbz#558886)
8c7451
8c7451
* Fri Jan 15 2010 Thomas Woerner <twoerner@redhat.com> - 2.0.9-3
8c7451
- fixed init script to be lsb conform (rhbz#536828)
8c7451
- fixed download link according to package review
8c7451
8c7451
* Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.9-2
8c7451
- fix source0 url
8c7451
8c7451
* Mon Jul 27 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.9-1
8c7451
- update to 2.0.9
8c7451
8c7451
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-7
8c7451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8c7451
8c7451
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-6
8c7451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8c7451
8c7451
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.8-5
8c7451
- Autorebuild for GCC 4.3
8c7451
8c7451
* Sun Oct 28 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-4
8c7451
- bump to 2.0.8-2 from upstream
8c7451
- keep _libdir/ebtables, even though upstream just moved away from it.
8c7451
8c7451
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-3
8c7451
- use _libdir/ebtables to match upstream RPATH (bugzilla 248865)
8c7451
- correct license tag
8c7451
- use upstream init script
8c7451
- enable build-id
8c7451
- use cflags for all compiles
8c7451
- be sane with DESTDIR
8c7451
8c7451
* Mon Jul  9 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-2
8c7451
- remove "Fedora Core" reference in spec
8c7451
8c7451
* Mon Jul  2 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-1
8c7451
- final 2.0.8 release
8c7451
8c7451
* Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.8.rc3
8c7451
- fix release order
8c7451
8c7451
* Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.1.rc3
8c7451
- bump to rc3
8c7451
8c7451
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 2.0.8-0.7.rc2
8c7451
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
8c7451
8c7451
* Mon Sep 18 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.6.rc2
8c7451
- fix versioning
8c7451
8c7451
* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.3.rc2
8c7451
- fix bugzilla 206257
8c7451
8c7451
* Tue Sep 12 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.2.rc2
8c7451
- fix for FC-6
8c7451
8c7451
* Mon Apr 24 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.1.rc2
8c7451
- bump to rc2
8c7451
8c7451
* Sun Apr  2 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.5.rc1
8c7451
- learn to use "install" correctly. :/
8c7451
8c7451
* Sun Apr  2 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.4.rc1
8c7451
- package up the shared libs too
8c7451
8c7451
* Wed Mar 29 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.3.rc1
8c7451
- use -fPIC
8c7451
8c7451
* Wed Mar 29 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.2.rc1
8c7451
- broken tagging
8c7451
8c7451
* Tue Jan 10 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.8-0.1.rc1
8c7451
- bump to 2.0.8-rc1
8c7451
8c7451
* Mon Jul  4 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.6-7
8c7451
- buildsystem error requires artificial release bump
8c7451
8c7451
* Mon Jul  4 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.6-6
8c7451
- actually touch ghosted files
8c7451
8c7451
* Fri Jul  1 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.6-5
8c7451
- fix sysv file
8c7451
8c7451
* Fri Jul  1 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.6-4
8c7451
- remove INSTALL file
8c7451
- add some text to description, correct typos
8c7451
- fix %%postun
8c7451
- add PreReqs
8c7451
- add %%ghost config files
8c7451
8c7451
* Tue May 31 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.0.6-3
8c7451
- reworked for Fedora Extras
8c7451
- add gcc4 fix
8c7451
- move init file into SOURCE1
8c7451
8c7451
* Thu Dec 02 2004 Dag Wieers <dag@wieers.com> - 2.0.6-2
8c7451
- Added patch for gcc 3.4. (Nigel Smith)
8c7451
8c7451
* Tue Apr 27 2004 Dag Wieers <dag@wieers.com> - 2.0.6-2
8c7451
- Cosmetic changes.
8c7451
8c7451
* Tue Apr 27 2004 Dag Wieers <dag@wieers.com> - 2.0.6-1
8c7451
- Initial package. (using DAR)