# No releases, source only available through svn. # svn co http://pyenet.googlecode.com/svn/trunk/ pyenet-trunk-svn24 Name: pyenet %define _rev svn24 Version: 0.0.0+%{_rev} Release: 0%{?dist} License: MIT Summary: Python bindings for ENet 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 # use pkgconfig() calls whenever possible (?) BuildRequires: Cython BuildRequires: pkgconfig(libenet) >= 1.3.3 BuildRequires: pkgconfig(python) # for testing #BuildRequires: rpmlint # we don't want to provide private python extension libs %define __provides_exclude_from %{python_sitearch}/.*\.so$ %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="$RPM_OPT_FLAGS" python setup.py build %install python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} # manual strip (?) strip %{buildroot}%{python_sitearch}/enet.so %files %doc LICENSE README ChangeLog %{python_sitearch}/enet.so %{python_sitearch}/*.egg-info %changelog * Sat Oct 08 2011 Nelson Marques - 0.0.0+svn24-0 - Inital package from svn rev 24. - Add pyenet-build-against-system-enet.patch: build against system enet, taken from Debian.