3 # - move the scripts from the wrap subpackage to /usr/bin?
6 Summary: Python package to call functions in dynamic linked libraries
7 Summary(pl.UTF-8): Pakiet Pythona do wywoływania funkcji w bibliotekach linkowanych dynamicznie
12 Group: Development/Languages/Python
13 Source0: http://dl.sourceforge.net/ctypes/%{module}-%{version}.tar.gz
14 # Source0-md5: 94ff7aa7f7f71b23bac8a98065d77743
15 URL: http://starship.python.net/crew/theller/ctypes/
16 BuildRequires: rpmbuild(macros) >= 1.710
17 # modified libffi included
18 #BuildRequires: libffi-devel
19 BuildRequires: python-devel >= 2.3
20 BuildRequires: python-modules >= 2.3
21 # ctypes already included in python 2.5
22 BuildRequires: python < 1:2.5
23 BuildRequires: rpm-pythonprov
24 %pyrequires_eq python-libs
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 ctypes is a Python package to create and manipulate C data types in
29 Python, and to call functions in dynamic link libraries/shared dlls.
30 It allows wrapping these libraries in pure Python.
32 %description -l pl.UTF-8
33 ctypes to pakiet Pythona do tworzenia i obróbki typów danych z C w
34 Pythonie oraz wywoływania funkcji z dynamicznie linkowanych i
35 współdzielonych bibliotek. Umożliwia obudowywanie tych bibliotek w
39 %setup -q -n %{module}-%{version}
45 rm -rf $RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
58 %attr(755,root,root) %{py_sitedir}/_ctypes.so
59 %attr(755,root,root) %{py_sitedir}/_ctypes_test.so