forked from pool/python-setuptools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=20
This commit is contained in:
committed by
Git OBS Bridge
parent
0a163e215c
commit
bbf4e3422d
@@ -1,126 +1,100 @@
|
||||
%define modname setuptools
|
||||
Name: python-%{modname}
|
||||
URL: http://peak.telecommunity.com/DevCenter/setuptools
|
||||
Summary: Download, build, install, upgrade, and uninstall Python packages -- easily!
|
||||
Version: 0.6
|
||||
%define extraver c8
|
||||
Release: 1
|
||||
License: PSF or ZPL
|
||||
Group: Development/Libraries/Python
|
||||
Source: http://cheeseshop.python.org/packages/source/s/setuptools/%{modname}-%{version}%{extraver}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
%{py_requires}
|
||||
Requires: python-devel
|
||||
#
|
||||
# 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
|
||||
BuildRequires: python-devel
|
||||
Version: 0.6c8
|
||||
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
|
||||
%py_requires
|
||||
|
||||
%description
|
||||
setuptools is a collection of enhancements to the Python distutils (for Python
|
||||
2.3 and up) that allow you to more easily build and distribute Python
|
||||
packages, especially ones that have dependencies on other packages.
|
||||
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 <peak@eby-sarna.com>
|
||||
Phillip J. Eby <distutils-sig@python.org>
|
||||
|
||||
%prep
|
||||
|
||||
%setup -q -n %{modname}-%{version}%{extraver}
|
||||
find . -name "*.txt" -exec chmod -v 644 {} ";"
|
||||
%setup -q -n setuptools-%{version}
|
||||
chmod -x *.txt
|
||||
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
||||
|
||||
%build
|
||||
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
%{__python} setup.py build
|
||||
|
||||
%install
|
||||
|
||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES
|
||||
%{__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
|
||||
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%defattr(-,root,root)
|
||||
%doc EasyInstall.txt api_tests.txt pkg_resources.txt setuptools.txt
|
||||
%exclude %{py_sitedir}/setuptools/*.exe
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc *.txt
|
||||
%{_bindir}/*
|
||||
%{py_sitedir}/*
|
||||
|
||||
%changelog
|
||||
|
||||
* Wed May 21 2008 - James Oakley <jfunk@funktronics.ca> - 0.6-1
|
||||
- Update to 0.6c8
|
||||
- Fixed a missing files problem when using Windows source distributions on
|
||||
non-Windows platforms, due to distutils not handling manifest file line
|
||||
endings correctly
|
||||
- Updated Pyrex support to work with Pyrex 0.9.6 and higher
|
||||
- Minor changes for Jython compatibility
|
||||
- Fixed not installing eggs in install_requires if they were also used for
|
||||
setup_requires or tests_require
|
||||
- Fixed not fetching eggs in install_requires when running tests
|
||||
- Allow ez_setup.use_setuptools() to upgrade existing setuptools
|
||||
installations when called from a standalone setup.py
|
||||
- Added a warning if a namespace package is declared, but its parent package
|
||||
is not also declared as a namespace
|
||||
|
||||
* Tue Oct 23 2007 - James Oakley <jfunk@funktronics.ca> - 0.6-1
|
||||
- Update to 0.6c7
|
||||
- Fixed distutils.filelist.findall() crashing on broken symlinks, and
|
||||
egg_info command failing on new, uncommitted SVN directories
|
||||
- Fix import problems with nested namespace packages installed via --root or
|
||||
--single-version-externally-managed, due to the parent package not having
|
||||
the child package as an attribute
|
||||
|
||||
* Sun Jan 28 2007 - judas_iscariote@shorewall.net
|
||||
- update to version 0.6c5
|
||||
|
||||
* Fri Oct 27 2006 - poeml@suse.de
|
||||
|
||||
- update to 0.6c3:
|
||||
- Fixed breakages caused by Subversion 1.4's new "working copy"
|
||||
format
|
||||
- The ez_setup module displays the conflicting version of
|
||||
setuptools (and its installation location) when a script
|
||||
requests a version that's not available.
|
||||
- Running setup.py develop on a setuptools-using project will now
|
||||
install setuptools if needed, instead of only downloading the
|
||||
egg.
|
||||
- Fixed AttributeError when trying to download a setup_requires
|
||||
dependency when a distribution lacks a dependency_links
|
||||
setting.
|
||||
- Made zip-safe and not-zip-safe flag files contain a single
|
||||
byte, so as to play better with packaging tools that complain
|
||||
about zero-length files.
|
||||
- Made setup.py develop respect the --no-deps option, which it
|
||||
previously was ignoring.
|
||||
- Support extra_path option to setup() when install is run in
|
||||
backward-compatibility mode.
|
||||
- Source distributions now always include a setup.cfg file that
|
||||
explicitly sets egg_info options such that they produce an
|
||||
identical version number to the source distribution's version
|
||||
number. (Previously, the default version number could be
|
||||
different due to the use of --tag-date, or if the version was
|
||||
overridden on the command line that built the source
|
||||
distribution.)
|
||||
- Fix register not obeying name/version set by egg_info command,
|
||||
if egg_info wasn't explicitly run first on the same command
|
||||
line.
|
||||
- Added --no-date and --no-svn-revision options to egg_info
|
||||
command, to allow suppressing tags configured in setup.cfg.
|
||||
- Fixed redundant warnings about missing README file(s); it
|
||||
should now appear only if you are actually a source
|
||||
distribution.
|
||||
|
||||
* Tue Jul 04 2006 - James Oakley <jfunk@funktronics.ca> - 0.6-5
|
||||
- Requires python-devel at runtime
|
||||
|
||||
* Fri Jun 23 2006 - James Oakley <jfunk@funktronics.ca> - 0.6-4
|
||||
- No longer need pth kludge
|
||||
|
||||
* Thu Jun 22 2006 - James Oakley <jfunk@funktronics.ca> - 0.6-3
|
||||
- Update
|
||||
|
||||
* Thu Oct 13 2005 - James Oakley <jfunk@funktronics.ca> - 0.6-ft.2
|
||||
- Create a pth file
|
||||
|
||||
* Thu Oct 13 2005 - James Oakley <jfunk@funktronics.ca> - 0.6-ft.1
|
||||
- Initial release
|
||||
* 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)
|
||||
|
Reference in New Issue
Block a user