From fc1ba6732dc7984e3a291e1c2e0b93ba4905720764a40e6aab06981109290833 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Tue, 10 Mar 2015 13:18:30 +0000 Subject: [PATCH] Accepting request 289757 from home:posophe:branches:network fix OBS-URL: https://build.opensuse.org/request/show/289757 OBS-URL: https://build.opensuse.org/package/show/network/open-iscsi?expand=0&rev=53 --- open-iscsi.changes | 7 +++++++ open-iscsi.spec | 34 ++++++++++------------------------ 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/open-iscsi.changes b/open-iscsi.changes index 7202930..5054767 100644 --- a/open-iscsi.changes +++ b/open-iscsi.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 6 23:41:12 UTC 2015 - p.drouand@gmail.com + +- Do not depend on fillup and insserv if the package build with + systemd support; it's redundant +- Remove obsolete %clean and AUTHORS sections + ------------------------------------------------------------------- Fri Dec 5 22:54:32 UTC 2014 - lduncan@suse.com diff --git a/open-iscsi.spec b/open-iscsi.spec index f47df06..1654129 100644 --- a/open-iscsi.spec +++ b/open-iscsi.spec @@ -1,7 +1,7 @@ # # spec file for package open-iscsi # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -27,12 +27,13 @@ BuildRequires: make BuildRequires: openssl-devel %if 0%{?suse_version} >= 1230 BuildRequires: systemd +%else +PreReq: %fillup_prereq %insserv_prereq %endif %if 0%{?suse_version} >= 1320 BuildRequires: suse-module-tools %endif Url: http://www.open-iscsi.org -PreReq: %fillup_prereq %insserv_prereq Version: 2.0.873 Release: 0 %{?systemd_requires} @@ -65,12 +66,6 @@ processing, iSNS, SLP, Radius, etc. The user space Open-iSCSI consists of a daemon process called iscsid, and a management utility iscsiadm. - - -Authors: --------- - open-iscsi@googlegroups.com - %package -n open-isns Summary: Linux iSNS server Group: Productivity/Networking/Other @@ -84,10 +79,6 @@ This is a partial implementation of iSNS, according to RFC4171. The implementation is still somewhat incomplete, but I am releasing it for your reading pleasure. -Authors: --------- - Olaf Kirch - %package -n iscsiuio Summary: Linux Broadcom NetXtremem II iscsi server Group: Productivity/Networking/Other @@ -108,11 +99,6 @@ This utility will provide the ARP and DHCP functionality for the iSCSI offload. The communication to the driver is done via Userspace I/O (Kernel module name 'uio'). -Authors: --------- - Eddie Wai - Benjamin Li - %prep %setup -n %{name}-2.0-%{iscsi_release} %patch1 -p1 @@ -157,9 +143,6 @@ make DESTDIR=${RPM_BUILD_ROOT} -C iscsiuio install # install firewall file for isns server install -vD %{S:1} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/isns -%clean -[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT} - %post %if 0%{?suse_version} < 1320 [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup @@ -196,9 +179,10 @@ fi %endif %preun -%{stop_on_removal iscsid} %if 0%{?suse_version} >= 1230 %{service_del_preun iscsid.socket iscsid.service iscsi.service} +%else +%{stop_on_removal iscsid} %endif %post -n open-isns @@ -217,9 +201,10 @@ fi %endif %preun -n open-isns -%{stop_on_removal isnsd isnsdd} %if 0%{?suse_version} >= 1230 %{service_del_preun isnsd.socket isnsd.service} +%else +%{stop_on_removal isnsd isnsdd} %endif %post -n iscsiuio @@ -238,9 +223,10 @@ fi %endif %preun -n iscsiuio -%{stop_on_removal iscsiuio} %if 0%{?suse_version} >= 1230 %{service_del_preun iscsiuio.socket iscsiuio.service} +%else +%{stop_on_removal iscsiuio} %endif %files @@ -255,7 +241,7 @@ fi %{_unitdir}/iscsid.service %{_unitdir}/iscsid.socket %{_unitdir}/iscsi.service -/usr/lib/systemd/system-generators/ibft-rule-generator +%{_libexecdir}/systemd/system-generators/ibft-rule-generator %else %config /etc/init.d/iscsid %config /etc/init.d/boot.iscsid-early