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.
This commit is contained in:
parent
f4c6babdb6
commit
2de769e94a
15
libgpod.spec
15
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 <tmz@pobox.com> - 0.8.0-8
|
||||
- Support tmpfiles.d for Fedora >= 15 (#707066)
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue