python-setuptools/python-setuptools.spec

127 lines
4.2 KiB
RPMSpec
Raw Normal View History

#
# 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
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
%if 0%{?suse_version} >= 1110
BuildRequires: python-base
%else
BuildRequires: python-devel
Requires: python-devel
%endif
%if 0%{?suse_version} <= 1110
%else
BuildArch: noarch
%endif
Version: 0.6c9
Release: 10
Summary: Download, build, install, upgrade, and uninstall Python packages -- easily!
Group: Development/Libraries/Python
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
Patch1: python-setuptools-distutils-log.diff
Patch2: setuptools-0.6c9-create-sitedir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%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.
Authors:
--------
Phillip J. Eby <distutils-sig@python.org>
%prep
%setup -q -n setuptools-%{version}
%patch1 -p0
%patch2
chmod -x *.txt
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
%build
export CFLAGS="$RPM_OPT_FLAGS"
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build \
--prefix=%{_prefix} \
--root $RPM_BUILD_ROOT \
--single-version-externally-managed
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
find $RPM_BUILD_ROOT%{py_sitedir} -name '*.exe' | xargs rm -f
find $RPM_BUILD_ROOT%{py_sitedir} -name '*.txt' | xargs chmod -x
chmod +x $RPM_BUILD_ROOT%{py_sitedir}/setuptools/command/easy_install.py
%if 0%{?suse_version} > 1020
%fdupes $RPM_BUILD_ROOT%{py_sitedir}
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc *.txt
%{_bindir}/*
%{py_sitedir}/*
%changelog
* 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]
* 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)