[x-tile] Update to 2.4

Mohamed ElMorabity melmorabity at fedoraproject.org
Wed Jul 18 00:49:48 UTC 2012


commit 6fcffb1393ad744f2a7ac718ee8fe506c80c9af1
Author: Mohamed El Morabity <melmorabity at fedoraproject.org>
Date:   Wed Jul 18 02:49:24 2012 +0200

    Update to 2.4

 .gitignore  |    1 +
 sources     |    2 +-
 x-tile.spec |   32 +++++++++++++++++++++++---------
 3 files changed, 25 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index cca2184..dc4c894 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@ x-tile-1.5.2.tar.gz
 /x-tile-2.2.tar.gz
 /x-tile-2.2.1.tar.gz
 /x-tile-2.3.1.tar.bz2
+/x-tile-2.4.tar.bz2
diff --git a/sources b/sources
index f5ffbb0..862f758 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-251aec74e6ebe9bef17598cfbff16871  x-tile-2.3.1.tar.bz2
+c979d5840f68e204c3706d3f0b3ba63d  x-tile-2.4.tar.bz2
diff --git a/x-tile.spec b/x-tile.spec
index 4271754..9632dcd 100644
--- a/x-tile.spec
+++ b/x-tile.spec
@@ -1,5 +1,5 @@
 Name:           x-tile
-Version:        2.3.1
+Version:        2.4
 Release:        1%{?dist}
 Summary:        A GTK application to tile windows in different ways
 
@@ -26,11 +26,9 @@ programming.
 %setup -q
 
 # Remove import of cons module in setup.py, only needed to get the current
-# version of x-tile and supported languages. The cons module calls the gtk one,
-# which needs a running graphical session
+# version of x-tile. The cons module calls the gtk one, which needs a running
+# graphical session
 sed -i "\|import cons|d; s|cons.VERSION|\"%{version}\"|" setup.py
-LANGUAGES=$(sed -n "s/^AVAILABLE_LANGS = //p" modules/cons.py)
-# sed -i "s|cons.AVAILABLE_LANGS|$LANGUAGES|" setup.py
 
 
 %build
@@ -49,16 +47,35 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
 %find_lang %{name}
 
 
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+  /bin/touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null
+  /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor/ &>/dev/null || :
+fi
+
+
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor/ &>/dev/null || :
+
+
 %files -f %{name}.lang
 %doc license
 %{_bindir}/%{name}
 %{_datadir}/%{name}
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/pixmaps/*.svg
+%{_datadir}/icons/hicolor/*/apps/%{name}.svg
 %{python_sitelib}/*.egg-info
+%{_mandir}/man1/%{name}.1.*
 
 
 %changelog
+* Wed Jul 18 2012 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.4-1
+- Update to 2.4
+
 * Sat Jul 14 2012 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.3.1-1
 - Update to 2.3.1
 - Remove useless Provides/Obsoletes
@@ -66,9 +83,6 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
 * Mon Feb 20 2012 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.2.1-1
 - Update to 2.2.1
 
-* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
-
 * Tue Jan 03 2012 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.2-1
 - Update to 2.2
 


More information about the scm-commits mailing list