2011-09-23 11:40:14 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
|
|
|
|
%define _hardened_build 1
|
|
|
|
|
2011-07-18 13:38:27 +00:00
|
|
|
Name: fcoe-utils
|
2013-08-29 14:07:14 +00:00
|
|
|
Version: 1.0.29
|
|
|
|
Release: 1%{?dist}
|
2011-07-18 13:38:27 +00:00
|
|
|
Summary: Fibre Channel over Ethernet utilities
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2
|
|
|
|
URL: http://www.open-fcoe.org
|
2011-04-20 09:03:37 +00:00
|
|
|
# git://open-fcoe.org/fcoe/fcoe-utils.git
|
2013-06-04 17:18:44 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2011-07-18 13:38:27 +00:00
|
|
|
Source1: quickstart.txt
|
|
|
|
Source2: fcoe.service
|
|
|
|
Source3: fcoe.config
|
2013-01-09 09:15:46 +00:00
|
|
|
ExcludeArch: ppc s390 s390x
|
2011-04-20 09:03:37 +00:00
|
|
|
# Generic Fedora patches
|
2013-08-29 14:07:14 +00:00
|
|
|
Patch1: fcoe-utils-1.0.29-make.patch
|
2011-07-18 13:38:27 +00:00
|
|
|
Patch2: fcoe-utils-1.0.18-help.patch
|
2013-07-31 15:07:45 +00:00
|
|
|
Patch3: fcoe-utils-1.0.28-format-strings.patch
|
|
|
|
Patch4: fcoe-utils-1.0.28-systemd-doc.patch
|
2013-06-04 17:18:44 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2011-07-14 14:10:45 +00:00
|
|
|
BuildRequires: libhbaapi-devel >= 2.2-12
|
2011-11-24 14:13:00 +00:00
|
|
|
BuildRequires: libhbalinux-devel >= 1.0.13
|
2013-06-04 17:18:44 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: lldpad-devel >= 0.9.43
|
2013-07-31 14:35:42 +00:00
|
|
|
BuildRequires: systemd
|
2011-07-07 14:48:53 +00:00
|
|
|
Requires: lldpad >= 0.9.43
|
2012-02-16 13:17:38 +00:00
|
|
|
Requires: libhbalinux >= 1.0.13
|
2011-07-07 14:48:53 +00:00
|
|
|
Requires: iproute
|
|
|
|
Requires: device-mapper-multipath
|
2013-07-31 14:35:42 +00:00
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Fibre Channel over Ethernet utilities
|
|
|
|
fcoeadm - command line tool for configuring FCoE interfaces
|
2012-01-23 14:03:55 +00:00
|
|
|
fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%prep
|
2011-06-02 14:09:20 +00:00
|
|
|
%setup -q
|
2012-11-27 16:00:01 +00:00
|
|
|
cp -v %{SOURCE1} quickstart.txt
|
2011-04-20 09:03:37 +00:00
|
|
|
%patch1 -p1 -b .make
|
|
|
|
%patch2 -p1 -b .help
|
2013-07-31 15:07:45 +00:00
|
|
|
%patch3 -p1 -b .format-strings
|
|
|
|
%patch4 -p1 -b .systemd-doc
|
2011-02-23 16:40:09 +00:00
|
|
|
|
2009-04-10 07:31:57 +00:00
|
|
|
%build
|
2009-07-31 17:51:10 +00:00
|
|
|
./bootstrap.sh
|
2009-04-10 07:31:57 +00:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2011-04-20 09:03:37 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -rf %{buildroot}/etc/init.d
|
2011-07-18 13:38:27 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/fcoe
|
2011-04-20 09:03:37 +00:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/fcoe
|
2012-11-27 16:00:01 +00:00
|
|
|
for file in \
|
|
|
|
contrib/*.sh \
|
|
|
|
debug/*sh
|
|
|
|
do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
|
|
|
|
done
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%post
|
2012-08-28 11:44:02 +00:00
|
|
|
%systemd_post fcoe.service
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%preun
|
2012-08-28 11:44:02 +00:00
|
|
|
%systemd_preun fcoe.service
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%postun
|
2012-08-28 11:44:02 +00:00
|
|
|
%systemd_postun_with_restart fcoe.service
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%files
|
2012-11-27 16:00:01 +00:00
|
|
|
%doc README COPYING QUICKSTART quickstart.txt
|
2009-04-10 07:31:57 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man8/*
|
2011-07-18 13:38:27 +00:00
|
|
|
%{_unitdir}/fcoe.service
|
2012-11-27 16:00:01 +00:00
|
|
|
%{_sysconfdir}/fcoe/
|
2009-04-10 07:31:57 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
|
2012-11-27 16:00:01 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/fcoe
|
|
|
|
%{_sysconfdir}/bash_completion.d/
|
|
|
|
%{_libexecdir}/fcoe/
|
2009-04-10 07:31:57 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-08-29 14:07:14 +00:00
|
|
|
* Thu Aug 29 2013 Petr Šabata <contyk@redhat.com> - 1.0.29-1
|
|
|
|
- 1.0.29 bump
|
|
|
|
|
2013-07-31 15:07:45 +00:00
|
|
|
* Wed Jul 31 2013 Petr Šabata <contyk@redhat.com> - 1.0.28-4
|
|
|
|
- Drop the initscript-specific config patch
|
|
|
|
|
2013-07-31 14:35:42 +00:00
|
|
|
* Wed Jul 31 2013 Petr Šabata <contyk@redhat.com> - 1.0.28-3
|
|
|
|
- Require just 'systemd' instead of 'systemd-units'
|
|
|
|
- Patch the fcoemon manpage with a note for systemd users
|
|
|
|
|
2013-06-10 14:35:41 +00:00
|
|
|
* Mon Jun 10 2013 Petr Šabata <contyk@redhat.com> - 1.0.28-2
|
|
|
|
- Enhance the format strings patch to fix ppc64 build failures too
|
|
|
|
|
2013-06-04 17:18:44 +00:00
|
|
|
* Tue Jun 04 2013 Petr Šabata <contyk@redhat.com> - 1.0.28-1
|
|
|
|
- 1.0.28 bump
|
|
|
|
|
2013-03-06 12:50:00 +00:00
|
|
|
* Wed Mar 06 2013 Petr Šabata <contyk@redhat.com> - 1.0.27-1
|
|
|
|
- 1.0.27 bump
|
|
|
|
|
2013-02-13 21:27:27 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-09 09:15:46 +00:00
|
|
|
* Wed Jan 09 2013 Petr Šabata <contyk@redhat.com> - 1.0.25-2
|
|
|
|
- Don't build for s390x since it's not supported by kernel either
|
|
|
|
|
2012-11-27 16:00:01 +00:00
|
|
|
* Tue Nov 27 2012 Petr Šabata <contyk@redhat.com> - 1.0.25-1
|
|
|
|
- 1.0.25 (with latest fixes)
|
|
|
|
- Simplify the spec a bit
|
|
|
|
- Fix bogus dates in changelog
|
|
|
|
|
|
|
|
* Thu Nov 01 2012 Petr Šabata <contyk@redhat.com> - 1.0.25-1
|
|
|
|
|
2012-08-28 11:44:02 +00:00
|
|
|
* Tue Aug 28 2012 Petr Šabata <contyk@redhat.com> - 1.0.24-2
|
|
|
|
- Migrate to systemd scriptlets (#850104)
|
|
|
|
|
2012-08-15 13:12:29 +00:00
|
|
|
* Wed Aug 15 2012 Petr Šabata <contyk@redhat.com> - 1.0.24-1
|
|
|
|
- 1.0.24 bump
|
|
|
|
|
2012-07-23 14:39:16 +00:00
|
|
|
* Mon Jul 23 2012 Petr Šabata <contyk@redhat.com> - 1.0.23-3
|
|
|
|
- Don't exclude s390x.
|
|
|
|
- Add AM_PROG_AR to configure.ac.
|
|
|
|
|
2012-07-19 01:42:26 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.23-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-25 14:37:42 +00:00
|
|
|
* Mon Jun 25 2012 Petr Šabata <contyk@redhat.com> - 1.0.23-1
|
|
|
|
- Update to 1.0.23
|
|
|
|
- Re-introduce ExcludeArch to be in line with EL.
|
|
|
|
|
2012-02-16 13:17:38 +00:00
|
|
|
* Thu Feb 16 2012 Petr Šabata <contyk@redhat.com> - 1.0.22-2
|
|
|
|
- Fix the incorrect libhbalinux runtime dependency
|
|
|
|
|
2012-01-23 14:03:55 +00:00
|
|
|
* Mon Jan 23 2012 Petr Šabata <contyk@redhat.com> - 1.0.22-1
|
|
|
|
- 1.0.22 bump
|
|
|
|
- Remove dcbd from Description
|
|
|
|
|
2012-01-13 02:14:51 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.21-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-24 14:13:00 +00:00
|
|
|
* Thu Nov 24 2011 Petr Šabata <contyk@redhat.com> - 1.0.21-1
|
|
|
|
- 1.0.21 bump
|
|
|
|
|
2011-10-31 14:01:18 +00:00
|
|
|
* Mon Oct 31 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-5
|
|
|
|
- Remove useless PIDFile from fcoe.service unit file
|
|
|
|
|
2011-10-06 14:06:05 +00:00
|
|
|
* Thu Oct 06 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-4
|
|
|
|
- Do not enable fcoemon by default (#701999)
|
|
|
|
- Silence systemctl output
|
|
|
|
|
2011-09-23 11:40:14 +00:00
|
|
|
* Fri Sep 23 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-3
|
|
|
|
- Enable hardened build
|
|
|
|
|
2011-07-18 13:38:27 +00:00
|
|
|
* Mon Jul 18 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-2
|
|
|
|
- Drop SysV support in favor of systemd (#714683)
|
|
|
|
- Remove ancient scriptlets (pre-1.0.7 era)
|
|
|
|
- Update quickstart.txt to reflect new changes
|
|
|
|
|
2011-07-07 14:48:53 +00:00
|
|
|
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 1.0.20-1
|
|
|
|
- 1.0.20 bump
|
|
|
|
|
2011-06-02 14:09:20 +00:00
|
|
|
* Thu Jun 02 2011 Petr Sabata <contyk@redhat.com> - 1.0.19-1
|
|
|
|
- 1.0.19 bump
|
|
|
|
|
2012-11-27 16:00:01 +00:00
|
|
|
* Tue May 3 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-2
|
2011-05-03 09:18:15 +00:00
|
|
|
- fcoemon: Do not create a world and group writable PID file
|
|
|
|
|
2011-04-20 09:03:37 +00:00
|
|
|
* Wed Apr 20 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-1
|
|
|
|
- 1.0.18 bump with latest bugfixes
|
|
|
|
- Removing ExcludeArch completely; not related for Fedora
|
|
|
|
- Buildroot cleanup
|
|
|
|
|
2011-04-19 15:29:07 +00:00
|
|
|
* Tue Apr 19 2011 Karsten Hopp <karsten@redhat.com> 1.0.17-1.1
|
|
|
|
- remove excludearch ppc, required by anaconda.ppc
|
|
|
|
|
2011-02-24 15:04:10 +00:00
|
|
|
* Thu Feb 24 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.17-1
|
|
|
|
- Pull in new upstream release (required to build)
|
|
|
|
- Fix git clone URL in comments
|
|
|
|
- Drop fcoe-utils-1.0.7-init.patch, fcoe-utils-1.0.7-init-condrestart.patch
|
|
|
|
and fcoe-utils-1.0.8-init-LSB.patch that are now upstream
|
|
|
|
- Drop fcoe-utils-1.0.8-includes.patch and use a copy of kernel headers
|
|
|
|
for all architectures (rename fcoe-sparc.patch to fcoe-include-headers.patch)
|
|
|
|
Upstream added detection to avoid inclusion of kernel headers in the build
|
|
|
|
and it expects to find the userland headers installed. Those have not
|
|
|
|
yet propagated in Fedora.
|
|
|
|
Use temporary this workaround, since fcoe is a requiment for anaconda
|
|
|
|
and it failed to build for a while
|
|
|
|
- Drop BuildRequires on kernel-devel
|
|
|
|
- Add BuildRequires on autoconf (it is used and not installed by default
|
|
|
|
on all build chroots)
|
|
|
|
|
2011-02-23 16:40:09 +00:00
|
|
|
* Wed Feb 23 2011 Dennis Gilmore <dennis@ausil.us> - 1.0.14-5
|
|
|
|
- patch in headers used from kernel-devel on 32 bit sparc
|
|
|
|
|
2011-02-08 19:26:12 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-30 16:27:03 +00:00
|
|
|
* Tue Nov 30 2010 Petr Sabata <psabata@redhat.com> - 1.0.14-3
|
|
|
|
- Removing dependency on vconfig, rhbz#658525
|
|
|
|
|
2010-06-28 14:08:12 +00:00
|
|
|
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-2
|
|
|
|
- added device-mapper-multipath to requires (#603242)
|
|
|
|
- added missing man pages for fcrls, fcnsq and fcping
|
|
|
|
- update of init script - added condrestart, try-restart
|
|
|
|
and force-reload options
|
|
|
|
- added vconfig to requires (#589608)
|
|
|
|
|
2010-05-24 09:18:02 +00:00
|
|
|
* Mon May 24 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-1
|
|
|
|
- rebased to 1.0.14, see bug #593824 for complete changelog
|
|
|
|
|
2010-04-12 12:26:23 +00:00
|
|
|
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.13-1
|
|
|
|
- rebased to v1.0.13, some bugfixes, new fcoe related scripts
|
|
|
|
|
2010-03-30 13:00:13 +00:00
|
|
|
* Tue Mar 30 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-2.20100323git
|
|
|
|
- some upstream updates
|
|
|
|
- better fipvlan support
|
|
|
|
- added fcoe_edd.sh script
|
|
|
|
|
2010-03-16 08:52:46 +00:00
|
|
|
* Tue Mar 16 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-1
|
|
|
|
- rebased to version 1.0.12, improved functionality with lldpad
|
|
|
|
and dcbd
|
2010-03-17 12:59:55 +00:00
|
|
|
- removed /etc/fcoe/scripts/fcoeplumb
|
2010-03-16 08:52:46 +00:00
|
|
|
|
2009-12-10 10:18:30 +00:00
|
|
|
* Thu Dec 10 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-2.20091204git
|
|
|
|
- excluded s390 and ppc
|
|
|
|
|
2009-12-04 08:53:05 +00:00
|
|
|
* Fri Dec 04 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-1.20091204git
|
|
|
|
- rebase to latest version of fcoe-utils
|
|
|
|
|
2009-09-14 10:28:16 +00:00
|
|
|
* Mon Sep 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-3
|
|
|
|
- update of init script to be LSB-compliant
|
|
|
|
|
2009-07-31 17:51:10 +00:00
|
|
|
* Fri Jul 31 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-2
|
|
|
|
- patch for clean compilation without usage of upstream's ugly hack
|
|
|
|
|
|
|
|
* Thu Jul 30 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-1
|
|
|
|
- rebase of fcoe-utils to 1.0.8, adjusted spec file
|
|
|
|
|
2009-07-24 22:34:01 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-09 08:49:52 +00:00
|
|
|
* Tue Jun 9 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-7
|
2011-07-18 13:38:27 +00:00
|
|
|
- added quickstart file to doc (#500759)
|
2009-06-09 08:49:52 +00:00
|
|
|
|
2009-05-14 14:17:13 +00:00
|
|
|
* Thu May 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-6
|
|
|
|
- renamed init script to fcoe, changed lock filename to fcoe
|
|
|
|
(#497604)
|
|
|
|
- init script modified to do condrestart properly
|
|
|
|
- some modifications in spec file to apply previous change
|
|
|
|
to older versions od init script during update
|
|
|
|
- fixed issue with accepting long options (#498551)
|
|
|
|
|
|
|
|
* Mon May 4 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-5
|
2009-05-04 11:52:53 +00:00
|
|
|
- fixed SIGSEGV when fcoe module isn't loaded (#498550)
|
|
|
|
|
2012-11-27 16:00:01 +00:00
|
|
|
* Mon Apr 27 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-4
|
2009-04-27 11:24:53 +00:00
|
|
|
- added libhbalinux to Requires (#497605)
|
|
|
|
- correction of spec file (_initddir -> _initrddir)
|
|
|
|
|
2009-04-10 07:31:57 +00:00
|
|
|
* Wed Apr 8 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-3
|
|
|
|
- more minor corrections in spec file
|
|
|
|
|
|
|
|
* Thu Apr 2 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-2
|
|
|
|
- minor corrections in spec file
|
|
|
|
- moved init script to correct location
|
|
|
|
- correction in the init script (chkconfig directives)
|
|
|
|
|
|
|
|
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
|
|
|
|
- initial rpm build of fcoe tools
|
|
|
|
|