Accepting request 233455 from Base:System

- use %_rundir if available (forwarded request 233446 from coolo)

OBS-URL: https://build.opensuse.org/request/show/233455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcp?expand=0&rev=33
This commit is contained in:
Stephan Kulow 2014-05-22 18:37:54 +00:00 committed by Git OBS Bridge
commit 4e73a9cbcc
2 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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