[vdr] Add tmpfiles.d config on F-15+ (#656717).

Ville Skyttä scop at fedoraproject.org
Wed Feb 16 18:40:26 UTC 2011


commit e112bdab3ef1992018d4b709d39c90b3078ba7a2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Feb 16 20:38:48 2011 +0200

    Add tmpfiles.d config on F-15+ (#656717).

 vdr.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/vdr.spec b/vdr.spec
index e4a2a74..fc94140 100644
--- a/vdr.spec
+++ b/vdr.spec
@@ -24,7 +24,7 @@
 
 Name:           vdr
 Version:        1.6.0
-Release:        37%{?dist}
+Release:        38%{?dist}
 Summary:        Video Disk Recorder
 
 Group:          Applications/Multimedia
@@ -400,6 +400,14 @@ ln -s $(abs2rel %{_includedir}/vdr/config.h %{_libdir}/vdr) \
 %find_lang %{name}
 sed -i -e '1i%%defattr(-,root,root,-)' %{name}.lang
 
+%if 0%{?fedora} > 14 || 0%{?rhel} > 6
+install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
+echo "D %{rundir} 0755 %{vdr_user} root -" \
+  > $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/%{name}.conf
+echo "%%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf" \
+  >> %{name}.lang
+%endif
+
 # plugins
 %if %{with plugins}
 install -pm 755 PLUGINS/src/skincurses/libvdr-skincurses.so.%{apiver} \
@@ -531,11 +539,12 @@ fi
 %endif # plugins
 
 %changelog
-* Tue Feb 15 2011 Ville Skyttä <ville.skytta at iki.fi>
+* Wed Feb 16 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.6.0-38
 - Drop build time support for lirc < 0.8.6 default socket location.
 - Resurrect channel+epg patch.
 - Use %%{_initddir} instead of the deprecated %%{_initrddir}.
 - Set RTC wakeup for next timer also when shutting down from outside of VDR.
+- Add tmpfiles.d config on F-15+ (#656717).
 
 * Tue Feb  8 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.6.0-37
 - Backport V4L2 patch from VDR 1.7.x to fix build with recent kernel headers.


More information about the scm-commits mailing list