[sound-theme-beethoven-fifth] A rather hackish and optional solution to make gdm play the system-ready sound

Elad Alfassa elad at fedoraproject.org
Fri May 13 13:44:28 UTC 2011


commit fbee9fc7e196bad833ed3a2be7a5fc7fa429aa32
Author: Elad Alfassa <elad at fedoraproject.org>
Date:   Fri May 13 16:43:18 2011 +0300

    A rather hackish and optional solution to make gdm play the system-ready sound

 sound-theme-beethoven-fifth.spec |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/sound-theme-beethoven-fifth.spec b/sound-theme-beethoven-fifth.spec
index 4b00c87..08e9529 100644
--- a/sound-theme-beethoven-fifth.spec
+++ b/sound-theme-beethoven-fifth.spec
@@ -1,6 +1,6 @@
 Name: sound-theme-beethoven-fifth
 Version: 1.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: Sound theme based on Beethoven's fifth symphony
 Group: User Interface/Desktops
 Source0: http://elad.fedorapeople.org/sounds/sound-theme-beethoven-fifth-%{version}.tar.bz2
@@ -18,12 +18,21 @@ based on Beethoven's fifth symphony, processed from a public domain recording.
 %build
 %{nil}
 
+%package system-ready
+Summary: Subpackge containing the system-ready sound file
+Requires: sound-theme-freedesktop
+
+%description system-ready
+This subpackage contains the system-ready sound, installing it inside the freedesktop theme directory, so gdm would play it. This subpackage will be removed when we'll find an easy way to configure which sound theme gdm use.
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -dD $RPM_BUILD_ROOT%{_datadir}/sounds/beethoven-fifth/stereo/
 install -pm 644 index.theme $RPM_BUILD_ROOT%{_datadir}/sounds/beethoven-fifth/
 cd stereo
 install -pm 644 *.oga $RPM_BUILD_ROOT%{_datadir}/sounds/beethoven-fifth/stereo/
+install -dD $RPM_BUILD_ROOT%{_datadir}/sounds/freedesktop/stereo/
+install -pm 644 system-ready.oga $RPM_BUILD_ROOT%{_datadir}/sounds/freedesktop/stereo/
 
 
 %post
@@ -32,6 +41,12 @@ install -pm 644 *.oga $RPM_BUILD_ROOT%{_datadir}/sounds/beethoven-fifth/stereo/
 %postun
 /bin/touch --no-create %{_datadir}/sounds/beethoven-fifth %{_datadir}/sounds
 
+%post system-ready
+/bin/touch --no-create %{_datadir}/sounds/freedesktop %{_datadir}/sounds
+
+%postun system-ready
+/bin/touch --no-create %{_datadir}/sounds/freedesktop %{_datadir}/sounds
+
 %files
 %defattr(-,root,root)
 %doc README
@@ -40,7 +55,15 @@ install -pm 644 *.oga $RPM_BUILD_ROOT%{_datadir}/sounds/beethoven-fifth/stereo/
 %{_datadir}/sounds/beethoven-fifth/index.theme
 %{_datadir}/sounds/beethoven-fifth/stereo/*.oga
 
+%files system-ready
+%defattr(-,root,root)
+%{_datadir}/sounds/freedesktop/stereo/system-ready.oga
+
+
 %changelog
+* Fri May 13 2011 Elad Alfassa <elad at fedoraproject.org> - 1.0-3
+- A rather hackish and optional solution to make gdm play the system-ready sound
+
 * Sun May 08 2011 Elad Alfassa <elad at fedoraproject.org> - 1.0-2
 - Remove explicit dependency on /bin/touch
 


More information about the scm-commits mailing list