From 264f09d7966f45940264c64c122d7ca53d7a3c25 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 11 Aug 2008 16:35:51 +0000 Subject: [PATCH] - require touch for scriptlets to not give errors --- sound-theme-freedesktop.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sound-theme-freedesktop.spec b/sound-theme-freedesktop.spec index 7d70b5c..0b51fb5 100644 --- a/sound-theme-freedesktop.spec +++ b/sound-theme-freedesktop.spec @@ -1,6 +1,6 @@ Name: sound-theme-freedesktop Version: 0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: freedesktop.org sound theme Group: User Interface/Desktops 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +Requires(post): /bin/touch +Requires(postun): /bin/touch %description 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 %post -touch --no-create %{_datadir}/sounds/freedesktop +/bin/touch --no-create %{_datadir}/sounds/freedesktop %postun -touch --no-create %{_datadir}/sounds/freedesktop +/bin/touch --no-create %{_datadir}/sounds/freedesktop %files %defattr(-,root,root) @@ -42,5 +44,8 @@ touch --no-create %{_datadir}/sounds/freedesktop %{_datadir}/sounds/freedesktop/stereo/*.ogg %changelog +* Mon Aug 11 2008 Jeremy Katz - 0.1-2 +- require touch for scriptlets to not give errors + * Sun Jun 15 2008 Lennart Poettering 0.1-1 - Initial package