Browse Source

python-pip-21.3.1-1

Tomohiro "Tomo-p" KATO 2 years ago
parent
commit
ecd1cfe68b
1 changed files with 6 additions and 62 deletions
  1. 6 62
      p/python-pip/python-pip-vl.spec

+ 6 - 62
p/python-pip/python-pip-vl.spec

@@ -1,14 +1,10 @@
 %bcond_with bootstrap
-%bcond_without python2
 %bcond_without python3
 
 %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 %{with python2}
-%global python2_wheelname %python_wheelname
-%endif
 %if %{with python3}
 %global python3_wheelname %python_wheelname
 %endif
@@ -17,7 +13,7 @@
 Summary:        Pip installs Python packages.  An easy_install replacement
 Summary(ja):    Pip は easy_install を置き換える Python パッケージインストーラです。
 Name:           python-%{srcname}
-Version:        20.3.4
+Version:        21.3.1
 Release:        1%{?_dist_release}
 Group:          programming
 Vendor:         Project Vine
@@ -39,18 +35,6 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:      noarch
 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}
 BuildRequires:  python3-rpm-macros
 BuildRequires:  python3-devel
@@ -88,14 +72,6 @@ Packages" or "Pip Installs Python".
 
 
 %build
-%if %{with python2}
-%if %{without bootstrap}
-%py_build_wheel
-%else
-%py_build
-%endif
-%endif
-
 %if %{with python3}
 %if %{without bootstrap}
 %py3_build_wheel
@@ -117,38 +93,11 @@ Packages" or "Pip Installs Python".
 rm %{buildroot}%{_bindir}/pip
 %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
 %{__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}
 %pre -n python3-%{srcname}
 if [ ! -L %{_bindir}/%{srcname} ]; then
@@ -168,15 +117,6 @@ fi
 %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}
 %files -n python3-pip
 %defattr(-,root,root,-)
@@ -188,6 +128,10 @@ fi
 
 
 %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
 - new upstream release.