From fb1d47b3022752b277d14c0c2265a8bbca1672cce1f5b52818b5d40384db1af9 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 23 Nov 2017 15:11:41 +0000 Subject: [PATCH] Accepting request 544754 from home:RBrownSUSE:branches:network:time Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) OBS-URL: https://build.opensuse.org/request/show/544754 OBS-URL: https://build.opensuse.org/package/show/network:time/ptpd?expand=0&rev=13 --- ptpd.changes | 6 ++++++ ptpd.spec | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ptpd.changes b/ptpd.changes index 1a43106..b231df2 100644 --- a/ptpd.changes +++ b/ptpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 23 13:47:12 UTC 2017 - rbrown@suse.com + +- Replace references to /var/adm/fillup-templates with new + %_fillupdir macro (boo#1069468) + ------------------------------------------------------------------- Wed Jul 13 10:40:49 UTC 2016 - mpluskal@suse.com diff --git a/ptpd.spec b/ptpd.spec index e6dc14a..0c62d6e 100644 --- a/ptpd.spec +++ b/ptpd.spec @@ -1,7 +1,7 @@ # # spec file for package ptpd # -# 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 @@ -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: ptpd Version: 2.3.1 Release: 0 @@ -73,7 +78,7 @@ autoreconf -fiv install -D -p -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}2.service ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}2 install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}2.conf -install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.ptpd2 +install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.ptpd2 # have to create the below, else ptpd will not log drift install -d %{buildroot}%{_localstatedir}/log touch %{buildroot}%{_localstatedir}/log/ptpd2_kernelclock.drift @@ -101,7 +106,7 @@ touch %{buildroot}%{_localstatedir}/log/ptpd2_kernelclock.drift %{_mandir}/man8/ptpd2.8%{ext_man} %{_datadir}/ptpd %{_libexecdir}/systemd/system/ptpd2.service -%{_localstatedir}/adm/fillup-templates/* +%{_fillupdir}/* %config %ghost %{_localstatedir}/log/ptpd2_kernelclock.drift %changelog