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