]>
Commit | Line | Data |
---|---|---|
617974ef ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test". needs live-id | |
4 | ||
5ee3ad9f ER |
5 | %define module papyon |
6 | Summary: An implementation of the MSN Messenger Protocol | |
5bc2af80 | 7 | Summary(pl.UTF-8): Implementacja protokołu komunikatora MSN |
5ee3ad9f | 8 | Name: python-%{module} |
617974ef | 9 | Version: 0.5.6 |
e5f940ba | 10 | Release: 3 |
5ee3ad9f ER |
11 | License: GPL v2+ |
12 | Group: Development/Languages/Python | |
d2b8ff7b | 13 | Source0: https://www.freedesktop.org/software/papyon/releases/papyon-%{version}.tar.gz |
617974ef | 14 | # Source0-md5: 7b9a723e5ba6ee82a9c391676144ad29 |
6bf499a5 | 15 | Patch0: %{name}-farstream.patch |
d2b8ff7b | 16 | URL: https://www.freedesktop.org/wiki/Software/papyon/ |
5ee3ad9f | 17 | BuildRequires: python >= 1:2.5 |
7b5c96e2 | 18 | BuildRequires: python-Crypto |
5bc2af80 | 19 | BuildRequires: python-devel >= 1:2.5 |
5ee3ad9f | 20 | BuildRequires: python-pyOpenSSL |
541172f6 | 21 | BuildRequires: python-pygobject |
5ee3ad9f | 22 | BuildRequires: rpm-pythonprov |
d2b8ff7b | 23 | BuildRequires: rpmbuild(macros) >= 1.714 |
617974ef | 24 | Requires: python-Crypto >= 2.0.0 |
6bf499a5 | 25 | Requires: python-farstream |
5bc2af80 | 26 | Requires: python-libs >= 1:2.5 |
617974ef ER |
27 | Requires: python-pyOpenSSL >= 0.6 |
28 | Requires: python-pygobject >= 2.10.1 | |
5ee3ad9f ER |
29 | BuildArch: noarch |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | papyon is a library, written in Python, for accessing the MSN instant | |
34 | messaging service. | |
35 | ||
5bc2af80 JB |
36 | %description -l pl.UTF-8 |
37 | papyon to napisana w Pythona biblioteka pozwalająca na dostęp do | |
38 | usługi komunikatora MSN. | |
39 | ||
5ee3ad9f | 40 | %prep |
77e7b324 | 41 | %setup -q -n %{module}-%{version} |
6bf499a5 | 42 | %patch0 -p1 |
5ee3ad9f ER |
43 | |
44 | %build | |
3bc47425 | 45 | %py_build |
5ee3ad9f | 46 | |
617974ef ER |
47 | %{?with_tests:%{__python} test.py} |
48 | ||
5ee3ad9f ER |
49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
d2b8ff7b | 51 | |
3bc47425 | 52 | %py_install |
5ee3ad9f ER |
53 | |
54 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
55 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
56 | %py_postclean | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc AUTHORS NEWS README doc/user-api.conf | |
64 | %{py_sitescriptdir}/papyon | |
5ee3ad9f | 65 | %{py_sitescriptdir}/papyon-*.egg-info |