Blame SPECS/fcoe-utils.spec

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