3 %bcond_without tests # do not perform "make test"
7 Summary: Python extension module for libevent
8 Summary(pl.UTF-8): Moduł rozszerzenia Pythona dla biblioteki libevent
13 Group: Libraries/Python
14 Source0: http://pyevent.googlecode.com/files/%{module}-%{version}.tar.gz
15 # Source0-md5: 584912c92d08bf005283fb29a47a6e4d
16 Patch0: %{name}-python25.patch
17 Patch1: %{name}-setup.patch
18 Patch2: libevent-2.1.patch
19 Patch3: test-path.patch
20 URL: http://code.google.com/p/pyevent/
21 BuildRequires: rpmbuild(macros) >= 1.710
22 BuildRequires: libevent-devel
23 BuildRequires: python-devel >= 1:2.5
24 BuildRequires: python-modules
25 BuildRequires: rpm-pythonprov
26 %pyrequires_eq python-libs
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Python extension module for libevent.
32 %description -l pl.UTF-8
33 Moduł rozszerzenia Pythona dla biblioteki libevent.
36 %setup -q -n %{module}-%{version}
45 %{?with_tests:./test.py}
48 rm -rf $RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{py_sitedir}/event.so
61 %{py_sitedir}/event-*.egg-info