2008-09-17 21:43:14 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-setuptools (Version 0.6c8)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-setuptools
|
2009-04-03 15:04:07 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1110
|
|
|
|
BuildRequires: python-base
|
|
|
|
%else
|
|
|
|
BuildRequires: python-devel
|
|
|
|
Requires: python-devel
|
|
|
|
%endif
|
2009-07-30 18:02:49 +02:00
|
|
|
|
2009-07-31 23:49:32 +02:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2009-08-12 20:08:01 +02:00
|
|
|
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
|
|
|
BuildArch: noarch
|
2009-07-31 23:49:32 +02:00
|
|
|
%endif
|
2009-07-30 18:02:49 +02:00
|
|
|
|
2008-12-15 06:56:31 +01:00
|
|
|
Version: 0.6c9
|
2009-03-30 14:02:40 +02:00
|
|
|
Release: 10
|
2008-09-17 21:43:14 +02:00
|
|
|
Summary: Download, build, install, upgrade, and uninstall Python packages -- easily!
|
2006-10-27 14:17:57 +02:00
|
|
|
Group: Development/Libraries/Python
|
2008-09-17 21:43:14 +02:00
|
|
|
License: Other uncritical OpenSource License; Python Copyright
|
|
|
|
Url: http://cheeseshop.python.org/pypi/setuptools
|
|
|
|
Source: setuptools-%{version}.tar.bz2
|
|
|
|
Source1: psfl.txt
|
|
|
|
Source2: zpl.txt
|
2009-03-30 14:02:40 +02:00
|
|
|
Patch1: python-setuptools-distutils-log.diff
|
|
|
|
Patch2: setuptools-0.6c9-create-sitedir.patch
|
2008-09-17 21:43:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%py_requires
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%description
|
2008-09-17 21:43:14 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2008-09-17 21:43:14 +02:00
|
|
|
Phillip J. Eby <distutils-sig@python.org>
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%prep
|
2008-09-17 21:43:14 +02:00
|
|
|
%setup -q -n setuptools-%{version}
|
2009-03-30 14:02:40 +02:00
|
|
|
%patch1 -p0
|
|
|
|
%patch2
|
2008-09-17 21:43:14 +02:00
|
|
|
chmod -x *.txt
|
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%build
|
2008-09-17 21:43:14 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2007-06-13 10:31:39 +02:00
|
|
|
%{__python} setup.py build
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%install
|
2008-09-17 21:43:14 +02:00
|
|
|
%{__python} setup.py install -O1 --skip-build \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--root $RPM_BUILD_ROOT \
|
2009-07-31 23:49:32 +02:00
|
|
|
--single-version-externally-managed \
|
|
|
|
--record-rpm=INSTALLED_FILES
|
|
|
|
|
2008-09-17 21:43:14 +02:00
|
|
|
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
|
2009-07-31 23:49:32 +02:00
|
|
|
find $RPM_BUILD_ROOT%{python_sitelib} -name '*.txt' -exec chmod -x {} ";"
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/setuptools/command/easy_install.py
|
2009-04-03 15:04:07 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2009-07-31 23:49:32 +02:00
|
|
|
%fdupes $RPM_BUILD_ROOT%{python_sitelib}
|
2009-04-03 15:04:07 +02:00
|
|
|
%endif
|
2007-06-13 10:31:39 +02:00
|
|
|
|
2006-10-27 14:17:57 +02:00
|
|
|
%clean
|
2008-09-17 21:43:14 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-06-13 10:31:39 +02:00
|
|
|
|
2009-07-31 23:49:32 +02:00
|
|
|
%files -f INSTALLED_FILES
|
2008-09-17 21:43:14 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc *.txt
|
2009-07-31 23:49:32 +02:00
|
|
|
#%{_bindir}/*
|
|
|
|
#%{python_sitelib}/*
|
2006-10-27 14:17:57 +02:00
|
|
|
|
|
|
|
%changelog
|
2009-03-30 14:02:40 +02:00
|
|
|
* Wed Oct 22 2008 skh@suse.de
|
|
|
|
- add python-setuptools-distutils-log.diff:
|
|
|
|
setuptools/command/sdist.py: import distutils.log [bnc#428177]
|
|
|
|
- add python-setuptools-svn15.diff:
|
|
|
|
setuptools/command/egg_info.py: recognize svn format version 1.5 magic
|
|
|
|
number [also bnc#428177]
|
2008-09-17 21:43:14 +02:00
|
|
|
* Mon Aug 18 2008 cthiel@suse.de
|
|
|
|
- update to version 0.6c8
|
|
|
|
* Prevent ``--help-commands`` and other junk from showing under Python 2.5
|
|
|
|
when running ``easy_install --help``.
|
|
|
|
* Fixed GUI scripts sometimes not executing on Windows
|
|
|
|
* Fixed not picking up dependency links from recursive dependencies.
|
|
|
|
* Only make ``.py``, ``.dll`` and ``.so`` files executable when unpacking
|
|
|
|
eggs
|
|
|
|
* Changes for Jython compatibility
|
|
|
|
- changes in version 0.6c7
|
|
|
|
* ``ftp:`` download URLs now work correctly.
|
|
|
|
* The default ``--index-url`` is now ``http://pypi.python.org/simple``, to
|
|
|
|
use the Python Package Index's new simpler (and faster!) REST API.
|
|
|
|
* Tue Aug 07 2007 cthiel@suse.de
|
|
|
|
- update to version 0.6c6
|
|
|
|
* EasyInstall no longer aborts the installation process if a URL it wants
|
|
|
|
to retrieve can't be downloaded, unless the URL is an actual package
|
|
|
|
download. Instead, it issues a warning and tries to keep going.
|
|
|
|
* Fixed distutils-style scripts originally built on Windows having their
|
|
|
|
line endings doubled when installed on any platform.
|
|
|
|
* Added ``--local-snapshots-ok`` flag, to allow building eggs from
|
|
|
|
projects installed using ``setup.py develop``.
|
|
|
|
* Fixed not HTML-decoding URLs scraped from web pages
|
|
|
|
* Fri Feb 16 2007 cthiel@suse.de
|
|
|
|
- initial package (version 0.6c5)
|