|
|
41b54b7 |
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
|
|
|
a164d4d |
%global with_python3 1
|
|
|
41b54b7 |
%else
|
|
|
16cfaec |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
|
41b54b7 |
%endif
|
|
|
e1be309 |
|
|
|
e1be309 |
%global srcname distribute
|
|
|
9eb4e2d |
|
|
|
9eb4e2d |
Name: python-setuptools
|
|
|
2f152e5 |
Version: 0.6.24
|
|
|
ab8f0e6 |
Release: 1%{?dist}
|
|
|
613f26d |
Summary: Easily build and distribute Python packages
|
|
|
9eb4e2d |
|
|
|
6f21ed3 |
Group: Applications/System
|
|
|
6f21ed3 |
License: Python or ZPLv2.0
|
|
|
e1be309 |
URL: http://pypi.python.org/pypi/%{srcname}
|
|
|
e1be309 |
Source0: http://pypi.python.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
af65ae5 |
Source1: psfl.txt
|
|
|
af65ae5 |
Source2: zpl.txt
|
|
|
9eb4e2d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
9eb4e2d |
|
|
|
9eb4e2d |
BuildArch: noarch
|
|
|
777077a |
BuildRequires: python2-devel
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
41b54b7 |
BuildRequires: python3-devel
|
|
|
41b54b7 |
%endif # if with_python3
|
|
|
9eb4e2d |
|
|
|
16cfaec |
# Legacy: We removed this subpackage once easy_install no longer depended on
|
|
|
16cfaec |
# python-devel
|
|
|
16cfaec |
Provides: python-setuptools-devel = %{version}-%{release}
|
|
|
becc145 |
Obsoletes: python-setuptools-devel < 0.6.7-1
|
|
|
16cfaec |
|
|
|
1983a88 |
# Provide this since some people will request distribute by name
|
|
|
1983a88 |
Provides: python-distribute = %{version}-%{release}
|
|
|
1983a88 |
|
|
|
6f21ed3 |
%description
|
|
|
613f26d |
Setuptools is a collection of enhancements to the Python distutils that allow
|
|
|
6f21ed3 |
you to more easily build and distribute Python packages, especially ones that
|
|
|
6f21ed3 |
have dependencies on other packages.
|
|
|
6f21ed3 |
|
|
|
6f21ed3 |
This package contains the runtime components of setuptools, necessary to
|
|
|
6f21ed3 |
execute the software that requires pkg_resources.py.
|
|
|
6f21ed3 |
|
|
|
957130b |
This package contains the distribute fork of setuptools.
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
41b54b7 |
%package -n python3-setuptools
|
|
|
41b54b7 |
Summary: Easily build and distribute Python 3 packages
|
|
|
41b54b7 |
Group: Applications/System
|
|
|
41b54b7 |
|
|
|
41b54b7 |
%description -n python3-setuptools
|
|
|
41b54b7 |
Setuptools is a collection of enhancements to the Python 3 distutils that allow
|
|
|
41b54b7 |
you to more easily build and distribute Python 3 packages, especially ones that
|
|
|
41b54b7 |
have dependencies on other packages.
|
|
|
41b54b7 |
|
|
|
41b54b7 |
This package contains the runtime components of setuptools, necessary to
|
|
|
41b54b7 |
execute the software that requires pkg_resources.py.
|
|
|
957130b |
|
|
|
957130b |
This package contains the distribute fork of setuptools.
|
|
|
41b54b7 |
%endif # with_python3
|
|
|
41b54b7 |
|
|
|
9eb4e2d |
%prep
|
|
|
e1be309 |
%setup -q -n %{srcname}-%{version}
|
|
|
62f00c4 |
|
|
|
5a12225 |
find -name '*.txt' | xargs chmod -x
|
|
|
1983a88 |
find . -name '*.orig' -exec rm \{\} \;
|
|
|
5cd637b |
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
bf51ace |
rm -rf %{py3dir}
|
|
|
41b54b7 |
cp -a . %{py3dir}
|
|
|
41b54b7 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
41b54b7 |
%endif # with_python3
|
|
|
41b54b7 |
|
|
|
41b54b7 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
|
|
9eb4e2d |
|
|
|
9eb4e2d |
%build
|
|
|
2f152e5 |
|
|
|
9eb4e2d |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
9eb4e2d |
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
41b54b7 |
pushd %{py3dir}
|
|
|
41b54b7 |
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
41b54b7 |
popd
|
|
|
41b54b7 |
%endif # with_python3
|
|
|
5cd637b |
|
|
|
41b54b7 |
%install
|
|
|
41b54b7 |
rm -rf %{buildroot}
|
|
|
6f21ed3 |
|
|
|
41b54b7 |
# Must do the python3 install first because the scripts in /usr/bin are
|
|
|
41b54b7 |
# overwritten with every setup.py install (and we want the python2 version
|
|
|
41b54b7 |
# to be the default for now).
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
41b54b7 |
pushd %{py3dir}
|
|
|
777077a |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
41b54b7 |
|
|
|
41b54b7 |
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|
|
41b54b7 |
|
|
|
41b54b7 |
install -p -m 0644 %{SOURCE1} %{SOURCE2} %{py3dir}
|
|
|
41b54b7 |
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
|
|
41b54b7 |
chmod +x %{buildroot}%{python3_sitelib}/setuptools/command/easy_install.py
|
|
|
41b54b7 |
popd
|
|
|
41b54b7 |
%endif # with_python3
|
|
|
6f21ed3 |
|
|
|
777077a |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
6f21ed3 |
|
|
|
29bf732 |
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
|
|
|
6f21ed3 |
|
|
|
47099cd |
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
|
|
|
41b54b7 |
find %{buildroot}%{python_sitelib} -name '*.exe' | xargs rm -f
|
|
|
41b54b7 |
chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
|
|
|
41b54b7 |
|
|
|
41b54b7 |
%check
|
|
|
41b54b7 |
%{__python} setup.py test
|
|
|
5cd637b |
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
41b54b7 |
pushd %{py3dir}
|
|
|
41b54b7 |
%{__python3} setup.py test
|
|
|
41b54b7 |
popd
|
|
|
41b54b7 |
%endif # with_python3
|
|
|
9eb4e2d |
|
|
|
9eb4e2d |
%clean
|
|
|
29bf732 |
rm -rf %{buildroot}
|
|
|
9eb4e2d |
|
|
|
5cd637b |
|
|
|
9eb4e2d |
%files
|
|
|
9eb4e2d |
%defattr(-,root,root,-)
|
|
|
1983a88 |
%doc *.txt docs
|
|
|
79e1104 |
%{python_sitelib}/*
|
|
|
41b54b7 |
%{_bindir}/easy_install
|
|
|
12348a2 |
%{_bindir}/easy_install-2.*
|
|
|
5cd637b |
|
|
|
a3c3519 |
%if 0%{?with_python3}
|
|
|
41b54b7 |
%files -n python3-setuptools
|
|
|
41b54b7 |
%defattr(-,root,root,-)
|
|
|
41b54b7 |
%doc psfl.txt zpl.txt docs
|
|
|
41b54b7 |
%{python3_sitelib}/*
|
|
|
12348a2 |
%{_bindir}/easy_install-3.*
|
|
|
41b54b7 |
%endif # with_python3
|
|
|
9eb4e2d |
|
|
|
9eb4e2d |
%changelog
|
|
|
2f152e5 |
* Mon Oct 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.24-1
|
|
|
2f152e5 |
- Upstream bugfix
|
|
|
2f152e5 |
- Compile the win32 launcher binary using mingw
|
|
|
2f152e5 |
|
|
|
2f152e5 |
* Sun Aug 21 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.21-1
|
|
|
efecd02 |
- Upstream bugfix release
|
|
|
efecd02 |
|
|
|
2f152e5 |
* Thu Jul 14 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.19-1
|
|
|
ab8f0e6 |
- Upstream bugfix release
|
|
|
ab8f0e6 |
|
|
|
8e9734f |
* Tue Feb 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-7
|
|
|
8e9734f |
- Switch to patch that I got in to upstream
|
|
|
8e9734f |
|
|
|
d9f5a2d |
* Tue Feb 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-6
|
|
|
4649b90 |
- Fix build on python-3.2
|
|
|
4649b90 |
|
|
|
1caf2b4 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.14-5
|
|
|
1caf2b4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
1caf2b4 |
|
|
|
50fa7ba |
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-4
|
|
|
50fa7ba |
- rebuild with python3.2
|
|
|
50fa7ba |
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
50fa7ba |
|
|
|
957130b |
* Tue Aug 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-3
|
|
|
957130b |
- Update description to mention this is distribute
|
|
|
957130b |
|
|
|
ccbd844 |
* Thu Jul 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-2
|
|
|
ccbd844 |
- bump for building against python 2.7
|
|
|
ccbd844 |
|
|
|
dc62950 |
* Thu Jul 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-1
|
|
|
dc62950 |
- update to new version
|
|
|
dc62950 |
- all patches are upsteam
|
|
|
dc62950 |
|
|
|
12348a2 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.13-7
|
|
|
12348a2 |
- generalize path of easy_install-2.6 and -3.1 to -2.* and -3.*
|
|
|
12348a2 |
|
|
|
cfc2baf |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.13-6
|
|
|
cfc2baf |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
cfc2baf |
|
|
|
1983a88 |
* Sat Jul 3 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-5
|
|
|
1983a88 |
- Upstream patch for compatibility problem with setuptools
|
|
|
1983a88 |
- Minor spec cleanups
|
|
|
1983a88 |
- Provide python-distribute for those who see an import distribute and need
|
|
|
1983a88 |
to get the proper package.
|
|
|
1983a88 |
|
|
|
0b8aaaa |
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-4
|
|
|
0b8aaaa |
- Fix race condition in unittests under the python-2.6.x on F-14.
|
|
|
0b8aaaa |
|
|
|
29bf732 |
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-3
|
|
|
29bf732 |
- Fix few more buildroot macros
|
|
|
29bf732 |
|
|
|
62f00c4 |
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-2
|
|
|
62f00c4 |
- Include data that's needed for running tests
|
|
|
62f00c4 |
|
|
|
777077a |
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-1
|
|
|
777077a |
- Update to upstream 0.6.13
|
|
|
777077a |
- Minor specfile formatting fixes
|
|
|
777077a |
|
|
|
41002be |
* Thu Feb 04 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-3
|
|
|
41002be |
- First build with python3 support enabled.
|
|
|
41002be |
|
|
|
a3c3519 |
* Thu Jan 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-2
|
|
|
a3c3519 |
- Really disable the python3 portion
|
|
|
a3c3519 |
|
|
|
41b54b7 |
* Thu Jan 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-1
|
|
|
41b54b7 |
- Update the python3 portions but disable for now.
|
|
|
41b54b7 |
- Update to 0.6.10
|
|
|
41b54b7 |
- Remove %%pre scriptlet as the file has a different name than the old
|
|
|
41b54b7 |
package's directory
|
|
|
41b54b7 |
|
|
|
41b54b7 |
* Tue Jan 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.9-4
|
|
|
41b54b7 |
- Fix install to make /usr/bin/easy_install the py2 version
|
|
|
41b54b7 |
- Don't need python3-tools since the library is now in the python3 package
|
|
|
41b54b7 |
- Few other changes to cleanup style
|
|
|
41b54b7 |
|
|
|
41b54b7 |
* Thu Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.9-2
|
|
|
41b54b7 |
- add python3 subpackage
|
|
|
41b54b7 |
|
|
|
6e1ff0c |
* Mon Dec 14 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.9-1
|
|
|
6e1ff0c |
- New upstream bugfix release.
|
|
|
6e1ff0c |
|
|
|
ab5df01 |
* Sun Dec 13 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.8-2
|
|
|
ab5df01 |
- Test rebuild
|
|
|
ab5df01 |
|
|
|
42e5fe4 |
* Mon Nov 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.8-1
|
|
|
42e5fe4 |
- Update to 0.6.8.
|
|
|
42e5fe4 |
- Fix directory => file transition when updating from setuptools-0.6c9.
|
|
|
42e5fe4 |
|
|
|
becc145 |
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-2
|
|
|
becc145 |
- Fix duplicate inclusion of files.
|
|
|
becc145 |
- Only Obsolete old versions of python-setuptools-devel
|
|
|
becc145 |
|
|
|
16cfaec |
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-1
|
|
|
16cfaec |
- Move easy_install back into the main package as the needed files have been
|
|
|
16cfaec |
moved from python-devel to the main python package.
|
|
|
16cfaec |
- Update to 0.6.7 bugfix.
|
|
|
16cfaec |
|
|
|
875dd74 |
* Fri Oct 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.6-1
|
|
|
875dd74 |
- Upstream bugfix release.
|
|
|
875dd74 |
|
|
|
e1be309 |
* Mon Oct 12 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
|
|
|
e1be309 |
- First build from the distribute codebase -- distribute-0.6.4.
|
|
|
e1be309 |
- Remove svn patch as upstream has chosen to go with an easier change for now.
|
|
|
e1be309 |
|
|
|
03aa0df |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-5
|
|
|
03aa0df |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
03aa0df |
|
|
|
66503d5 |
* Tue Jul 14 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c9-4
|
|
|
66503d5 |
- Apply SVN-1.6 versioning patch (rhbz #511021)
|
|
|
66503d5 |
|
|
|
6a010e7 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-3
|
|
|
6a010e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
6a010e7 |
|
|
|
aecc89b |
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6c9-2
|
|
|
aecc89b |
- Rebuild for Python 2.6
|
|
|
aecc89b |
|
|
|
613f26d |
* Sun Nov 23 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c9-1
|
|
|
613f26d |
- Update to 0.6c9
|
|
|
613f26d |
- Small fixes to URL, summary and description
|
|
|
613f26d |
|
|
|
5a12225 |
* Sat Jun 21 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c8-1
|
|
|
5a12225 |
- Update to 0.6c8
|
|
|
5a12225 |
- Accept small tweaks from Gareth Armstrong
|
|
|
5a12225 |
|
|
|
23fa8b3 |
* Mon Sep 24 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c7-2
|
|
|
23fa8b3 |
- Move pretty much everything back into runtime in order to avoid more
|
|
|
23fa8b3 |
brokenness than we're trying to address with these fixes.
|
|
|
23fa8b3 |
|
|
|
79e1104 |
* Fri Sep 14 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c7-1
|
|
|
79e1104 |
- Upstream 0.6c7
|
|
|
79e1104 |
- Move some things from devel into runtime, in order to not break other
|
|
|
79e1104 |
projects.
|
|
|
79e1104 |
|
|
|
6f21ed3 |
* Sat Aug 18 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c6-2
|
|
|
6f21ed3 |
- Make license tag conform to the new Licensing Guidelines
|
|
|
6f21ed3 |
- Move everything except pkg_resources.py into a separate -devel package
|
|
|
6f21ed3 |
so we avoid bundling python-devel when it's not required (#251645)
|
|
|
6f21ed3 |
- Do not package tests
|
|
|
6f21ed3 |
|
|
|
918cf6a |
* Sun Jun 10 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c6-1
|
|
|
918cf6a |
- Upstream 0.6c6
|
|
|
918cf6a |
- Require python-devel (#240707)
|
|
|
918cf6a |
|
|
|
60dc427 |
* Sun Jan 28 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c5-1
|
|
|
60dc427 |
- Upstream 0.6c5 (known bugs, but the promised 0.6c6 is taking too long)
|