Accepting request 544721 from home:RBrownSUSE:branches:hardware

Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468)

OBS-URL: https://build.opensuse.org/request/show/544721
OBS-URL: https://build.opensuse.org/package/show/hardware/rtasdispd?expand=0&rev=4
This commit is contained in:
Ismail Dönmez 2017-12-01 13:55:05 +00:00 committed by Git OBS Bridge
parent e78e220afc
commit 3347d83793
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 23 13:43:40 UTC 2017 - rbrown@suse.com
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
-------------------------------------------------------------------
Tue Dec 10 19:29:45 UTC 2013 - dvaleev@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package rtasdispd
#
# Copyright (c) 2013 SUSE LINUX Products 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
@ -16,6 +16,11 @@
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: rtasdispd
Version: 0.1
Release: 0
@ -52,10 +57,10 @@ make CFLAGS="$RPM_OPT_FLAGS -Wall"
mv rtasdispd.1 rtasdispd.8
make DESTDIR=$RPM_BUILD_ROOT install MANS=rtasdispd.8
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT%{_fillupdir}
install -m 755 %{S:2} $RPM_BUILD_ROOT/etc/init.d/rtasdispd
ln -s ../../etc/init.d/rtasdispd $RPM_BUILD_ROOT/usr/sbin/rcrtasdispd
install -m 644 %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.rtasdispd
install -m 644 %{S:1} $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.rtasdispd
%post
%{fillup_and_insserv -y rtasdispd}
@ -69,6 +74,6 @@ install -m 644 %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.rtasdis
%config /etc/init.d/rtasdispd
/usr/sbin/*
%{_mandir}/man8/*
/var/adm/fillup-templates/sysconfig.rtasdispd
%{_fillupdir}/sysconfig.rtasdispd
%changelog