# No releases, source only available through svn. # svn co http://pyenet.googlecode.com/svn/trunk/ pyenet-trunk-svn24 Name: python-enet %define _name pyenet %define _rev svn24 # README claims it's pyenet 1.3 Version: 1.3 Release: 0.20110930svn24%{?dist} License: BSD Summary: Python bindings for ENet Group: Development/Libraries Url: http://code.google.com/p/pyenet Source: %{_name}-trunk-%{_rev}.tar.bz2 # build against system enet (taken from Debian) Patch0: pyenet-build-against-system-enet.patch BuildRequires: pkgconfig(libenet) >= 1.3.3 BuildRequires: pkgconfig(python) BuildRequires: Cython >= 0.13 Provides: pyenet = %{version}-%{release} %description Pyenet was written originally by Scott Robinson its currently maintained by Andrew Resch and provides the python bindings for ENet. %prep %setup -q -n %{_name}-trunk-%{_rev} %patch0 -p1 %build CFLAGS="%{optflags}" python setup.py build %install python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} # remove .egg-info find %{buildroot}%{python_sitearch} -name "*.egg-info" -print -exec rm -r {} \; %files %defattr(-,root,root) %doc LICENSE README ChangeLog %{python_sitearch}/enet.so %changelog * Mon May 14 2012 Nelson Marques - 1.3-0.20110930 - Initial package...