From 63c65e0ea61b5fe4cdda3558f8a36bd46dcc1a89 Mon Sep 17 00:00:00 2001 From: dogsheng <960055655@qq.com> Date: Fri, 13 Dec 2019 16:04:24 +0800 Subject: [PATCH] Package init --- python-pip.spec | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/python-pip.spec b/python-pip.spec index 2252559..d7259c4 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -7,7 +7,7 @@ pip is the package installer for Python. You can use pip to install packages fro %global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d}) Name: python-%{srcname} Version: 18.0 -Release: 9 +Release: 11 Summary: A tool for installing and managing Python packages License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD) URL: http://www.pip-installer.org @@ -34,7 +34,7 @@ Obsoletes: %{name}-wheel < %{version}-%{release} %endif %package -n python%{python3_pkgversion}-%{srcname} -Summary: %{summary} +Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools bash-completion ca-certificates Requires: python%{python3_pkgversion}-setuptools ca-certificates BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel @@ -45,6 +45,13 @@ Obsoletes: %{name}-wheel < %{version}-%{release} %package_help +%package wheel +Summary: The pip wheel +Requires: ca-certificates + +%description wheel +A Python wheel of pip to use with venv + %prep %autosetup -n %{srcname}-%{version} -p1 @@ -121,8 +128,6 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} %{bashcompdir}/pip %{bashcompdir}/pip2* %dir %(dirname %{bashcompdir}) -%dir %{python_wheeldir}/ -%{python_wheeldir}/%{python_wheelname} %endif %files -n python%{python3_pkgversion}-%{srcname} @@ -133,13 +138,25 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} %dir %{bashcompdir} %{bashcompdir}/pip3* %dir %(dirname %{bashcompdir}) -%dir %{python_wheeldir}/ -%{python_wheeldir}/%{python_wheelname} %files help %doc README.rst +%files wheel +%license LICENSE.txt +%dir %{python_wheeldir}/ +%{python_wheeldir}/%{python_wheelname} + %changelog +* Sat Nov 16 2019 huzhiyu - 18.0-11 +- fix ca-certificate bad requires + +* Fri Oct 15 2019 lvying - 18.0-10 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: split same wheel file from python2-pip and python3-pip + * Sun Sep 29 2019 yefei - 18.0-9 - Type:enhancement - ID:NA