]>
Commit | Line | Data |
---|---|---|
e697c636 | 1 | # |
2 | # TODO: | |
63bf010c | 3 | # - make it work (create good dependences) (see workaround) |
e697c636 | 4 | # - summary and description (both), |
5 | # - data to /var/lib/ dir i think, | |
63bf010c | 6 | # - init scripts |
e697c636 | 7 | |
8 | Summary: Python MSN jabber transport | |
9 | Summary(pl.UTF-8): Python MSN jabber transport | |
10 | Name: PyMSNt | |
11 | Version: 0.12 | |
12 | Release: 0.1 | |
13 | License: GPL | |
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/ | |
18 | BuildRequires: python | |
19 | BuildRequires: rpm-pythonprov | |
20 | BuildRequires: rpmbuild(macros) >= 1.219 | |
63bf010c | 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 | |
e697c636 | 28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | ||
35 | %prep | |
36 | %setup -q -n pymsnt-snapshot | |
37 | ||
38 | %build | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | install -d $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/{twistfix/words/{xish/,protocols/jabber/},legacy/msn/,baseproto/} | |
63bf010c | 44 | |
e697c636 | 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/ | |
55 | ||
e697c636 | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
63bf010c | 59 | #ugly workaround (maybe fix in twisted words/xish package?) |
60 | %post | |
61 | ln -s %{py_sitescriptdir}/twisted/words/ %{py_sitedir}/twisted/words | |
62 | ln -s %{py_sitescriptdir}/twisted/xish/ %{py_sitedir}/twisted/xish | |
63 | ||
64 | %postun | |
65 | rm %{py_sitedir}/twisted/words/ | |
66 | rm %{py_sitedir}/twisted/xish/ | |
67 | ||
e697c636 | 68 | %files |
69 | %defattr(644,root,root,755) | |
70 | %doc README TODO docs | |
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 |