Accepting request 515239 from home:jengelh:branches:Base:System

- Fix RPM groups. Replace %__-type macro indirections and
  old $RPM shell variables.

OBS-URL: https://build.opensuse.org/request/show/515239
OBS-URL: https://build.opensuse.org/package/show/Base:System/open-isns?expand=0&rev=11
This commit is contained in:
Lee Duncan 2017-08-09 22:19:01 +00:00 committed by Git OBS Bridge
parent 4f3f609915
commit 6a376b97a4
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 8 19:18:27 UTC 2017 - jengelh@inai.de
- Fix RPM groups. Replace %__-type macro indirections and
old $RPM shell variables.
-------------------------------------------------------------------
Wed Nov 2 23:53:06 UTC 2016 - lduncan@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package open-isns
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
Name: open-isns
Summary: Partial Implementation of iSNS iSCSI registration
License: LGPL-2.1+
Group: System Environment/Kernel
Group: System/Kernel
Version: 0.97
Release: 0
Source: %{name}-%{version}.tar.gz
@ -61,17 +61,16 @@ Files to develop an application using the open-isns library.
autoconf
autoheader
%configure --prefix=%{_prefix}
%{__make} OPTFLAGS="${RPM_OPT_FLAGS}"
make OPTFLAGS="%{optflags}"
%install
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
if [ ! -d ${RPM_BUILD_ROOT}/usr/sbin ] ; then
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
make DESTDIR="%{buildroot}" install
if [ ! -d "%{buildroot}/usr/sbin" ] ; then
mkdir -p %{buildroot}/usr/sbin
fi
ln -sf /usr/sbin/service ${RPM_BUILD_ROOT}/usr/sbin/rcisnsd
ln -sf /usr/sbin/service %{buildroot}/usr/sbin/rcisnsd
install -vD %{S:1} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/isns
%{__make} DESTDIR=${RPM_BUILD_ROOT} install_hdrs
%{__make} DESTDIR=${RPM_BUILD_ROOT} install_lib
make DESTDIR="%{buildroot}" install_hdrs install_lib
%post
%{service_add_post isnsd.socket isnsd.service}