packages: python-skype/python-skype.spec - make languages optional

glen glen at pld-linux.org
Thu Dec 22 15:50:35 CET 2011


Author: glen                         Date: Thu Dec 22 14:50:35 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- make languages optional

---- Files affected:
packages/python-skype:
   python-skype.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/python-skype/python-skype.spec
diff -u packages/python-skype/python-skype.spec:1.10 packages/python-skype/python-skype.spec:1.11
--- packages/python-skype/python-skype.spec:1.10	Sun Dec  4 11:49:18 2011
+++ packages/python-skype/python-skype.spec	Thu Dec 22 15:50:29 2011
@@ -3,7 +3,7 @@
 Summary:	Python wrapper for the Skype API
 Name:		python-%{module}
 Version:	1.0.32.0
-Release:	2
+Release:	3
 License:	BSD
 Group:		Development/Languages/Python
 Source0:	http://downloads.sourceforge.net/skype4py/Skype4Py-%{version}.tar.gz
@@ -55,6 +55,12 @@
 
 cp -p %{SOURCE1} examples/chat.py
 
+# wrap each language import so any language becames optional
+for lang in $(awk '/^import/{print $2}' Skype4Py/lang/__init__.py | sort -u); do
+	 printf "try:\n import $lang\nexcept ImportError:\n pass\n";
+done > lang.py
+cp -p lang.py Skype4Py/lang/__init__.py
+
 %build
 %{__python} setup.py build
 
@@ -152,6 +158,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2011/12/22 14:50:29  glen
+- make languages optional
+
 Revision 1.10  2011/12/04 10:49:18  glen
 - package readme and examples
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-skype/python-skype.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list