1 # No releases, source only available through svn.
2 # svn co http://pyenet.googlecode.com/svn/trunk/ pyenet-trunk-svn24
6 Summary: Python bindings for ENet
9 Release: 0.%{svnrev}.%{rel}
11 Group: Libraries/Python
12 URL: http://code.google.com/p/pyenet
13 Source0: %{module}-trunk-%{svnrev}.tar.bz2
14 # Source0-md5: 1fa3e0ff41974fee2defc88d03a1c293
15 Patch0: pyenet-build-against-system-enet.patch
16 BuildRequires: enet-devel >= 1.3.3
17 BuildRequires: python-Cython >= 0.13
18 BuildRequires: python-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Pyenet was written originally by Scott Robinson <scott@tranzoa.com>.
24 It's currently maintained by Andrew Resch <andrewresch@gmail.com> and
25 provides the Python bindings for ENet.
28 %setup -q -n %{module}-trunk-%{svnrev}
33 CFLAGS="%{rpmcflags}" \
34 %{__python} setup.py build
37 rm -rf $RPM_BUILD_ROOT
38 %{__python} setup.py install \
41 --root=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc LICENSE README ChangeLog
49 %attr(755,root,root) %{py_sitedir}/enet.so
50 %{py_sitedir}/enet-%{version}-py*.egg-info