]>
Commit | Line | Data |
---|---|---|
680874c9 ER |
1 | %define module skype |
2 | Summary: Python wrapper for the Skype API | |
3 | Name: python-%{module} | |
4 | Version: 1.0.31.0 | |
5dfe9724 | 5 | Release: 5 |
680874c9 ER |
6 | License: BSD |
7 | Group: Development/Languages/Python | |
ee8634f6 | 8 | Source0: http://downloads.sourceforge.net/skype4py/Skype4Py-%{version}.tar.gz |
680874c9 | 9 | # Source0-md5: 13091fccca8160e3e51ec064f42c82fd |
08512213 | 10 | Source1: %{name}-chat.py |
933b2fc6 ER |
11 | Source2: skype.protocol |
12 | Source3: skype.py | |
ee8634f6 | 13 | Source4: skype.schemas |
680874c9 ER |
14 | URL: https://developer.skype.com/wiki/Skype4Py |
15 | BuildRequires: python-devel | |
16 | BuildRequires: rpm-pythonprov | |
17 | BuildRequires: rpmbuild(macros) >= 1.219 | |
18 | Requires: python-modules >= 1:2.5 | |
ee8634f6 | 19 | Requires: skype-program |
680874c9 ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
933b2fc6 ER |
23 | %define kde_servicesdir %{_datadir}/services |
24 | ||
680874c9 ER |
25 | %description |
26 | Skype4Py is a Python wrapper for the Skype API. It is platform | |
27 | independant, written completly in Python and reimplements the | |
28 | Skype4COM's API in a pythonic way. | |
29 | ||
933b2fc6 ER |
30 | %package -n kde-protocol-skype |
31 | Summary: KDE3/KDE4 protocol handler | |
32 | Group: Applications/Communications | |
ee8634f6 | 33 | Requires: %{name} = %{version}-%{release} |
933b2fc6 ER |
34 | |
35 | %description -n kde-protocol-skype | |
36 | KDE3/KDE4 "skype:" protocol handler. | |
37 | ||
ee8634f6 ER |
38 | %package -n gnome-urlhandler-skype |
39 | Summary: Gnome URL handler for "skype:" protocol | |
40 | Group: Applications/Communications | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description -n gnome-urlhandler-skype | |
44 | Gnome URL handler for "skype:" protocol. | |
45 | ||
680874c9 ER |
46 | %prep |
47 | %setup -q -n Skype4Py-%{version} | |
e5556c10 | 48 | cp -a %{SOURCE1} chat.py |
680874c9 ER |
49 | |
50 | %build | |
51 | %{__python} setup.py build | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__python} setup.py install \ | |
56 | --root=$RPM_BUILD_ROOT | |
57 | ||
58 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
59 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
60 | %py_postclean | |
61 | ||
ee8634f6 | 62 | # kde |
933b2fc6 ER |
63 | install -d $RPM_BUILD_ROOT{%{kde_servicesdir},%{_datadir}/skype} |
64 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{kde_servicesdir} | |
65 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/skype | |
66 | ||
ee8634f6 ER |
67 | # gnome |
68 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas | |
69 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas | |
70 | ||
e5556c10 ER |
71 | # ??? |
72 | rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/Skype4Py/Languages/x1.py[co] | |
73 | ||
680874c9 ER |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
ee8634f6 ER |
77 | %post -n gnome-urlhandler-skype |
78 | %gconf_schema_install skype.schemas | |
79 | ||
80 | %preun -n gnome-urlhandler-skype | |
81 | %gconf_schema_uninstall skype.schemas | |
82 | ||
680874c9 ER |
83 | %files |
84 | %defattr(644,root,root,755) | |
08512213 | 85 | %doc LICENSE chat.py |
680874c9 ER |
86 | %dir %{py_sitescriptdir}/Skype4Py |
87 | %{py_sitescriptdir}/Skype4Py/*.py[co] | |
88 | %dir %{py_sitescriptdir}/Skype4Py/API | |
89 | %{py_sitescriptdir}/Skype4Py/API/*.py[co] | |
90 | %dir %{py_sitescriptdir}/Skype4Py/Languages | |
91 | %{py_sitescriptdir}/Skype4Py/Languages/__init__.py[co] | |
92 | ||
93 | %lang(ar) %{py_sitescriptdir}/Skype4Py/Languages/ar.py[co] | |
94 | %lang(bg) %{py_sitescriptdir}/Skype4Py/Languages/bg.py[co] | |
95 | %lang(cs) %{py_sitescriptdir}/Skype4Py/Languages/cs.py[co] | |
96 | %lang(cz) %{py_sitescriptdir}/Skype4Py/Languages/cz.py[co] | |
97 | %lang(da) %{py_sitescriptdir}/Skype4Py/Languages/da.py[co] | |
98 | %lang(de) %{py_sitescriptdir}/Skype4Py/Languages/de.py[co] | |
99 | %lang(el) %{py_sitescriptdir}/Skype4Py/Languages/el.py[co] | |
100 | %lang(en) %{py_sitescriptdir}/Skype4Py/Languages/en.py[co] | |
101 | %lang(es) %{py_sitescriptdir}/Skype4Py/Languages/es.py[co] | |
102 | %lang(et) %{py_sitescriptdir}/Skype4Py/Languages/et.py[co] | |
103 | %lang(fi) %{py_sitescriptdir}/Skype4Py/Languages/fi.py[co] | |
104 | %lang(fr) %{py_sitescriptdir}/Skype4Py/Languages/fr.py[co] | |
105 | %lang(he) %{py_sitescriptdir}/Skype4Py/Languages/he.py[co] | |
106 | %lang(hu) %{py_sitescriptdir}/Skype4Py/Languages/hu.py[co] | |
107 | %lang(it) %{py_sitescriptdir}/Skype4Py/Languages/it.py[co] | |
108 | %lang(ja) %{py_sitescriptdir}/Skype4Py/Languages/ja.py[co] | |
109 | %lang(ko) %{py_sitescriptdir}/Skype4Py/Languages/ko.py[co] | |
110 | %lang(lt) %{py_sitescriptdir}/Skype4Py/Languages/lt.py[co] | |
111 | %lang(lv) %{py_sitescriptdir}/Skype4Py/Languages/lv.py[co] | |
112 | %lang(nl) %{py_sitescriptdir}/Skype4Py/Languages/nl.py[co] | |
113 | %lang(no) %{py_sitescriptdir}/Skype4Py/Languages/no.py[co] | |
114 | %lang(pl) %{py_sitescriptdir}/Skype4Py/Languages/pl.py[co] | |
115 | %lang(pp) %{py_sitescriptdir}/Skype4Py/Languages/pp.py[co] | |
116 | %lang(pt) %{py_sitescriptdir}/Skype4Py/Languages/pt.py[co] | |
117 | %lang(ro) %{py_sitescriptdir}/Skype4Py/Languages/ro.py[co] | |
118 | %lang(ru) %{py_sitescriptdir}/Skype4Py/Languages/ru.py[co] | |
119 | %lang(sv) %{py_sitescriptdir}/Skype4Py/Languages/sv.py[co] | |
120 | %lang(tr) %{py_sitescriptdir}/Skype4Py/Languages/tr.py[co] | |
83926c89 ER |
121 | |
122 | %{py_sitescriptdir}/Skype4Py-*.egg-info | |
933b2fc6 | 123 | |
ee8634f6 ER |
124 | # urlhandler |
125 | %attr(755,root,root) %{_datadir}/skype/skype.py | |
126 | ||
933b2fc6 ER |
127 | %files -n kde-protocol-skype |
128 | %defattr(644,root,root,755) | |
129 | %{kde_servicesdir}/skype.protocol | |
ee8634f6 ER |
130 | |
131 | %files -n gnome-urlhandler-skype | |
132 | %defattr(644,root,root,755) | |
133 | %{_sysconfdir}/gconf/schemas/skype.schemas |