3 # - make it work (create good dependences) (see workaround)
4 # - summary and description (both),
5 # - data to /var/lib/ dir i think,
8 Summary: Python MSN jabber transport
9 Summary(pl.UTF-8): Python MSN jabber transport
14 Group: Libraries/Python
15 Source0: http://delx.cjb.net/pymsnt/tarballs/pymsnt-snapshot.tar.gz
16 # Source0-md5: 878a3df019c3e56b832feb751a4b4502
17 URL: http://delx.cjb.net/pymsnt/
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.219
21 Requires: python-Twisted
22 Requires: python-Twisted-ssl
23 Requires: python-TwistedWords
24 Requires: python-TwistedWeb
25 Requires: python-TwistedXish
26 Requires: python-Imaging
27 Requires: python-pyOpenSSL
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %description -l pl.UTF-8
36 %setup -q -n pymsnt-snapshot
41 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/{twistfix/words/{xish/,protocols/jabber/},legacy/msn/,baseproto/}
45 install src/twistfix/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/
46 install src/twistfix/words/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/
47 install src/twistfix/words/xish/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/xish/
48 install src/twistfix/words/protocols/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/protocols/
49 install src/twistfix/words/protocols/jabber/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/protocols/jabber/
50 install src/legacy/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/legacy/
51 install src/legacy/msn/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/legacy/msn/
52 install src/baseproto/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/baseproto/
53 install src/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/
54 install PyMSNt.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/
57 rm -rf $RPM_BUILD_ROOT
59 #ugly workaround (maybe fix in twisted words/xish package?)
61 ln -s %{py_sitescriptdir}/twisted/words/ %{py_sitedir}/twisted/words
62 ln -s %{py_sitescriptdir}/twisted/xish/ %{py_sitedir}/twisted/xish
65 rm %{py_sitedir}/twisted/words/
66 rm %{py_sitedir}/twisted/xish/
69 %defattr(644,root,root,755)
71 %dir %{_datadir}/pymsnt/src/twistfix/
72 %{_datadir}/pymsnt/src/twistfix/*.py
73 %dir %{_datadir}/pymsnt/src/twistfix/words/
74 %{_datadir}/pymsnt/src/twistfix/words/*.py
75 %dir %{_datadir}/pymsnt/src/twistfix/words/xish/
76 %{_datadir}/pymsnt/src/twistfix/words/xish/*.py
77 %dir %{_datadir}/pymsnt/src/twistfix/words/protocols/
78 %{_datadir}/pymsnt/src/twistfix/words/protocols/*.py
79 %dir %{_datadir}/pymsnt/src/twistfix/words/protocols/jabber/
80 %{_datadir}/pymsnt/src/twistfix/words/protocols/jabber/*.py
81 %dir %{_datadir}/pymsnt/src/legacy/
82 %{_datadir}/pymsnt/src/legacy/*.py
83 %dir %{_datadir}/pymsnt/src/legacy/msn/
84 %{_datadir}/pymsnt/src/legacy/msn/*.py
85 %dir %{_datadir}/pymsnt/src/baseproto/
86 %{_datadir}/pymsnt/src/baseproto/*.py
87 %dir %{_datadir}/pymsnt/src
88 %{_datadir}/pymsnt/src/*.py
89 %dir %{_datadir}/pymsnt
90 %{_datadir}/pymsnt/*.py