File open-fcoe.spec of Package open-fcoe
#
# spec file for package open-fcoe
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: open-fcoe
Url: http://www.open-fcoe.org
PreReq: %fillup_prereq %insserv_prereq
BuildRequires: automake
BuildRequires: libHBAAPI2-devel
BuildRequires: lldpad-devel
Requires: libhbalinux2
Requires: lldpad
Version: 1.0.12
Release: 0
Summary: FCoE userspace management tools
License: GPL-2.0
Group: System/Daemons
Source0: http://www.open-fcoe.org/openfc/fcoe-utils-1.0.8.tar.bz2
Source20: mkinitrd-boot.sh
Source22: mkinitrd-setup.sh
Patch0: fcoe-utils-makefile-fixup
Patch1: fcoe-utils-init-script-fixup
Patch2: fcoe-utils-git-update
Patch3: fcoe-utils-beta1-update
Patch4: fcoe-utils-clifv2
Patch5: fcoe-utils-beta2-update
Patch6: fcoe-utils-beta3-update
Patch7: fcoe-utils-use-strncpy-in-fcoemon
Patch8: fcoe-utils-beta5-update
Patch9: fcoe-utils-add-fcoe-setup
Patch10: fcoe-utils-rc1-update
Patch11: fcoe-utils-rc2-update
Patch12: fcoe-utils-use-lldpad
Patch13: fcoe-utils-fixup-install-data-hook
Patch14: fcoe-utils-rc2-more-updates
Patch15: fcoe-utils-fcoe-setup-update-for-fipvlan
Patch16: fcoe-utils-rc3-update
Patch17: fcoe-utils-fixes-no-lun-displa
Patch18: fcoe-utils-use-san-mac-and-fix
Patch19: fcoe-utils-makefile-library-fix
Patch20: automake-1.12.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Userspace tools to manage FibreChannel over Ethernet (FCoE)
connections.
Authors:
--------
Robert Love <robert.w.love@intel.com>
%prep
%setup -q -n fcoe-utils-1.0.8
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%build
autoreconf --install
%configure CFLAGS="-DUSE_LLDPAD ${RPM_OPT_FLAGS}"
make %{?_smp_mflags}
%install
%makeinstall
install -d ${RPM_BUILD_ROOT}/sbin
install -m 755 contrib/fcoe-setup.sh ${RPM_BUILD_ROOT}/sbin/fcoe-setup
install -d ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/
install -m 755 %{S:20} ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/boot-fcoe.sh
install -m 755 %{S:22} ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/setup-fcoe.sh
%post
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
%{fillup_and_insserv fcoe}
%preun
%{stop_on_removal fcoe}
%postun
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
%{insserv_cleanup fcoe}
%files
%defattr(-,root,root,-)
%doc README
%doc COPYING
/sbin/fcoe-setup
%{_sbindir}/*
%{_mandir}/man8/*
%dir %{_sysconfdir}/fcoe
%config(noreplace) %{_sysconfdir}/fcoe/config
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
%config(noreplace) %{_sysconfdir}/init.d/fcoe
/lib/mkinitrd
%changelog