]> git.pld-linux.org Git - packages/python-pyevent.git/blame - python-pyevent.spec
- BR python-Pyrex
[packages/python-pyevent.git] / python-pyevent.spec
CommitLineData
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
7Summary: Python extension module for libevent
ac166806 8Summary(pl.UTF-8): Moduł rozszerzenia Pythona dla biblioteki libevent
e5053d82
PZ
9Name: python-%{module}
10Version: 0.3
0313f3ad 11Release: 12
e5053d82
PZ
12License: MIT
13Group: Libraries/Python
14Source0: http://pyevent.googlecode.com/files/%{module}-%{version}.tar.gz
15# Source0-md5: 584912c92d08bf005283fb29a47a6e4d
3dea685a 16Patch0: %{name}-python25.patch
08494cff 17Patch1: %{name}-setup.patch
4d591ea2
JR
18Patch2: libevent-2.1.patch
19Patch3: test-path.patch
e5053d82 20URL: http://code.google.com/p/pyevent/
5b3fd5da 21BuildRequires: rpmbuild(macros) >= 1.710
e5053d82 22BuildRequires: libevent-devel
0313f3ad 23BuildRequires: python-Pyrex
e5053d82
PZ
24BuildRequires: python-devel >= 1:2.5
25BuildRequires: python-modules
26BuildRequires: rpm-pythonprov
27%pyrequires_eq python-libs
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Python extension module for libevent.
32
ac166806
JB
33%description -l pl.UTF-8
34Moduł 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
44pyrexc event.pyx
45%py_build
46%{?with_tests:./test.py}
e5053d82
PZ
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
b90db3c0 51%py_install
e5053d82
PZ
52
53%py_postclean
54
55%clean
56rm -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
This page took 0.083899 seconds and 4 git commands to generate.