[gnome-shell-extension-pomodoro] Schemas

Fabian Affolter fab at fedoraproject.org
Fri Apr 13 20:36:10 UTC 2012


commit 07e6c380bcd52fb5b109a74949904d76e8f7cc6e
Author: Fabian Affolter <mail at fabian-affolter.ch>
Date:   Fri Apr 13 22:23:17 2012 +0200

    Schemas

 gnome-shell-extension-pomodoro.spec |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/gnome-shell-extension-pomodoro.spec b/gnome-shell-extension-pomodoro.spec
index 30004c3..0dc238a 100644
--- a/gnome-shell-extension-pomodoro.spec
+++ b/gnome-shell-extension-pomodoro.spec
@@ -15,8 +15,10 @@ Source0:        https://github.com/codito/gnome-shell-pomodoro/tarball/master/%{
 BuildArch:      noarch
 
 BuildRequires:  gnome-common
-Requires:       gnome-shell >= 3.2.0
+BuildRequires:  gettext
 
+Requires:       gnome-shell >= 3.2.0
+Requires:       hicolor-icon-theme
 
 %description
 This extension helps you to work with the pomodoro technique here. It
@@ -29,20 +31,34 @@ provides a countdown timer in the gnome-shell and keeps track of completed
 
 
 %build
-./autogen.sh --prefix=%{_prefix}
+./autogen.sh --prefix=%{_prefix} --disable-schemas
 make %{?_smp_mflags}
 
 
 %install
-rm -rf %{buildroot}
 make install DESTDIR=%{buildroot} INSTALL="install -p"
+%find_lang %{name}
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+if [ $1 -eq 0 ] ; then
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
 
-%files
-%defattr(-,root,root,-)
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%files -f %{name}.lang
 %doc README.md COPYING
 %{_datadir}/gnome-shell/extensions/%{uuid}/
-
+%{_datadir}/icons/hicolor/scalable/status/timer-symbolic.svg
 
 %changelog
 * Fri Apr 13 2012 Fabian Affolter <mail at fabian-affolter.ch> - 0-0.4.gitdf98ce0


More information about the scm-commits mailing list