- require touch for scriptlets to not give errors

This commit is contained in:
Jeremy Katz 2008-08-11 16:35:51 +00:00
parent fa6d1e4c97
commit 264f09d796

View File

@ -1,6 +1,6 @@
Name: sound-theme-freedesktop Name: sound-theme-freedesktop
Version: 0.1 Version: 0.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: freedesktop.org sound theme Summary: freedesktop.org sound theme
Group: User Interface/Desktops Group: User Interface/Desktops
Source0: http://0pointer.de/public/sound-theme-freedesktop.tar.gz Source0: http://0pointer.de/public/sound-theme-freedesktop.tar.gz
@ -9,6 +9,8 @@ License: GPLv2+ and LGPLv2+ and CC-BY-SA and CC-BY
Url: http://0pointer.de/public/sound-theme-freedesktop.tar.gz Url: http://0pointer.de/public/sound-theme-freedesktop.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
Requires(post): /bin/touch
Requires(postun): /bin/touch
%description %description
The default freedesktop.org sound theme following the XDG theming The default freedesktop.org sound theme following the XDG theming
@ -28,10 +30,10 @@ cp -av index.theme stereo/ $RPM_BUILD_ROOT%{_datadir}/sounds/freedesktop
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post %post
touch --no-create %{_datadir}/sounds/freedesktop /bin/touch --no-create %{_datadir}/sounds/freedesktop
%postun %postun
touch --no-create %{_datadir}/sounds/freedesktop /bin/touch --no-create %{_datadir}/sounds/freedesktop
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -42,5 +44,8 @@ touch --no-create %{_datadir}/sounds/freedesktop
%{_datadir}/sounds/freedesktop/stereo/*.ogg %{_datadir}/sounds/freedesktop/stereo/*.ogg
%changelog %changelog
* Mon Aug 11 2008 Jeremy Katz <katzj@redhat.com> - 0.1-2
- require touch for scriptlets to not give errors
* Sun Jun 15 2008 Lennart Poettering <lpoetter@redhat.com> 0.1-1 * Sun Jun 15 2008 Lennart Poettering <lpoetter@redhat.com> 0.1-1
- Initial package - Initial package