Blame SPECS/fcoe-utils.spec

bcac96
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
bcac96
%define _hardened_build 1
bcac96
bcac96
%global checkout f5cbb9a
bcac96
bcac96
Name:               fcoe-utils
bcac96
Version:            1.0.32
bcac96
Release:            2%{?dist}
bcac96
Summary:            Fibre Channel over Ethernet utilities
bcac96
Group:              Applications/System
bcac96
License:            GPLv2
bcac96
URL:                http://www.open-fcoe.org
bcac96
Source0:            https://github.com/morbidrsa/fcoe-utils/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
bcac96
Source1:            quickstart.txt
bcac96
Source2:            fcoe.service
bcac96
Source3:            fcoe.config
bcac96
Source4:            README.redhat
bcac96
Patch0:             0001-fcoemon-link-buffer-resize-fix.patch
bcac96
ExcludeArch:        ppc s390
bcac96
BuildRequires:      autoconf
bcac96
BuildRequires:      automake
bcac96
BuildRequires:      libpciaccess-devel
bcac96
BuildRequires:      libtool
bcac96
BuildRequires:      lldpad-devel >= 0.9.43
bcac96
BuildRequires:      systemd
bcac96
Requires:           lldpad >= 0.9.43
bcac96
Requires:           iproute
bcac96
Requires:           device-mapper-multipath
bcac96
Requires(post):     systemd
bcac96
Requires(preun):    systemd
bcac96
Requires(postun):   systemd
bcac96
bcac96
%description
bcac96
Fibre Channel over Ethernet utilities
bcac96
fcoeadm - command line tool for configuring FCoE interfaces
bcac96
fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad
bcac96
bcac96
%prep
bcac96
%autosetup -p1
bcac96
bcac96
cp -v %{SOURCE1} quickstart.txt
bcac96
cp -v %{SOURCE4} README.redhat
bcac96
bcac96
%build
bcac96
./bootstrap.sh
bcac96
%configure
bcac96
make %{?_smp_mflags}
bcac96
bcac96
%install
bcac96
make install DESTDIR=%{buildroot}
bcac96
rm -rf %{buildroot}/etc/init.d
bcac96
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig %{buildroot}%{_unitdir}
bcac96
rm -f %{buildroot}%{_unitdir}/*
bcac96
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
bcac96
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcoe
bcac96
mkdir -p %{buildroot}%{_libexecdir}/fcoe
bcac96
for file in \
bcac96
    contrib/*.sh \
bcac96
    debug/*sh
bcac96
    do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
bcac96
done
bcac96
# We supply our own config for fcoe.service
bcac96
rm -f %{buildroot}/%{_sysconfdir}/fcoe/config
bcac96
%ifarch s390x
bcac96
# bnx2fc is not available on s390x (#1056371)
bcac96
sed -i -e 's/SUPPORTED_DRIVERS="libfc fcoe bnx2fc"/SUPPORTED_DRIVERS="libfc fcoe"/' \
bcac96
    %{buildroot}/%{_sysconfdir}/sysconfig/fcoe
bcac96
%endif
bcac96
bcac96
%post
bcac96
%systemd_post fcoe.service
bcac96
bcac96
%preun
bcac96
%systemd_preun fcoe.service
bcac96
bcac96
%postun
bcac96
%systemd_postun_with_restart fcoe.service
bcac96
bcac96
%files
bcac96
%doc README.redhat COPYING QUICKSTART quickstart.txt
bcac96
%{_sbindir}/*
bcac96
%{_mandir}/man8/*
bcac96
%{_unitdir}/fcoe.service
bcac96
%{_sysconfdir}/fcoe/
bcac96
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
bcac96
%config(noreplace) %{_sysconfdir}/sysconfig/fcoe
bcac96
%{_sysconfdir}/bash_completion.d/
bcac96
%{_libexecdir}/fcoe/
bcac96
bcac96
%changelog
bcac96
* Fri Jan 25 2019 Chris Leech <cleech@redhat.com> - 1.0.32-2
bcac96
- 1656720 fcoemon fix ignored devices from recv buffer resize bug
bcac96
bcac96
* Wed Feb 22 2017 Chris Leech <cleech@redhat.com> - 1.0.32-1
bcac96
- 1384707 fcoeadm --target segfaults if non-FCoE FC targets are present
bcac96
- 1321611 fcoemon should only try to connect to lldpad when required
bcac96
bcac96
* Fri Aug 19 2016 Chris Leech <cleech@redhat.com> - 1.0.31-1.git5dfd3e4
bcac96
- 1274530 rebase to upstream 1.0.31+
bcac96
- no longer requires libhbaapi/libhbalinux
bcac96
- no longer attempts to connect to lldpad if DC_REQUIRED is configured off
bcac96
  for all interfaces
bcac96
bcac96
* Wed Jul 06 2016 Chris Leech <cleech@redhat.com> - 1.0.30-4.git91c0c8c
bcac96
- 1039779 replace README that contained mostly build instructions with
bcac96
  README.redhat containing better distro-specific information
bcac96
bcac96
* Mon Jul 06 2015 Chris Leech <cleech@redhat.com> - 1.0.30-3.git91c0c8c
bcac96
- 1056367 remove s390x from ExcludeArch
bcac96
bcac96
* Mon Jul 06 2015 Chris Leech <cleech@redhat.com> - 1.0.30-2.git91c0c8c
bcac96
- 1056367 fix display when libhbalinux includes hosts without a serial number
bcac96
bcac96
* Thu Jun 18 2015 Chris Leech <cleech@redhat.com> - 1.0.30-1.git91c0c8c
bcac96
- 1175802 rebase to upstream v1.0.30-2-g91c0c8c
bcac96
bcac96
* Wed Jan 21 2015 Chris Leech <cleech@redhat.com> - 1.0.29-9
bcac96
- 1184386 fix segfault on fipvlan create
bcac96
bcac96
* Mon Oct 27 2014 Chris Leech <cleech@redhat.com> - 1.0.29-8
bcac96
- 1049200 fix fcoeadm VN2VN mode create
bcac96
bcac96
* Fri Oct 03 2014 Chris Leech <cleech@redhat.com> - 1.0.29-7
bcac96
- 1087095 update to upstream v1.0.29-29-g9267509
bcac96
bcac96
* Mon Mar 10 2014 Petr Å abata <contyk@redhat.com> - 1.0.29-6
bcac96
- Break out of recv_loop() (#1049018)
bcac96
bcac96
* Thu Mar 06 2014 Petr Å abata <contyk@redhat.com> - 1.0.29-5
bcac96
- Don't build on s390x again (#1073060)
bcac96
- Drop bnx2fc from SUPPORTED_DRIVERS on s390x, for future (#1056371)
bcac96
- Update fcoemon(8) with more systemd changes (#1049162)
bcac96
bcac96
* Fri Jan 17 2014 Petr Å abata <contyk@redhat.com> - 1.0.29-4
bcac96
- Build on s390x again (#1052999)
bcac96
bcac96
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.29-3
bcac96
- Mass rebuild 2013-12-27
bcac96
bcac96
* Thu Nov 07 2013 Petr Å abata <contyk@redhat.com> - 1.0.29-2
bcac96
- Bug #1024124:
bcac96
- Don't install the old configuration file alongside the new one
bcac96
- Add bnx2fc to the SUPPORTED_DRIVERS for consistency with previous configuration
bcac96
bcac96
* Thu Aug 29 2013 Petr Å abata <contyk@redhat.com> - 1.0.29-1
bcac96
- 1.0.29 bump
bcac96
bcac96
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-4
bcac96
- Drop the initscript-specific config patch
bcac96
bcac96
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-3
bcac96
- Require just 'systemd' instead of 'systemd-units'
bcac96
- Patch the fcoemon manpage with a note for systemd users
bcac96
bcac96
* Mon Jun 10 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-2
bcac96
- Enhance the format strings patch to fix ppc64 build failures too
bcac96
bcac96
* Tue Jun 04 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-1
bcac96
- 1.0.28 bump
bcac96
bcac96
* Wed Mar 06 2013 Petr Å abata <contyk@redhat.com> - 1.0.27-1
bcac96
- 1.0.27 bump
bcac96
bcac96
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
bcac96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bcac96
bcac96
* Wed Jan 09 2013 Petr Å abata <contyk@redhat.com> - 1.0.25-2
bcac96
- Don't build for s390x since it's not supported by kernel either
bcac96
bcac96
* Tue Nov 27 2012 Petr Å abata <contyk@redhat.com> - 1.0.25-1
bcac96
- 1.0.25 (with latest fixes)
bcac96
- Simplify the spec a bit
bcac96
- Fix bogus dates in changelog
bcac96
bcac96
* Thu Nov 01 2012 Petr Å abata <contyk@redhat.com> - 1.0.25-1
bcac96
bcac96
* Tue Aug 28 2012 Petr Å abata <contyk@redhat.com> - 1.0.24-2
bcac96
- Migrate to systemd scriptlets (#850104)
bcac96
bcac96
* Wed Aug 15 2012 Petr Å abata <contyk@redhat.com> - 1.0.24-1
bcac96
- 1.0.24 bump
bcac96
bcac96
* Mon Jul 23 2012 Petr Å abata <contyk@redhat.com> - 1.0.23-3
bcac96
- Don't exclude s390x.
bcac96
- Add AM_PROG_AR to configure.ac.
bcac96
bcac96
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.23-2
bcac96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bcac96
bcac96
* Mon Jun 25 2012 Petr Å abata <contyk@redhat.com> - 1.0.23-1
bcac96
- Update to 1.0.23
bcac96
- Re-introduce ExcludeArch to be in line with EL.
bcac96
bcac96
* Thu Feb 16 2012 Petr Å abata <contyk@redhat.com> - 1.0.22-2
bcac96
- Fix the incorrect libhbalinux runtime dependency
bcac96
bcac96
* Mon Jan 23 2012 Petr Å abata <contyk@redhat.com> - 1.0.22-1
bcac96
- 1.0.22 bump
bcac96
- Remove dcbd from Description
bcac96
bcac96
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.21-2
bcac96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bcac96
bcac96
* Thu Nov 24 2011 Petr Å abata <contyk@redhat.com> - 1.0.21-1
bcac96
- 1.0.21 bump
bcac96
bcac96
* Mon Oct 31 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-5
bcac96
- Remove useless PIDFile from fcoe.service unit file
bcac96
bcac96
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-4
bcac96
- Do not enable fcoemon by default (#701999)
bcac96
- Silence systemctl output
bcac96
bcac96
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-3
bcac96
- Enable hardened build
bcac96
bcac96
* Mon Jul 18 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-2
bcac96
- Drop SysV support in favor of systemd (#714683)
bcac96
- Remove ancient scriptlets (pre-1.0.7 era)
bcac96
- Update quickstart.txt to reflect new changes
bcac96
bcac96
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-1
bcac96
- 1.0.20 bump
bcac96
bcac96
* Thu Jun 02 2011 Petr Sabata <contyk@redhat.com> - 1.0.19-1
bcac96
- 1.0.19 bump
bcac96
bcac96
* Tue May  3 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-2
bcac96
- fcoemon: Do not create a world and group writable PID file
bcac96
bcac96
* Wed Apr 20 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-1
bcac96
- 1.0.18 bump with latest bugfixes
bcac96
- Removing ExcludeArch completely; not related for Fedora
bcac96
- Buildroot cleanup
bcac96
bcac96
* Tue Apr 19 2011 Karsten Hopp <karsten@redhat.com> 1.0.17-1.1
bcac96
- remove excludearch ppc, required by anaconda.ppc
bcac96
bcac96
* Thu Feb 24 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.17-1
bcac96
- Pull in new upstream release (required to build)
bcac96
- Fix git clone URL in comments
bcac96
- Drop fcoe-utils-1.0.7-init.patch, fcoe-utils-1.0.7-init-condrestart.patch
bcac96
  and fcoe-utils-1.0.8-init-LSB.patch that are now upstream
bcac96
- Drop fcoe-utils-1.0.8-includes.patch and use a copy of kernel headers
bcac96
  for all architectures (rename fcoe-sparc.patch to fcoe-include-headers.patch)
bcac96
  Upstream added detection to avoid inclusion of kernel headers in the build
bcac96
  and it expects to find the userland headers installed. Those have not
bcac96
  yet propagated in Fedora.
bcac96
  Use temporary this workaround, since fcoe is a requiment for anaconda
bcac96
  and it failed to build for a while
bcac96
- Drop BuildRequires on kernel-devel
bcac96
- Add BuildRequires on autoconf (it is used and not installed by default
bcac96
  on all build chroots)
bcac96
bcac96
* Wed Feb 23 2011 Dennis Gilmore <dennis@ausil.us> - 1.0.14-5
bcac96
- patch in headers used from kernel-devel on 32 bit sparc 
bcac96
bcac96
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-4
bcac96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bcac96
bcac96
* Tue Nov 30 2010 Petr Sabata <psabata@redhat.com> - 1.0.14-3
bcac96
- Removing dependency on vconfig, rhbz#658525
bcac96
bcac96
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-2
bcac96
- added device-mapper-multipath to requires (#603242)
bcac96
- added missing man pages for fcrls, fcnsq and fcping
bcac96
- update of init script - added condrestart, try-restart
bcac96
  and force-reload options
bcac96
- added vconfig to requires (#589608)
bcac96
bcac96
* Mon May 24 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-1
bcac96
- rebased to 1.0.14, see bug #593824 for complete changelog
bcac96
bcac96
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.13-1
bcac96
- rebased to v1.0.13, some bugfixes, new fcoe related scripts
bcac96
bcac96
* Tue Mar 30 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-2.20100323git
bcac96
- some upstream updates
bcac96
- better fipvlan support
bcac96
- added fcoe_edd.sh script
bcac96
bcac96
* Tue Mar 16 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-1
bcac96
- rebased to version 1.0.12, improved functionality with lldpad
bcac96
  and dcbd
bcac96
- removed /etc/fcoe/scripts/fcoeplumb
bcac96
bcac96
* Thu Dec 10 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-2.20091204git
bcac96
- excluded s390 and ppc
bcac96
bcac96
* Fri Dec 04 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-1.20091204git
bcac96
- rebase to latest version of fcoe-utils
bcac96
bcac96
* Mon Sep 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-3
bcac96
- update of init script to be LSB-compliant
bcac96
bcac96
* Fri Jul 31 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-2
bcac96
- patch for clean compilation without usage of upstream's ugly hack
bcac96
bcac96
* Thu Jul 30 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-1
bcac96
- rebase of fcoe-utils to 1.0.8, adjusted spec file
bcac96
bcac96
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-8
bcac96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bcac96
bcac96
* Tue Jun 9 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-7
bcac96
- added quickstart file to doc (#500759)
bcac96
bcac96
* Thu May 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-6
bcac96
- renamed init script to fcoe, changed lock filename to fcoe
bcac96
  (#497604)
bcac96
- init script modified to do condrestart properly
bcac96
- some modifications in spec file to apply previous change
bcac96
  to older versions od init script during update
bcac96
- fixed issue with accepting long options (#498551)
bcac96
bcac96
* Mon May 4 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-5
bcac96
- fixed SIGSEGV when fcoe module isn't loaded (#498550)
bcac96
bcac96
* Mon Apr 27 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-4
bcac96
- added libhbalinux to Requires (#497605)
bcac96
- correction of spec file (_initddir -> _initrddir)
bcac96
bcac96
* Wed Apr 8 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-3
bcac96
- more minor corrections in spec file
bcac96
bcac96
* Thu Apr 2 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-2
bcac96
- minor corrections in spec file
bcac96
- moved init script to correct location
bcac96
- correction in the init script (chkconfig directives)
bcac96
bcac96
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
bcac96
- initial rpm build of fcoe tools
bcac96