30fd80
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
30fd80
%global _hardened_build 1
30fd80
c4c819
# v1.0.33-9-g848bcc6ba8c
c4c819
%global commit0      848bcc6ba8cda1f344663b4e73f1bc4857bcb4e3
c4c819
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
30fd80
30fd80
Name:               fcoe-utils
c4c819
Version:            1.0.33
d415b1
Release:            4.git%{shortcommit0}%{?dist}
30fd80
Summary:            Fibre Channel over Ethernet utilities
30fd80
Group:              Applications/System
30fd80
License:            GPLv2
30fd80
URL:                http://www.open-fcoe.org
c4c819
Source0:            https://github.com/openSUSE/fcoe-utils/archive/%{commit0}.tar.gz#/%{name}-%{version}-%{shortcommit0}.tar.gz
30fd80
Source1:            quickstart.txt
30fd80
Source2:            fcoe.service
30fd80
Source3:            fcoe.config
30fd80
ExcludeArch:        ppc s390
c4c819
Patch0:             fcoe-utils-set-default-DCB_REQUIRED-to-no.patch
bc9d6e
Patch1:             0001-Revert-fcoemon-Correctly-handle-options-in-the-servi.patch
fd9263
Patch2:             0002-Revert-Make-gcc-compiler-happy-about-ifname-string-t.patch
fd9263
Patch3:             0003-fix-VLAN-device-name-overflow-check.patch
fd9263
Patch4:             0004-fix-regressions-caused-by-safe_makepath-change-in-li.patch
fd9263
Patch5:             0005-minor-fcoeadm-output-issues.patch
fd9263
30fd80
BuildRequires:      autoconf
30fd80
BuildRequires:      automake
30fd80
BuildRequires:      libpciaccess-devel
30fd80
BuildRequires:      libtool
30fd80
BuildRequires:      lldpad-devel >= 0.9.43
30fd80
BuildRequires:      systemd
30fd80
Requires:           lldpad >= 0.9.43
30fd80
Requires:           iproute
30fd80
Requires:           device-mapper-multipath
30fd80
Requires(post):     systemd
30fd80
Requires(preun):    systemd
30fd80
Requires(postun):   systemd
30fd80
30fd80
%description
30fd80
Fibre Channel over Ethernet utilities
30fd80
fcoeadm - command line tool for configuring FCoE interfaces
30fd80
fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad
30fd80
30fd80
%prep
c4c819
%autosetup -p1 -n fcoe-utils-%{commit0}
30fd80
cp -v %{SOURCE1} quickstart.txt
30fd80
30fd80
%build
30fd80
./bootstrap.sh
30fd80
%configure
30fd80
make %{?_smp_mflags}
30fd80
30fd80
%install
30fd80
make install DESTDIR=%{buildroot}
30fd80
rm -rf %{buildroot}/etc/init.d
30fd80
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig %{buildroot}%{_unitdir}
30fd80
rm -f %{buildroot}%{_unitdir}/*
30fd80
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
30fd80
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcoe
30fd80
mkdir -p %{buildroot}%{_libexecdir}/fcoe
30fd80
for file in \
30fd80
    contrib/*.sh \
30fd80
    debug/*sh
30fd80
    do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
30fd80
done
30fd80
# We supply our own config for fcoe.service
30fd80
rm -f %{buildroot}/%{_sysconfdir}/fcoe/config
30fd80
30fd80
%post
30fd80
%systemd_post fcoe.service
30fd80
30fd80
%preun
30fd80
%systemd_preun fcoe.service
30fd80
30fd80
%postun
30fd80
%systemd_postun_with_restart fcoe.service
30fd80
30fd80
%files
30fd80
%doc README COPYING QUICKSTART quickstart.txt
30fd80
%{_sbindir}/*
30fd80
%{_mandir}/man8/*
30fd80
%{_unitdir}/fcoe.service
30fd80
%{_sysconfdir}/fcoe/
30fd80
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
30fd80
%config(noreplace) %{_sysconfdir}/sysconfig/fcoe
c4c819
%{_datadir}/bash-completion/completions/*
30fd80
%{_libexecdir}/fcoe/
30fd80
30fd80
%changelog
d415b1
* Thu Jun 10 2021 Chris Leech <cleech@redhat.com> - 1.0.33-4.git848bcc6
d415b1
- rebuilt for 8.5
d415b1
fd9263
* Tue Mar 23 2021 Chris Leech <cleech@redhat.com> - 1.0.33-3.git848bcc6
fd9263
- 1918561 regression in fipvlan VLAN name generation and fcoeadm commands
fd9263
bc9d6e
* Mon Jan 18 2021 Chris Leech <cleech@redhat.com> - 1.0.33-2.git848bcc6
bc9d6e
- 1897503 revert breaking upstream change to command line options
bc9d6e
c4c819
* Tue Nov 03 2020 Chris Leech <cleech@redhat.com> - 1.0.33-1.git848bcc6
c4c819
- 1889536 add back default change of DCB_REQUIRED="no" for RHEL 8
c4c819
c4c819
* Tue Nov 03 2020 Chris Leech <cleech@redhat.com> - 1.0.33-0.git848bcc6
c4c819
- 1889536 new version
c4c819
b56cc0
* Fri Dec 06 2019 Chris Leech <cleech@redhat.com> - 1.0.32-7
b56cc0
- 1776492 fcoemon: fix ignored devices from recv buffer resize bug
b56cc0
30fd80
* Tue Aug 07 2018 Chris Leech <cleech@redhat.com> - 1.0.32-6
30fd80
- remove fcoe from SUPPORTED_DRIVERS in /etc/sysconfig/fcoe
30fd80
- add qedf to SUPPORTED_DRIVERS in /etc/sysconf/fcoe
30fd80
- added upstream fix for large fcoe ctrl numbers
30fd80
30fd80
* Fri Mar 16 2018 Chris Leech <cleech@redhat.com> - 1.0.32-5
30fd80
- fix some newer gcc 8 truncation format errors
30fd80
30fd80
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.32-4
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
30fd80
30fd80
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.32-3
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
30fd80
30fd80
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.32-2
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
30fd80
30fd80
* Thu Feb 09 2017 Chris Leech <cleech@redhat.com> - 1.0.32-1
30fd80
- update to 1.0.32
30fd80
30fd80
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.30-5.git91c0c8c
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
30fd80
30fd80
* Mon Feb 01 2016 Chris Leech <cleech@redhat.com> - 1.0.30-4.git91c0c8c
30fd80
- 1303433 package should not attempt to own /etc/bash_completion.d
30fd80
30fd80
* Mon Jul 06 2015 Chris Leech <cleech@redhat.com> - 1.0.30-2
30fd80
- fix display when libhbalinux includes hosts without a serial number
30fd80
30fd80
* Tue Jun 16 2015 Chris Leech <cleech@redhat.com> - 1.0.30-1
30fd80
- rebase to upstream v1.0.30-2-g91c0c8c
30fd80
30fd80
* Fri Oct 24 2014 Chris Leech <cleech@redhat.com> - 1.0.29-7
30fd80
- enable vn2vn mode in fcoeadm
30fd80
30fd80
* Tue Oct 07 2014 Chris Leech <cleech@redhat.com> - 1.0.29-6
30fd80
- update to upstream v1.0.29-29-g9267509
30fd80
30fd80
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-5
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
30fd80
30fd80
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-4
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
30fd80
30fd80
* Thu Nov 07 2013 Petr Å abata <contyk@redhat.com> - 1.0.29-3
30fd80
- Fix configure.ac for automake 1.14
30fd80
30fd80
* Thu Nov 07 2013 Petr Å abata <contyk@redhat.com> - 1.0.29-2
30fd80
- Don't install the old configuration file alongside the new one
30fd80
- Add bnx2fc to the SUPPORTED_DRIVERS for consistency with previous configuration
30fd80
30fd80
* Thu Aug 29 2013 Petr Å abata <contyk@redhat.com> - 1.0.29-1
30fd80
- 1.0.29 bump
30fd80
30fd80
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-4
30fd80
- Drop the initscript-specific config patch
30fd80
30fd80
* Wed Jul 31 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-3
30fd80
- Require just 'systemd' instead of 'systemd-units'
30fd80
- Patch the fcoemon manpage with a note for systemd users
30fd80
30fd80
* Mon Jun 10 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-2
30fd80
- Enhance the format strings patch to fix ppc64 build failures too
30fd80
30fd80
* Tue Jun 04 2013 Petr Å abata <contyk@redhat.com> - 1.0.28-1
30fd80
- 1.0.28 bump
30fd80
30fd80
* Wed Mar 06 2013 Petr Å abata <contyk@redhat.com> - 1.0.27-1
30fd80
- 1.0.27 bump
30fd80
30fd80
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
30fd80
30fd80
* Wed Jan 09 2013 Petr Å abata <contyk@redhat.com> - 1.0.25-2
30fd80
- Don't build for s390x since it's not supported by kernel either
30fd80
30fd80
* Tue Nov 27 2012 Petr Å abata <contyk@redhat.com> - 1.0.25-1
30fd80
- 1.0.25 (with latest fixes)
30fd80
- Simplify the spec a bit
30fd80
- Fix bogus dates in changelog
30fd80
30fd80
* Thu Nov 01 2012 Petr Å abata <contyk@redhat.com> - 1.0.25-1
30fd80
30fd80
* Tue Aug 28 2012 Petr Å abata <contyk@redhat.com> - 1.0.24-2
30fd80
- Migrate to systemd scriptlets (#850104)
30fd80
30fd80
* Wed Aug 15 2012 Petr Å abata <contyk@redhat.com> - 1.0.24-1
30fd80
- 1.0.24 bump
30fd80
30fd80
* Mon Jul 23 2012 Petr Å abata <contyk@redhat.com> - 1.0.23-3
30fd80
- Don't exclude s390x.
30fd80
- Add AM_PROG_AR to configure.ac.
30fd80
30fd80
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.23-2
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
30fd80
30fd80
* Mon Jun 25 2012 Petr Å abata <contyk@redhat.com> - 1.0.23-1
30fd80
- Update to 1.0.23
30fd80
- Re-introduce ExcludeArch to be in line with EL.
30fd80
30fd80
* Thu Feb 16 2012 Petr Å abata <contyk@redhat.com> - 1.0.22-2
30fd80
- Fix the incorrect libhbalinux runtime dependency
30fd80
30fd80
* Mon Jan 23 2012 Petr Å abata <contyk@redhat.com> - 1.0.22-1
30fd80
- 1.0.22 bump
30fd80
- Remove dcbd from Description
30fd80
30fd80
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.21-2
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
30fd80
30fd80
* Thu Nov 24 2011 Petr Å abata <contyk@redhat.com> - 1.0.21-1
30fd80
- 1.0.21 bump
30fd80
30fd80
* Mon Oct 31 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-5
30fd80
- Remove useless PIDFile from fcoe.service unit file
30fd80
30fd80
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-4
30fd80
- Do not enable fcoemon by default (#701999)
30fd80
- Silence systemctl output
30fd80
30fd80
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-3
30fd80
- Enable hardened build
30fd80
30fd80
* Mon Jul 18 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-2
30fd80
- Drop SysV support in favor of systemd (#714683)
30fd80
- Remove ancient scriptlets (pre-1.0.7 era)
30fd80
- Update quickstart.txt to reflect new changes
30fd80
30fd80
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-1
30fd80
- 1.0.20 bump
30fd80
30fd80
* Thu Jun 02 2011 Petr Sabata <contyk@redhat.com> - 1.0.19-1
30fd80
- 1.0.19 bump
30fd80
30fd80
* Tue May  3 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-2
30fd80
- fcoemon: Do not create a world and group writable PID file
30fd80
30fd80
* Wed Apr 20 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-1
30fd80
- 1.0.18 bump with latest bugfixes
30fd80
- Removing ExcludeArch completely; not related for Fedora
30fd80
- Buildroot cleanup
30fd80
30fd80
* Tue Apr 19 2011 Karsten Hopp <karsten@redhat.com> 1.0.17-1.1
30fd80
- remove excludearch ppc, required by anaconda.ppc
30fd80
30fd80
* Thu Feb 24 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.17-1
30fd80
- Pull in new upstream release (required to build)
30fd80
- Fix git clone URL in comments
30fd80
- Drop fcoe-utils-1.0.7-init.patch, fcoe-utils-1.0.7-init-condrestart.patch
30fd80
  and fcoe-utils-1.0.8-init-LSB.patch that are now upstream
30fd80
- Drop fcoe-utils-1.0.8-includes.patch and use a copy of kernel headers
30fd80
  for all architectures (rename fcoe-sparc.patch to fcoe-include-headers.patch)
30fd80
  Upstream added detection to avoid inclusion of kernel headers in the build
30fd80
  and it expects to find the userland headers installed. Those have not
30fd80
  yet propagated in Fedora.
30fd80
  Use temporary this workaround, since fcoe is a requiment for anaconda
30fd80
  and it failed to build for a while
30fd80
- Drop BuildRequires on kernel-devel
30fd80
- Add BuildRequires on autoconf (it is used and not installed by default
30fd80
  on all build chroots)
30fd80
30fd80
* Wed Feb 23 2011 Dennis Gilmore <dennis@ausil.us> - 1.0.14-5
30fd80
- patch in headers used from kernel-devel on 32 bit sparc 
30fd80
30fd80
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-4
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
30fd80
30fd80
* Tue Nov 30 2010 Petr Sabata <psabata@redhat.com> - 1.0.14-3
30fd80
- Removing dependency on vconfig, rhbz#658525
30fd80
30fd80
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-2
30fd80
- added device-mapper-multipath to requires (#603242)
30fd80
- added missing man pages for fcrls, fcnsq and fcping
30fd80
- update of init script - added condrestart, try-restart
30fd80
  and force-reload options
30fd80
- added vconfig to requires (#589608)
30fd80
30fd80
* Mon May 24 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-1
30fd80
- rebased to 1.0.14, see bug #593824 for complete changelog
30fd80
30fd80
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.13-1
30fd80
- rebased to v1.0.13, some bugfixes, new fcoe related scripts
30fd80
30fd80
* Tue Mar 30 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-2.20100323git
30fd80
- some upstream updates
30fd80
- better fipvlan support
30fd80
- added fcoe_edd.sh script
30fd80
30fd80
* Tue Mar 16 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-1
30fd80
- rebased to version 1.0.12, improved functionality with lldpad
30fd80
  and dcbd
30fd80
- removed /etc/fcoe/scripts/fcoeplumb
30fd80
30fd80
* Thu Dec 10 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-2.20091204git
30fd80
- excluded s390 and ppc
30fd80
30fd80
* Fri Dec 04 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-1.20091204git
30fd80
- rebase to latest version of fcoe-utils
30fd80
30fd80
* Mon Sep 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-3
30fd80
- update of init script to be LSB-compliant
30fd80
30fd80
* Fri Jul 31 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-2
30fd80
- patch for clean compilation without usage of upstream's ugly hack
30fd80
30fd80
* Thu Jul 30 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-1
30fd80
- rebase of fcoe-utils to 1.0.8, adjusted spec file
30fd80
30fd80
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-8
30fd80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
30fd80
30fd80
* Tue Jun 9 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-7
30fd80
- added quickstart file to doc (#500759)
30fd80
30fd80
* Thu May 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-6
30fd80
- renamed init script to fcoe, changed lock filename to fcoe
30fd80
  (#497604)
30fd80
- init script modified to do condrestart properly
30fd80
- some modifications in spec file to apply previous change
30fd80
  to older versions od init script during update
30fd80
- fixed issue with accepting long options (#498551)
30fd80
30fd80
* Mon May 4 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-5
30fd80
- fixed SIGSEGV when fcoe module isn't loaded (#498550)
30fd80
30fd80
* Mon Apr 27 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-4
30fd80
- added libhbalinux to Requires (#497605)
30fd80
- correction of spec file (_initddir -> _initrddir)
30fd80
30fd80
* Wed Apr 8 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-3
30fd80
- more minor corrections in spec file
30fd80
30fd80
* Thu Apr 2 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-2
30fd80
- minor corrections in spec file
30fd80
- moved init script to correct location
30fd80
- correction in the init script (chkconfig directives)
30fd80
30fd80
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
30fd80
- initial rpm build of fcoe tools
30fd80