[packages/emesene] - fix locales finding

draenog draenog at pld-linux.org
Thu Jul 5 19:52:00 CEST 2012


commit 34e0ff815be69dca895c9195e7280f9397992859
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Jul 5 17:03:18 2012 +0000

    - fix locales finding
    
    Changed files:
        emesene.spec -> 1.27
        locale-path.patch -> 1.1

 emesene.spec      |  4 +++-
 locale-path.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/emesene.spec b/emesene.spec
index 9a876a6..d150fc4 100644
--- a/emesene.spec
+++ b/emesene.spec
@@ -3,7 +3,7 @@
 Summary:	Instant messaging client for Windows Live Messenger (tm) network
 Name:		emesene
 Version:	2.12.5
-Release:	0.1
+Release:	0.2
 License:	GPL v3 (emesene), GPL v2 (themes), LGPL (the rest)
 Group:		Applications/Networking
 URL:		http://www.emesene.org/
@@ -12,6 +12,7 @@ Source0:	https://github.com/emesene/emesene/tarball/v%{version}/%{name}-%{versio
 Patch0:		%{name}-desktop.patch
 Patch2:		plugins-pyc.patch
 Patch3:		pythonpath.patch
+Patch4:		locale-path.patch
 BuildRequires:	gettext
 BuildRequires:	python-devel
 BuildRequires:	python-modules
@@ -79,6 +80,7 @@ mv *-emesene-*/* .
 %patch0 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 # remove shebang
 %{__sed} -i -e '/^#!\//, 1d' emesene/test/e3_example.py emesene/extension.py \
diff --git a/locale-path.patch b/locale-path.patch
new file mode 100644
index 0000000..cc416f7
--- /dev/null
+++ b/locale-path.patch
@@ -0,0 +1,11 @@
+--- emesene-2.12.5/emesene/Language.py~	2012-07-05 19:58:24.000000000 +0300
++++ emesene-2.12.5/emesene/Language.py	2012-07-05 20:00:31.501276097 +0300
+@@ -108,7 +108,7 @@
+ 
+         self._default_locale = locale.getdefaultlocale()[0]
+         self._lang = os.getenv('LANGUAGE') or self._default_locale
+-        self._locales_path = 'po/' if os.path.exists('po/') else None
++        self._locales_path = 'po/' if os.path.exists('po/') else '/usr/share/locale'
+ 
+         self._get_languages_list()
+ 


More information about the test mailing list