Blame SPECS/ebtables.spec

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