Accepting request 233446 from home:coolo:branches:openSUSE:Factory
- use %_rundir if available OBS-URL: https://build.opensuse.org/request/show/233446 OBS-URL: https://build.opensuse.org/package/show/Base:System/pcp?expand=0&rev=32
This commit is contained in:
parent
d371a5ce77
commit
50ed0e3eef
@ -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
|
||||
|
||||
|
10
pcp.spec
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user