Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 67dbec362114bedf315abbe775e38de9 > files > 3

python-ctypes-1.0.2-3.el5.src.rpm

%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
%define real_name ctypes

Summary: Create and manipulate C data types from Python
Name: python-ctypes
Version: 1.0.2
Release: 3%{?dist}
License: MIT
Group: Development/Libraries
URL: http://starship.python.net/crew/theller/ctypes/

Source: http://downloads.sourceforge.net/project/ctypes/ctypes/%{version}/ctypes-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: python-devel >= 2.3

Patch0: python-ctypes-1.0.2-1-noexec-stack.patch

%description
python-ctypes is a python module 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 %{real_name}-%{version}
%patch0 -p1 


%build
%{__python} setup.py build

%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc ACKS ANNOUNCE BUGS ChangeLog LICENSE.txt README.*
%attr(0755, root, root) %{python_sitearch}/_ctypes.so
%attr(0755, root, root) %{python_sitearch}/_ctypes_test.so
%{python_sitearch}/ctypes/

%changelog
* Wed Aug 24 2011 Lukas Nykryn <lnykryn@redhat.com> - 1.0.2-3
- Bump release
- Related: #601661
- Change source URL

* Thu Dec 10 2009 Jiri Olsa <jolsa@redhat.com> - 1.0.2-1
- rebuilt for RHEL5

* Mon Oct 09 2006 Dag Wieers <dag@wieers.com> - 1.0.0-2 #4804
- Fixed group name.

* Sun Aug 06 2006 Dag Wieers <dag@wieers.com> - 1.0.0-1
- Updated to release 1.0.0.

* Tue Mar 08 2005 Dag Wieers <dag@wieers.com> - 0.9.1-1
- Initial package. (using DAR)