Package init
This commit is contained in:
parent
daeabfff97
commit
63c65e0ea6
@ -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 <huzhiyu1@huawei.com> - 18.0-11
|
||||
- fix ca-certificate bad requires
|
||||
|
||||
* Fri Oct 15 2019 lvying<lvying6@huawei.com> - 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 <yefei25@huawei.com> - 18.0-9
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user