[xneur] Update to 0.13 version (request bz#708922).

Pavel Alexeev hubbitus at fedoraproject.org
Fri Jun 24 11:00:28 UTC 2011


commit 9691676e098af6b40ed4b1b7ab641b524f1a0afc
Author: Pavel Alexeev (aka Pahan-Hubbitus) <pahan at hubbitus.info>
Date:   Fri Jun 24 14:52:47 2011 +0400

    Update to 0.13 version (request bz#708922).

 .gitignore |    1 +
 sources    |    3 +--
 xneur.spec |   38 +++++++++++++++++++++++---------------
 3 files changed, 25 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b9dccbf..08d1a45 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /xneur-0.11.1.tar.bz2
 /xneur-0.12.0.tar.bz2
 /xneur-0.12.0-svn859.tar.bz2
+/xneur-0.13.0.tar.bz2
diff --git a/sources b/sources
index 391d8e1..cd0814f 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-746b49f6aa5728deb91073cd3911e4d1  xneur-0.10.0_libnotify_gt_0.7.patch
-f7ed6aaca101df4b9d9108f1733a6e86  xneur-0.12.0-svn859.tar.bz2
+f9e9228cd27672c951dd96d8cf8b8650  xneur-0.13.0.tar.bz2
diff --git a/xneur.spec b/xneur.spec
index b76307d..9ffdf16 100644
--- a/xneur.spec
+++ b/xneur.spec
@@ -1,9 +1,9 @@
-%global SVN	859
+#% global SVN	859
 
 Summary:		X Neural Switcher
 Name:		xneur
-Version:		0.12.0
-Release:		3%{?SVN:.svn%{SVN}}%{?dist}
+Version:		0.13.0
+Release:		1%{?SVN:.svn%{SVN}}%{?dist}
 
 License:		GPLv2+
 Group:		User Interface/Desktops
@@ -18,18 +18,16 @@ BuildRequires:	libX11-devel, gstreamer-devel, freealut-devel >= 1.0.1
 BuildRequires:	enchant-devel, libXpm-devel, imlib2-devel, xosd-devel
 BuildRequires:	gettext-devel, libnotify-devel >= 0.4.0, gtk2-devel
 
-%if 0%{SVN}
+# I dont understand for what icons appeared for daemon, but its there from 0.13 version
+Requires:		hicolor-icon-theme
+
+%if 0%{?SVN}
 BuildRequires:	libtool
 %endif
 
 # El5 http://fedoraproject.org/wiki/EPEL/GuidelinesAndPolicies#Distribution_specific_guidelines
 Requires:		pkgconfig
 
-# There no publick backtracker available. Problem sent by mail to developer, but no answer got.
-# Patch mabe by example of http://launchpadlibrarian.net/58728091/libnotify-070-fix.diff
-#	( https://bugs.launchpad.net/qbittorrent/+bug/671769 )
-Patch0:		xneur-0.10.0_libnotify_gt_0.7.patch
-
 %description
 X Neural Switcher is a program for automatic (intelligent) keyboard layout
 changing in the X Window System. It is mainly used to change between Russian
@@ -56,10 +54,9 @@ developing applications that use %{name}.
 
 %prep
 %setup -q
-%patch0 -b .libnotify-0.7 -p1
 
 %build
-%if 0%{SVN}
+%if 0%{?SVN}
 ./autogen.sh
 %endif
 
@@ -82,11 +79,19 @@ rm %{buildroot}/%{_libdir}/{,%{name}}/*.{a,la}
 
 %find_lang %{name}
 
+%post
+/sbin/ldconfig
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+	if [ $1 -eq 0 ] ; then
+	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+	fi
 
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %clean
 rm -rf %{buildroot}
@@ -103,7 +108,7 @@ rm -rf %{buildroot}
 %{_mandir}/man1/%{name}.1*
 %{_mandir}/man5/%{name}rc.5*
 %{_datadir}/%{name}
-
+%{_datadir}/icons/hicolor/*/apps/*
 
 %files devel
 %defattr(-,root,root,-)
@@ -114,6 +119,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Fri Jun 24 2011 Pavel Alexeev <Pahan at Hubbitus.info> - 0.13.0-1
+- Update to 0.13 version (request bz#708922).
+
 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.0-3.svn859
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list