2013-10-10 15:25:24 +02:00
|
|
|
#
|
|
|
|
# spec file for package fcoe-utils
|
|
|
|
#
|
2022-01-27 20:33:34 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-10-10 15:25:24 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-14 15:44:57 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-10 15:25:24 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fcoe-utils
|
2020-06-09 19:49:14 +02:00
|
|
|
URL: https://github.com/openSUSE/fcoe-utils
|
2013-10-10 15:25:24 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2016-02-18 12:48:44 +01:00
|
|
|
BuildRequires: libpciaccess-devel
|
2013-10-10 15:25:24 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: open-lldp-devel
|
2016-02-18 12:48:44 +01:00
|
|
|
BuildRequires: pkg-config
|
2019-06-27 09:41:05 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2020-06-09 19:49:14 +02:00
|
|
|
PreReq: %fillup_prereq
|
2013-10-10 17:16:52 +02:00
|
|
|
Requires: device-mapper
|
2013-10-10 15:25:24 +02:00
|
|
|
Requires: iproute
|
2014-03-19 10:20:41 +01:00
|
|
|
Requires: open-lldp
|
2020-06-09 19:49:14 +02:00
|
|
|
Requires: pkgconfig(systemd)
|
2019-06-27 09:41:05 +02:00
|
|
|
%systemd_ordering
|
2021-03-25 18:34:29 +01:00
|
|
|
Version: 1.0.34
|
2013-10-10 15:25:24 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: FCoE userspace management tools
|
2019-01-14 15:44:57 +01:00
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: System/Daemons
|
2020-06-09 19:49:14 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2022-01-27 20:33:34 +01:00
|
|
|
Patch0: harden_fcoe.service.patch
|
|
|
|
Patch1: %{name}-Fix-GCC-12-warning.patch
|
2013-10-10 15:25:24 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2020-06-09 19:49:14 +02:00
|
|
|
%{?systemd_requires}
|
2013-10-10 15:25:24 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Userspace tools to manage FibreChannel over Ethernet (FCoE)
|
|
|
|
connections.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2021-09-17 23:16:51 +02:00
|
|
|
%patch0 -p1
|
2022-01-27 20:33:34 +01:00
|
|
|
%patch1 -p1
|
2013-10-10 15:25:24 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -vi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
# old init script
|
|
|
|
rm -rf %{buildroot}/etc/init.d
|
|
|
|
|
|
|
|
# unitfile
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcfcoe
|
|
|
|
|
|
|
|
# contrib files
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/fcoe
|
|
|
|
for file in \
|
|
|
|
contrib/*.sh \
|
|
|
|
debug/*sh
|
|
|
|
do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
|
|
|
|
done
|
|
|
|
|
|
|
|
%pre
|
2020-06-09 19:49:14 +02:00
|
|
|
%service_add_pre fcoe.service fcoemon.socket
|
2013-10-10 15:25:24 +02:00
|
|
|
|
|
|
|
%post
|
2020-06-09 19:49:14 +02:00
|
|
|
%service_add_post fcoe.service fcoemon.socket
|
2013-10-10 15:25:24 +02:00
|
|
|
%fillup_only -n fcoe
|
|
|
|
|
|
|
|
%preun
|
2020-06-09 19:49:14 +02:00
|
|
|
%service_del_preun fcoe.service fcoemon.socket
|
2013-10-10 15:25:24 +02:00
|
|
|
|
|
|
|
%postun
|
2020-06-09 19:49:14 +02:00
|
|
|
%service_del_postun fcoe.service fcoemon.socket
|
2013-10-10 15:25:24 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2019-01-14 15:44:57 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc README QUICKSTART
|
2013-10-10 15:25:24 +02:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_unitdir}/fcoe.service
|
2013-12-06 12:55:35 +01:00
|
|
|
%{_unitdir}/fcoemon.socket
|
2013-10-10 15:25:24 +02:00
|
|
|
%{_sysconfdir}/fcoe/
|
|
|
|
%config(noreplace) %{_sysconfdir}/fcoe/config
|
|
|
|
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
|
2020-06-09 19:49:14 +02:00
|
|
|
%{_datadir}/bash-completion/completions/
|
2013-10-10 15:25:24 +02:00
|
|
|
%{_libexecdir}/fcoe/
|
|
|
|
|
|
|
|
%changelog
|