%global svn_date 20100118 %global svn_rev 77594 Name: python-ctypeslib Version: 0.5.6 Release: 0.1.%{svn_date}svn%{svn_rev}%{?dist} Summary: Assorted utilities for working with Python ctypes BuildArch: noarch License: MIT URL: https://pypi.python.org/pypi/ctypeslib/ # svn export http://svn.python.org/projects/ctypes/trunk/ctypeslib/ ctypeslib-%%{svn_rev} # tar c ctypeslib-%%{svn_rev} | xz -9 > ctypeslib-%%{svn_rev}.tar.xz Source0: ctypeslib-%{svn_rev}.tar.xz BuildRequires: python-devel Requires: gccxml %description ctypeslib contains these packages: - ctypeslib.codegen - a code generator - ctypeslib.contrib - various contributed modules - ctypeslib.util - assorted small helper functions - ctypeslib.test - unittests %prep %setup -q -n ctypeslib-%{svn_rev} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %files %doc LICENSE.txt ChangeLog TODO %{python_sitelib}/ctypeslib %{python_sitelib}/ctypeslib*.egg-info %{_bindir}/h2xml.py %{_bindir}/xml2py.py %changelog * Fri Feb 27 2015 T.C. Hollingsworth - 0.5.6-0.1.20100118svn77594 - initial package