From 2de769e94a1721db3a3b2d79a0d65fe7ab8e8f9a Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: May 23 2011 22:31:03 +0000 Subject: Support tmpfiles.d for Fedora >= 15 (#707066) The ipod-set-info udev callout writes to /var/run/libgpod, so it's important that the directory is present. --- diff --git a/libgpod.spec b/libgpod.spec index c276d83..a44362a 100644 --- a/libgpod.spec +++ b/libgpod.spec @@ -9,7 +9,7 @@ Summary: Library to access the contents of an iPod Name: libgpod Version: 0.8.0 -Release: 7%{?dist} +Release: 8%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gtkpod.org/libgpod.html @@ -146,6 +146,13 @@ chmod -x %{buildroot}/%{_libdir}/%{name}/*.dll.config rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc %endif +%if 0%{?fedora} >= 15 +# Setup tmpfiles.d config +mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d +echo "D /var/run/%{name} 0755 %{name} %{name} -" > \ + %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf +%endif + %clean rm -rf %{buildroot} @@ -158,6 +165,9 @@ rm -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog COPYING NEWS README* +%if 0%{?fedora} >= 15 +%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf +%endif %{_bindir}/* %{_libdir}/*.so.* %dir %{_localstatedir}/run/%{name} @@ -199,6 +209,9 @@ rm -rf %{buildroot} %endif %changelog +* Mon May 23 2011 Todd Zullinger - 0.8.0-8 +- Support tmpfiles.d for Fedora >= 15 (#707066) + * Tue Feb 08 2011 Fedora Release Engineering - 0.8.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild