%define oname ctypes %define name python-%oname %define version 0.9.7 %define pre beta %define release 0.%pre.1mdk Summary: Create and manipulate C data types from Python Name: %{name} Version: %{version} Release: %{release} Source0: http://prdownloads.sourceforge.net/ctypes/%{oname}-%{version}%pre.tar.bz2 License: MIT Group: Development/Python Url: http://starship.python.net/crew/theller/ctypes/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: python-devel BuildRequires: libffi-devel %description This is a Python package to create and manipulate C data types in Python, and to call functions in dynamic link libraries/shared dlls. It allows wrapping these libraries in pure Python. %prep %setup -q -n %oname-%version%pre %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README* NEWS.txt docs/* %_libdir/python%pyver/site-packages/_ctypes.so %_libdir/python%pyver/site-packages/_ctypes_test.so %_libdir/python%pyver/site-packages/ctypes %changelog * Sun Apr 3 2005 Götz Waschk <waschk@linux-mandrake.com> 0.9.7-0.beta.1mdk - New release 0.9.7beta * Sun Mar 13 2005 Götz Waschk <waschk@linux-mandrake.com> 0.9.5-1mdk - New release 0.9.5 * Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.9.1-2mdk - Rebuild for new python * Fri Sep 17 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.9.1-1mdk - New release 0.9.1 * Sat Jul 24 2004 Götz Waschk <waschk@linux-mandrake.com> 0.9.0-1mdk - add new file - New release 0.9.0 * Tue Apr 20 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6.3-1mdk - initial package