Fix packaging of tmpfiles

This commit is contained in:
Vitezslav Crhonek 2015-01-19 10:52:46 +01:00
parent 1ab3846fb3
commit b4175bf6df

View File

@ -8,7 +8,7 @@
Name: tog-pegasus
Version: %{major_ver}.0
Release: 19%{?dist}
Release: 20%{?dist}
Epoch: 2
Summary: OpenPegasus WBEM Services for Linux
@ -288,9 +288,8 @@ make -f $PEGASUS_ROOT/Makefile.Release stage \
PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR
%endif
%if %{?fedora}0 > 140 || %{?rhel}0 > 60
install -p -D -m 644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/tmpfiles.d/tog-pegasus.conf
%endif
mkdir -p $RPM_BUILD_ROOT/%{_tmpfilesdir}
install -p -D -m 644 %{SOURCE4} $RPM_BUILD_ROOT/%{_tmpfilesdir}/tog-pegasus.conf
# Install script to generate SSL certificates at startup
mkdir -p $RPM_BUILD_ROOT/usr/share/Pegasus/scripts
@ -343,9 +342,7 @@ make prestarttests
%dir /var/lib/Pegasus/log
%defattr(0640, root, pegasus, 0750)
%dir /etc/Pegasus
%if %{?fedora}0 > 140 || %{?rhel}0 > 60
%config(noreplace) %{_sysconfdir}/tmpfiles.d/tog-pegasus.conf
%endif
%{_tmpfilesdir}/tog-pegasus.conf
%ghost /var/run/tog-pegasus
%ghost %attr(0640, root, pegasus) /var/run/tog-pegasus/cimserver.pid
%ghost %attr(0640, root, pegasus) /var/run/tog-pegasus/cimserver_start.lock
@ -511,6 +508,9 @@ fi
%changelog
* Mon Jan 19 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.13.0-20
- Fix packaging of tmpfiles
* Mon Sep 22 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.13.0-19
- Fix missing space in generate-certs