]>
Commit | Line | Data |
---|---|---|
4d591ea2 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
e5053d82 | 4 | |
4d591ea2 | 5 | %define module pyevent |
e5053d82 PZ |
6 | |
7 | Summary: Python extension module for libevent | |
ac166806 | 8 | Summary(pl.UTF-8): Moduł rozszerzenia Pythona dla biblioteki libevent |
e5053d82 PZ |
9 | Name: python-%{module} |
10 | Version: 0.3 | |
0313f3ad | 11 | Release: 12 |
e5053d82 PZ |
12 | License: MIT |
13 | Group: Libraries/Python | |
14 | Source0: http://pyevent.googlecode.com/files/%{module}-%{version}.tar.gz | |
15 | # Source0-md5: 584912c92d08bf005283fb29a47a6e4d | |
3dea685a | 16 | Patch0: %{name}-python25.patch |
08494cff | 17 | Patch1: %{name}-setup.patch |
4d591ea2 JR |
18 | Patch2: libevent-2.1.patch |
19 | Patch3: test-path.patch | |
e5053d82 | 20 | URL: http://code.google.com/p/pyevent/ |
5b3fd5da | 21 | BuildRequires: rpmbuild(macros) >= 1.710 |
e5053d82 | 22 | BuildRequires: libevent-devel |
0313f3ad | 23 | BuildRequires: python-Pyrex |
e5053d82 PZ |
24 | BuildRequires: python-devel >= 1:2.5 |
25 | BuildRequires: python-modules | |
26 | BuildRequires: rpm-pythonprov | |
27 | %pyrequires_eq python-libs | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Python extension module for libevent. | |
32 | ||
ac166806 JB |
33 | %description -l pl.UTF-8 |
34 | Moduł rozszerzenia Pythona dla biblioteki libevent. | |
35 | ||
e5053d82 PZ |
36 | %prep |
37 | %setup -q -n %{module}-%{version} | |
3dea685a | 38 | %patch0 -p1 |
08494cff | 39 | %patch1 -p1 |
4d591ea2 JR |
40 | %patch2 -p1 |
41 | %patch3 -p1 | |
e5053d82 PZ |
42 | |
43 | %build | |
4d591ea2 JR |
44 | pyrexc event.pyx |
45 | %py_build | |
46 | %{?with_tests:./test.py} | |
e5053d82 PZ |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
b90db3c0 | 51 | %py_install |
e5053d82 PZ |
52 | |
53 | %py_postclean | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc CHANGES README | |
ac166806 | 61 | %attr(755,root,root) %{py_sitedir}/event.so |
e5053d82 | 62 | %{py_sitedir}/event-*.egg-info |