]> git.pld-linux.org Git - packages/python-skype.git/commitdiff
- make languages optional auto/th/python-skype-1_0_32_0-3
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 22 Dec 2011 14:50:29 +0000 (14:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-skype.spec -> 1.11

python-skype.spec

index 891252c310561b53711f3e458cc4bde4e9ec3440..98cb553b64e4867c0c632663232a6ea1fd86d71e 100644 (file)
@@ -2,7 +2,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
@@ -54,6 +54,12 @@ mv Skype4Py/LICENSE .
 
 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
 
This page took 0.067524 seconds and 4 git commands to generate.