python-setuptools/python-setuptools.spec
Sascha Peilicke 54322c59fb - Update to version 1.1.6:
+ Distribute #349: ``sandbox.execfile`` now opens the target file in binary
    mode, thus honoring a BOM in the file when compiled.
- Changes from version 1.1.5:
  + Issue #69: Second attempt at fix (logic was reversed).
- Changes from version 1.1.4:
  + Issue #77: Fix error in upload command (Python 2.4).
- Changes from version 1.1.3:
  + Fix NameError in previous patch.
- Changes from version 1.1.2:
  + Issue #69: Correct issue where 404 errors are returned for URLs with
    fragments in them (such as #egg=).
- Changes from version 1.1.1:
  + Issue #75: Add ``--insecure`` option to ez_setup.py to accommodate
    environments where a trusted SSL connection cannot be validated.
  + Issue #76: Fix AttributeError in upload command with Python 2.4.
- Changes from version 1.1:
  + Issue #71 (Distribute #333): EasyInstall now puts less emphasis on the
    condition when a host is blocked via ``--allow-hosts``.
  + Issue #72: Restored Python 2.4 compatibility in ``ez_setup.py``.
- Changes from version 1.0:
  + Issue #60: On Windows, Setuptools supports deferring to another launcher,
    such as Vinay Sajip's `pylauncher <https://bitbucket.org/pypa/pylauncher>`_
    (included with Python 3.3) to launch console and GUI scripts and not install
    its own launcher executables. This experimental functionality is currently
    only enabled if  the ``SETUPTOOLS_LAUNCHER`` environment variable is set to
    "natural". In the future, this behavior may become default, but only after
    it has matured and seen substantial adoption. The ``SETUPTOOLS_LAUNCHER``
    also accepts "executable" to force the default behavior of creating launcher
    executables.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=50
2013-10-11 08:44:30 +00:00

94 lines
3.1 KiB
RPMSpec

#
# spec file for package python-setuptools
#
# Copyright (c) 2013 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/
#
Name: python-setuptools
Version: 1.1.6
Release: 0
Url: http://pypi.python.org/pypi/setuptools
Summary: Easily download, build, install, upgrade, and uninstall Python packages
License: Python-2.0 or ZPL-2.0
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
Source1: psfl.txt
Source2: zpl.txt
Patch1: setuptools-0.6c9-create-sitedir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
# needed for SLE
Requires: python
Requires(post): update-alternatives
Requires(postun): update-alternatives
# NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute
# obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
Provides: python-distribute = %{version}
Obsoletes: python-distribute < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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}
%patch1
find . -type f -name "*.orig" -delete
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm %{buildroot}%{_bindir}/easy_install
ln -s %{_bindir}/easy_install-%{py_ver} %{buildroot}%{_bindir}/easy_install
%check
python setup.py test
%pre
# Since /usr/bin/easy_install became ghosted to be used with update-alternatives,
# we have to get rid of the old binary:
[[ ! -L %{_bindir}/easy_install ]] && rm -f %{_bindir}/easy_install
exit 0
%post
update-alternatives \
--install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20
%preun
if [ $1 -eq 0 ] ; then
update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver}
fi
%files
%defattr(-,root,root,-)
%doc CHANGES.txt README.txt
%ghost %{_bindir}/easy_install
%{_bindir}/easy_install-%{py_ver}
%{python_sitelib}/_markerlib
%{python_sitelib}/setuptools
%{python_sitelib}/setuptools-%{version}-py%{py_ver}.egg-info
%python_sitelib/easy_install.py*
%python_sitelib/pkg_resources.py*
%changelog