1
0
forked from pool/cdemu-daemon

Accepting request 544733 from home:RBrownSUSE:branches:filesystems

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

OBS-URL: https://build.opensuse.org/request/show/544733
OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=48
This commit is contained in:
Jan Engelhardt 2017-11-23 20:36:23 +00:00 committed by Git OBS Bridge
parent a7eda140d8
commit 06ac47c077
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 23 13:44:48 UTC 2017 - rbrown@suse.com
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
-------------------------------------------------------------------
Mon Aug 7 19:29:16 UTC 2017 - jengelh@inai.de

View File

@ -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: cdemu-daemon
Version: 3.1.0
Release: 0
@ -67,10 +72,10 @@ make %{?_smp_mflags}
%install
b="%buildroot"
%cmake_install
mkdir -p "$b/%_sbindir" "$b/%_localstatedir/adm/fillup-templates" \
mkdir -p "$b/%_sbindir" "$b/%{_fillupdir}" \
"$b/%_prefix/lib/udev/rules.d"
install -pm0644 "%{S:2}" "$b/%_prefix/lib/udev/rules.d/60-vhba.rules"
install -pm0644 "%{S:3}" "$b/%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon"
install -pm0644 "%{S:3}" "$b/%{_fillupdir}/sysconfig.cdemu-daemon"
# Not desired for security; it would permit a user to start a system service.
rm -rf "$b/%_datadir/dbus-1/system-services" "$b/%_sysconfdir/dbus-1/system.d/"
%find_lang %name
@ -85,7 +90,7 @@ rm -rf "$b/%_datadir/dbus-1/system-services" "$b/%_sysconfdir/dbus-1/system.d/"
%_libexecdir/cdemu-daemon-session.sh
%_datadir/dbus-1/
%_mandir/man8/cdemu-daemon.8*
%_localstatedir/adm/fillup-templates/sysconfig.cdemu-daemon
%{_fillupdir}/sysconfig.cdemu-daemon
%_prefix/lib/udev/
%changelog