diff --git a/rpcbind.changes b/rpcbind.changes index 78fea91..6630ea6 100644 --- a/rpcbind.changes +++ b/rpcbind.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 23 13:38:46 UTC 2017 - rbrown@suse.com + +- Replace references to /var/adm/fillup-templates with new + %_fillupdir macro (boo#1069468) + ------------------------------------------------------------------- Wed Aug 16 10:34:13 CEST 2017 - kukuk@suse.de diff --git a/rpcbind.spec b/rpcbind.spec index ec2df21..22d677b 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -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: rpcbind Version: 0.2.3 Release: 0 @@ -106,8 +111,8 @@ export LDFLAGS="-pie -Wl,-z,relro,-z,now" %install make install DESTDIR=$RPM_BUILD_ROOT # fillup template -mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates -install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/ +mkdir -p $RPM_BUILD_ROOT%{_fillupdir} +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_fillupdir}/ mkdir -p $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%_datadir/omc/svcinfo.d/ # @@ -144,7 +149,7 @@ exit 0 /sbin/rpcinfo %{_sbindir}/rcrpcbind %{_mandir}/*/* -/var/adm/fillup-templates/sysconfig.rpcbind +%{_fillupdir}/sysconfig.rpcbind %{_datadir}/omc/svcinfo.d/rpcbind.xml %{_unitdir}/%{name}.service %{_unitdir}/%{name}.socket