|
@@ -1,14 +1,10 @@
|
|
%bcond_with bootstrap
|
|
%bcond_with bootstrap
|
|
-%bcond_without python2
|
|
|
|
%bcond_without python3
|
|
%bcond_without python3
|
|
|
|
|
|
%global srcname pip
|
|
%global srcname pip
|
|
|
|
|
|
-%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
|
|
|
|
|
+%global python_wheelname %{srcname}-%{version}-py3-none-any.whl
|
|
%if %{without bootstrap}
|
|
%if %{without bootstrap}
|
|
-%if %{with python2}
|
|
|
|
-%global python2_wheelname %python_wheelname
|
|
|
|
-%endif
|
|
|
|
%if %{with python3}
|
|
%if %{with python3}
|
|
%global python3_wheelname %python_wheelname
|
|
%global python3_wheelname %python_wheelname
|
|
%endif
|
|
%endif
|
|
@@ -17,7 +13,7 @@
|
|
Summary: Pip installs Python packages. An easy_install replacement
|
|
Summary: Pip installs Python packages. An easy_install replacement
|
|
Summary(ja): Pip は easy_install を置き換える Python パッケージインストーラです。
|
|
Summary(ja): Pip は easy_install を置き換える Python パッケージインストーラです。
|
|
Name: python-%{srcname}
|
|
Name: python-%{srcname}
|
|
-Version: 20.3.4
|
|
|
|
|
|
+Version: 21.3.1
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Group: programming
|
|
Group: programming
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -39,18 +35,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
|
-%if %{with python2}
|
|
|
|
-BuildRequires: python2-rpm-macros
|
|
|
|
-BuildRequires: python-devel
|
|
|
|
-BuildRequires: python-setuptools
|
|
|
|
-%if %{without bootstrap}
|
|
|
|
-BuildRequires: python-pip
|
|
|
|
-BuildRequires: python-wheel
|
|
|
|
-%endif
|
|
|
|
-Requires: python-setuptools
|
|
|
|
-Requires(post,postun): alternatives
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%if %{with python3}
|
|
%if %{with python3}
|
|
BuildRequires: python3-rpm-macros
|
|
BuildRequires: python3-rpm-macros
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-devel
|
|
@@ -88,14 +72,6 @@ Packages" or "Pip Installs Python".
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%if %{with python2}
|
|
|
|
-%if %{without bootstrap}
|
|
|
|
-%py_build_wheel
|
|
|
|
-%else
|
|
|
|
-%py_build
|
|
|
|
-%endif
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%if %{with python3}
|
|
%if %{with python3}
|
|
%if %{without bootstrap}
|
|
%if %{without bootstrap}
|
|
%py3_build_wheel
|
|
%py3_build_wheel
|
|
@@ -117,38 +93,11 @@ Packages" or "Pip Installs Python".
|
|
rm %{buildroot}%{_bindir}/pip
|
|
rm %{buildroot}%{_bindir}/pip
|
|
%endif # with python3
|
|
%endif # with python3
|
|
|
|
|
|
-%if %{with python2}
|
|
|
|
-%if %{without bootstrap}
|
|
|
|
-%py2_install_wheel %{python_wheelname}
|
|
|
|
-%else
|
|
|
|
-%py_install
|
|
|
|
-%endif
|
|
|
|
-rm %{buildroot}%{_bindir}/pip
|
|
|
|
-%endif # with python2
|
|
|
|
-
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
-%if %{with python2}
|
|
|
|
-%pre
|
|
|
|
-if [ ! -L %{_bindir}/%{srcname} ]; then
|
|
|
|
- rm -f %{_bindir}/%{srcname}
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-%post
|
|
|
|
-/sbin/update-alternatives \
|
|
|
|
- --install %{_bindir}/%{srcname} %{srcname} \
|
|
|
|
- %{_bindir}/%{srcname}%{python_version} %{python_version_nodots}
|
|
|
|
-
|
|
|
|
-%preun
|
|
|
|
-if [ "$1" = 0 ]; then
|
|
|
|
- /sbin/update-alternatives \
|
|
|
|
- --remove %{srcname} %{_bindir}/%{srcname}%{python_version}
|
|
|
|
-fi
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%if %{with python3}
|
|
%if %{with python3}
|
|
%pre -n python3-%{srcname}
|
|
%pre -n python3-%{srcname}
|
|
if [ ! -L %{_bindir}/%{srcname} ]; then
|
|
if [ ! -L %{_bindir}/%{srcname} ]; then
|
|
@@ -168,15 +117,6 @@ fi
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
-%if %{with python2}
|
|
|
|
-%files
|
|
|
|
-%defattr(-,root,root,-)
|
|
|
|
-%license LICENSE.txt
|
|
|
|
-%doc README.rst docs
|
|
|
|
-%attr(755,root,root) %{_bindir}/pip2*
|
|
|
|
-%{python_sitelib}/pip*
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%if %{with python3}
|
|
%if %{with python3}
|
|
%files -n python3-pip
|
|
%files -n python3-pip
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -188,6 +128,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Jan 25 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 21.3.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped python2 support.
|
|
|
|
+
|
|
* Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20.3.4-1
|
|
* Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20.3.4-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|