rpms/python-ctypes/EL-5 python-ctypes.spec,1.3,1.4

Jesse Keating jkeating at fedoraproject.org
Tue Aug 4 18:44:17 UTC 2009


Author: jkeating

Update of /cvs/pkgs/rpms/python-ctypes/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28180

Modified Files:
	python-ctypes.spec 
Log Message:
* Fri Jul 24 2009 Felix Schwarz <felix.schwarz at oss.schwarz.eu> - 1.0.2-2
- add egg info



Index: python-ctypes.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-ctypes/EL-5/python-ctypes.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- python-ctypes.spec	21 Dec 2007 19:56:07 -0000	1.3
+++ python-ctypes.spec	4 Aug 2009 18:44:16 -0000	1.4
@@ -1,8 +1,10 @@
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}
+%define pyver %(%{__python} -c "import sys ; print sys.version[:3]")
 
 Name:           python-ctypes
 Version:        1.0.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Advanced Foreign Function Interface for Python
 
 Group:          Development/Languages
@@ -12,6 +14,7 @@ Source0:        http://download.sourcefo
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  python-devel
+BuildRequires:  python-setuptools
 Requires:       python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
 
 %description
@@ -29,12 +32,12 @@ callback functions in pure Python.
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root $RPM_BUILD_ROOT
 # Clean up temp and build for debuginfo
 %{__python} setup.py clean
 
@@ -54,6 +57,7 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/ctypes/*.py
 %{python_sitearch}/ctypes/*.pyc
 %{python_sitearch}/ctypes/*.pyo
+%{python_sitearch}/ctypes-%{version}-py%{pyver}.egg-info/
 %dir %{python_sitearch}/ctypes/macholib
 %{python_sitearch}/ctypes/macholib/*.py
 %{python_sitearch}/ctypes/macholib/*.pyc
@@ -61,8 +65,10 @@ rm -rf $RPM_BUILD_ROOT
 #Don't package the test suite
 %exclude %{python_sitearch}/ctypes/test
 
-
 %changelog
+* Fri Jul 24 2009 Felix Schwarz <felix.schwarz at oss.schwarz.eu> - 1.0.2-2
+- add egg info
+
 * Sun Dec 16 2007 Jesse Keating <jkeating at redhat.com> - 1.0.2-1
 - Update to 1.0.2
 




More information about the fedora-extras-commits mailing list