File python-setuptools.spec of Package python-setuptools

#
# spec file for package python-setuptools (Version 0.6c6)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           python-setuptools
BuildRequires:  python-devel
Version:        0.6c6
Release:        1
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-devel
%if 0%{?suse_version}
%py_requires
%endif
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?py_sitedir: %define py_sitedir %{python_sitelib}}

%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}
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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc *.txt
%{_bindir}/*
%{py_sitedir}/*

%changelog
* 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)
openSUSE Build Service is sponsored by