rpms/python-setuptools/FC-4 python-setuptools.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ignacio Vazquez-Abrams (ivazquez)
fedora-extras-commits at redhat.com
Thu Dec 29 05:12:32 UTC 2005
Author: ivazquez
Update of /cvs/extras/rpms/python-setuptools/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26171/FC-4
Modified Files:
.cvsignore sources
Added Files:
python-setuptools.spec
Log Message:
auto-import python-setuptools-0.6a8-1.fc4 on branch FC-4 from python-setuptools-0.6a8-1.fc4.src.rpm
--- NEW FILE python-setuptools.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: python-setuptools
Version: 0.6a8
Release: 1%{?dist}
Summary: Download, build, install, upgrade, and uninstall Python packages
Group: Development/Languages
License: PSFL/ZPL
URL: http://peak.telecommunity.com/DevCenter/setuptools
Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
Requires: python-abi = %{pyver}
%description
setuptools is a collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially ones that
have dependencies on other packages.
%prep
%setup -q -n setuptools-%{version}
sed -i '1s@#!python@#!/usr/bin/python@' easy_install.py
%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
find $RPM_BUILD_ROOT%{python_sitelib} -name \*.py -exec grep -q '^#!' {} \; -print | while read file ; do sed -i '1d' $file ; done
#find $RPM_BUILD_ROOT%{python_sitelib} -name \*.py -exec grep -q '^#!' {} \; | while read file ; do grep -q '^#!' $file && sed -i '1d' $file ; done
echo "setuptools-%{version}-py%{pyver}.egg" > $RPM_BUILD_ROOT%{python_sitelib}/setuptools.pth
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc api_tests.txt EasyInstall.txt pkg_resources.txt setuptools.txt
%{_bindir}/*
%{python_sitelib}/setuptools.pth
%{python_sitelib}/setuptools-%{version}-py%{pyver}.egg
%changelog
* Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.6a8-1
- Initial RPM release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-setuptools/FC-4/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 29 Dec 2005 04:24:58 -0000 1.1
+++ .cvsignore 29 Dec 2005 05:12:31 -0000 1.2
@@ -0,0 +1 @@
+setuptools-0.6a8.zip
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-setuptools/FC-4/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 29 Dec 2005 04:24:58 -0000 1.1
+++ sources 29 Dec 2005 05:12:31 -0000 1.2
@@ -0,0 +1 @@
+3eecdf66c1a2cf8a6556bc00b69d572a setuptools-0.6a8.zip
More information about the scm-commits
mailing list