|
@@ -1,31 +1,27 @@
|
|
%bcond_without bootstrap
|
|
%bcond_without bootstrap
|
|
-%bcond_without python3
|
|
|
|
|
|
|
|
%global srcname setuptools
|
|
%global srcname setuptools
|
|
%define _unpackaged_files_terminate_build 1
|
|
%define _unpackaged_files_terminate_build 1
|
|
|
|
|
|
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
|
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
|
-%if %{with python3}
|
|
|
|
%global python3_wheelname %python_wheelname
|
|
%global python3_wheelname %python_wheelname
|
|
%global python3_record %{python3_sitelib}/%{srcname}-%{version}.dist-info/RECORD
|
|
%global python3_record %{python3_sitelib}/%{srcname}-%{version}.dist-info/RECORD
|
|
-%endif
|
|
|
|
|
|
|
|
Name: python-setuptools
|
|
Name: python-setuptools
|
|
-Version: 49.6.0
|
|
+Version: 53.0.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: Download, build, install, upgrade, and uninstall Python packages
|
|
Summary: Download, build, install, upgrade, and uninstall Python packages
|
|
Summary(ja): Python パッケージのダウンロード、ビルド、インストール、アップグレードおよびアンインストール用ツール
|
|
Summary(ja): Python パッケージのダウンロード、ビルド、インストール、アップグレードおよびアンインストール用ツール
|
|
Group: programming
|
|
Group: programming
|
|
License: PSFL/ZPL
|
|
License: PSFL/ZPL
|
|
URL: https://pypi.python.org/pypi/setuptools
|
|
URL: https://pypi.python.org/pypi/setuptools
|
|
-Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.zip
|
|
+Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
Source1: psfl.txt
|
|
Source1: psfl.txt
|
|
Source2: zpl.txt
|
|
Source2: zpl.txt
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python-rpm-macros
|
|
-%if %{with python3}
|
|
|
|
BuildRequires: python3
|
|
BuildRequires: python3
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-rpm-macros
|
|
BuildRequires: python3-rpm-macros
|
|
@@ -33,7 +29,6 @@ BuildRequires: python3-rpm-macros
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-wheel
|
|
%endif # without bootstrap
|
|
%endif # without bootstrap
|
|
-%endif # with python3
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
setuptools is a collection of enhancements to the Python distutils that allow
|
|
setuptools is a collection of enhancements to the Python distutils that allow
|
|
@@ -47,7 +42,6 @@ setuptools は Python distutils の拡張機能を集めたツールです。
|
|
です。
|
|
です。
|
|
|
|
|
|
|
|
|
|
-%if %{with python3}
|
|
|
|
%package -n python3-setuptools
|
|
%package -n python3-setuptools
|
|
Summary: Download, build, install, upgrade, and uninstall Python3 packages
|
|
Summary: Download, build, install, upgrade, and uninstall Python3 packages
|
|
Summary(ja): Python3 パッケージのダウンロード、ビルド、インストール、アップグレードおよびアンインストール用ツール
|
|
Summary(ja): Python3 パッケージのダウンロード、ビルド、インストール、アップグレードおよびアンインストール用ツール
|
|
@@ -64,7 +58,6 @@ setuptools は Python distutils の拡張機能を集めたツールです。
|
|
このツールにより Python パッケージの構築や配布が簡単に行えるように
|
|
このツールにより Python パッケージの構築や配布が簡単に行えるように
|
|
なります。特に他のパッケージに依存しているパッケージを扱う際に便利
|
|
なります。特に他のパッケージに依存しているパッケージを扱う際に便利
|
|
です。
|
|
です。
|
|
-%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
@@ -90,13 +83,11 @@ rm -f setuptools/*.exe
|
|
rm setuptools/tests/test_integration.py
|
|
rm setuptools/tests/test_integration.py
|
|
|
|
|
|
%build
|
|
%build
|
|
-%if %{with python3}
|
|
|
|
%if %{without bootstrap}
|
|
%if %{without bootstrap}
|
|
%py3_build_wheel
|
|
%py3_build_wheel
|
|
%else
|
|
%else
|
|
%py3_build
|
|
%py3_build
|
|
%endif
|
|
%endif
|
|
-%endif # with python3
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -104,18 +95,14 @@ rm -rf %{buildroot}
|
|
# Must do the python3 install first because the scripts in /usr/bin are
|
|
# Must do the python3 install first because the scripts in /usr/bin are
|
|
# overwritten with every setup.py install (and we want the python2 version to
|
|
# overwritten with every setup.py install (and we want the python2 version to
|
|
# be the default for now).
|
|
# be the default for now).
|
|
-%if %{with python3}
|
|
|
|
%if %{without bootstrap}
|
|
%if %{without bootstrap}
|
|
%py3_install_wheel %{python3_wheelname}
|
|
%py3_install_wheel %{python3_wheelname}
|
|
-
|
|
|
|
-# Remove /usr/bin/easy_install from the record as later on we delete the file
|
|
|
|
-sed -i '/\/usr\/bin\/easy_install,/d' %{buildroot}%{python3_record}
|
|
|
|
%else
|
|
%else
|
|
%py3_install
|
|
%py3_install
|
|
%endif
|
|
%endif
|
|
|
|
|
|
# TODO: we have to remove this by hand now, but it'd be nice if we wouldn't have to
|
|
# TODO: we have to remove this by hand now, but it'd be nice if we wouldn't have to
|
|
-rm %{buildroot}%{_bindir}/easy_install
|
|
+rm -f %{buildroot}%{_bindir}/easy_install
|
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|
%if %{without bootstrap}
|
|
%if %{without bootstrap}
|
|
@@ -123,49 +110,38 @@ sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
|
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
|
-%endif # with python3
|
|
|
|
|
|
|
|
# Don't ship these
|
|
# Don't ship these
|
|
-rm -r docs/{Makefile,conf.py,_*}
|
|
+rm -rf docs/{Makefile,conf.py,_*}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
-%if %{with python3}
|
|
|
|
%pre -n python3-setuptools
|
|
%pre -n python3-setuptools
|
|
if [ ! -L %{_bindir}/easy_install ]; then
|
|
if [ ! -L %{_bindir}/easy_install ]; then
|
|
rm -f %{_bindir}/easy_install
|
|
rm -f %{_bindir}/easy_install
|
|
fi
|
|
fi
|
|
-
|
|
+if [ -x %{_bindir}/easy_install-3.8 ]; then
|
|
-%post -n python3-setuptools
|
|
|
|
-/sbin/update-alternatives \
|
|
|
|
- --install %{_bindir}/easy_install easy_install \
|
|
|
|
- %{_bindir}/easy_install-%{python3_version} %{python3_version_nodots}
|
|
|
|
-
|
|
|
|
-%preun -n python3-setuptools
|
|
|
|
-if [ "$1" = "0" ]; then
|
|
|
|
/sbin/update-alternatives \
|
|
/sbin/update-alternatives \
|
|
--remove easy_install %{_bindir}/easy_install-%{python3_version}
|
|
--remove easy_install %{_bindir}/easy_install-%{python3_version}
|
|
fi
|
|
fi
|
|
-%endif
|
|
|
|
|
|
|
|
-%if %{with python3}
|
|
+
|
|
%files -n python3-setuptools
|
|
%files -n python3-setuptools
|
|
%license LICENSE
|
|
%license LICENSE
|
|
%doc docs/* CHANGES.rst README.rst
|
|
%doc docs/* CHANGES.rst README.rst
|
|
-%{python3_sitelib}/easy_install.py
|
|
|
|
%{python3_sitelib}/distutils-precedence.pth
|
|
%{python3_sitelib}/distutils-precedence.pth
|
|
%{python3_sitelib}/pkg_resources/
|
|
%{python3_sitelib}/pkg_resources/
|
|
%{python3_sitelib}/setuptools*/
|
|
%{python3_sitelib}/setuptools*/
|
|
-%{python3_sitelib}/__pycache__/*
|
|
|
|
%{python3_sitelib}/_distutils_hack
|
|
%{python3_sitelib}/_distutils_hack
|
|
-%{_bindir}/easy_install-3*
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 53.0.0-1
|
|
|
|
+- updated to 53.0.0.
|
|
|
|
+
|
|
* Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 49.6.0-1
|
|
* Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 49.6.0-1
|
|
- updated to 49.6.0.
|
|
- updated to 49.6.0.
|
|
- built with python3 only.
|
|
- built with python3 only.
|