diff --git a/pcp.changes b/pcp.changes index 9cdcbe0..4019b1d 100644 --- a/pcp.changes +++ b/pcp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 11 05:56:19 UTC 2014 - coolo@suse.com + +- use %_rundir if available + ------------------------------------------------------------------- Tue Apr 9 14:27:02 UTC 2013 - schwab@suse.de diff --git a/pcp.spec b/pcp.spec index c619c80..175a38e 100644 --- a/pcp.spec +++ b/pcp.spec @@ -1,7 +1,7 @@ # # spec file for package pcp # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -49,6 +49,10 @@ Release: 0 %define license_lgplv2plus LGPLv2+ %endif +%if ! %{defined _rundir} +%define _rundir %{_localstatedir}/run +%endif + Url: http://oss.sgi.com/projects/pcp Source0: ftp://oss.sgi.com/projects/pcp/download/pcp-%{version}.src.tar.gz Source1: pcp-rpmlintrc @@ -308,7 +312,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a # license entries. Remove these along with everything under testsuite. rm -rf $RPM_BUILD_ROOT/%{_localstatedir}/lib/pcp/testsuite -mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/pcp +mkdir -p $RPM_BUILD_ROOT/%{_rundir}/pcp mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/pcp/tmp %if (0%{?suse_version} > 0) @@ -421,7 +425,7 @@ chown -R pcp:pcp /var/log/pcp/{pmcd,pmlogger,pmie,pmproxy} 2>/dev/null %{_sbindir}/rc* %endif -%ghost %dir %{_localstatedir}/run/pcp +%ghost %dir %{_rundir}/pcp %verify(not mode) %attr(755,root,root) %dir %{_localstatedir}/lib/pcp/tmp %verify(not mode) %attr(755,root,root) %dir %{_localstatedir}/lib/pcp/tmp/pmdabash %verify(not mode) %attr(755,root,root) %dir %{_localstatedir}/lib/pcp/tmp/mmv