rpms/python-ctypes/devel python-ctypes.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Paul Nasrat (pnasrat) fedora-extras-commits at redhat.com
Sat May 13 14:53:56 UTC 2006


Author: pnasrat

Update of /cvs/extras/rpms/python-ctypes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29503/devel

Modified Files:
	.cvsignore sources 
Added Files:
	python-ctypes.spec 
Log Message:
auto-import python-ctypes-0.9.9.6-1 on branch devel from python-ctypes-0.9.9.6-1.src.rpm


--- NEW FILE python-ctypes.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-ctypes
Version:        0.9.9.6
Release:        1%{?dist}
Summary:        Advanced Foreign Function Interface for Python

Group:          Development/Languages
License:        MIT
URL:            http://starship.python.net/crew/theller/ctypes/
Source0:        http://download.sourceforge.net/ctypes/ctypes-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel
Requires:       python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")

%description
ctypes is an advanced ffi (Foreign Function Interface) package for
Python 2.3 and higher.
ctypes allows to call functions exposed from dlls/shared libraries
and has extensive facilities to create, access and manipulate
simple and complicated C data types in Python - in other words:
wrap libraries in pure Python.  It is even possible to implement C
callback functions in pure Python.


%prep
%setup -q -n ctypes-%{version}


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# Clean up temp and build for debuginfo
%{__python} setup.py clean

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt docs
# Include files and dirs below %{python_sitelib} (for noarch packages) and
# %{python_sitearch} (for arch-dependent packages) as appropriate, and mark
# *.pyo as %ghost (do not include in package).
%{python_sitearch}/*.so
%dir %{python_sitearch}/ctypes
%{python_sitearch}/ctypes/*.py
%{python_sitearch}/ctypes/*.pyc
%ghost %{python_sitearch}/ctypes/*.pyo
%dir %{python_sitearch}/ctypes/macholib
%{python_sitearch}/ctypes/macholib/*.py
%{python_sitearch}/ctypes/macholib/*.pyc
%ghost %{python_sitearch}/ctypes/macholib/*.pyo
#Don't package the test suite
%exclude %{python_sitearch}/ctypes/test


%changelog
* Thu Apr 27 2006 Paul Nasrat <pnasrat at redhat.com> - 0.9.9.6-1
- Update to latest release

* Sat Jan 14 2006 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.9.6-1
- Initial packaging.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-ctypes/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	13 May 2006 14:53:23 -0000	1.1
+++ .cvsignore	13 May 2006 14:53:56 -0000	1.2
@@ -0,0 +1 @@
+ctypes-0.9.9.6.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-ctypes/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 May 2006 14:53:23 -0000	1.1
+++ sources	13 May 2006 14:53:56 -0000	1.2
@@ -0,0 +1 @@
+6c7240608d564018ef8254721fde0012  ctypes-0.9.9.6.tar.gz




More information about the fedora-extras-commits mailing list