2008-09-17 19:43:14 +00:00
|
|
|
#
|
2011-09-23 07:04:42 +00:00
|
|
|
# spec file for package python-setuptools
|
2008-09-17 19:43:14 +00:00
|
|
|
#
|
2011-09-23 07:04:42 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-17 19:43:14 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-09-23 07:04:42 +00:00
|
|
|
#
|
2008-09-17 19:43:14 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
2009-07-31 21:49:32 +00: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-07-30 16:02:49 +00:00
|
|
|
|
2011-09-23 07:04:42 +00:00
|
|
|
%define mod_name setuptools
|
|
|
|
|
|
|
|
Name: python-%{mod_name}
|
|
|
|
Version: 0.6c11.99.r84273
|
|
|
|
Release: 0
|
|
|
|
Url: http://pypi.python.org/pypi/setuptools
|
2008-09-17 19:43:14 +00:00
|
|
|
Summary: Download, build, install, upgrade, and uninstall Python packages -- easily!
|
2011-09-23 07:04:42 +00:00
|
|
|
License: PSF or ZPL
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: %{mod_name}-0.6c12dev-r84273.tar.bz2
|
2008-09-17 19:43:14 +00:00
|
|
|
Source1: psfl.txt
|
|
|
|
Source2: zpl.txt
|
2009-11-04 17:59:19 +00:00
|
|
|
Patch1: setuptools-0.6c9-create-sitedir.patch
|
2008-09-17 19:43:14 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-23 07:04:42 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
%if 0%{?suse_version}
|
2008-09-17 19:43:14 +00:00
|
|
|
%py_requires
|
2011-09-23 07:04:42 +00:00
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
%endif
|
2006-10-27 12:17:57 +00:00
|
|
|
|
|
|
|
%description
|
2008-09-17 19:43:14 +00: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 12:17:57 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
2008-09-17 19:43:14 +00:00
|
|
|
Phillip J. Eby <distutils-sig@python.org>
|
2006-10-27 12:17:57 +00:00
|
|
|
|
|
|
|
%prep
|
2011-09-23 07:04:42 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%setup -q -n %{mod_name}-0.6c12dev-r84273
|
2009-11-04 17:59:19 +00:00
|
|
|
%patch1
|
2008-09-17 19:43:14 +00:00
|
|
|
chmod -x *.txt
|
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
2006-10-27 12:17:57 +00:00
|
|
|
|
|
|
|
%build
|
2007-06-13 08:31:39 +00:00
|
|
|
%{__python} setup.py build
|
2006-10-27 12:17:57 +00:00
|
|
|
|
|
|
|
%install
|
2011-09-23 07:04:42 +00:00
|
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES}
|
|
|
|
find %{buildroot}%{python_sitelib} -name '*.txt' -exec chmod -x {} ";"
|
|
|
|
chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
|
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
%fdupes %{buildroot}
|
2009-04-03 13:04:07 +00:00
|
|
|
%endif
|
2007-06-13 08:31:39 +00:00
|
|
|
|
2006-10-27 12:17:57 +00:00
|
|
|
%clean
|
2011-09-23 07:04:42 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-06-13 08:31:39 +00:00
|
|
|
|
2011-09-23 07:04:42 +00:00
|
|
|
%files %{?suse_version: -f INSTALLED_FILES}
|
2008-09-17 19:43:14 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-09-23 07:04:42 +00:00
|
|
|
%if 0%{!?suse_version:1}
|
|
|
|
%{_bindir}/easy_install*
|
|
|
|
%python_sitelib/%{mod_name}*
|
|
|
|
%python_sitelib/easy_install.py*
|
|
|
|
%python_sitelib/pkg_resources.py*
|
|
|
|
%python_sitelib/site.py*
|
|
|
|
%endif
|
2006-10-27 12:17:57 +00:00
|
|
|
|
|
|
|
%changelog
|