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
|
Summary: Library to access the contents of an iPod
|
||||||
Name: libgpod
|
Name: libgpod
|
||||||
Version: 0.8.0
|
Version: 0.8.0
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.gtkpod.org/libgpod.html
|
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
|
rm -f %{buildroot}/%{_libdir}/pkgconfig/%{name}-sharp.pc
|
||||||
%endif
|
%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
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
@ -158,6 +165,9 @@ rm -rf %{buildroot}
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
%doc AUTHORS ChangeLog COPYING NEWS README*
|
%doc AUTHORS ChangeLog COPYING NEWS README*
|
||||||
|
%if 0%{?fedora} >= 15
|
||||||
|
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
|
||||||
|
%endif
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%dir %{_localstatedir}/run/%{name}
|
%dir %{_localstatedir}/run/%{name}
|
||||||
|
@ -199,6 +209,9 @@ rm -rf %{buildroot}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue