Package init

This commit is contained in:
dogsheng 2019-12-13 16:04:24 +08:00
parent daeabfff97
commit 63c65e0ea6

View File

@ -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}) %global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d})
Name: python-%{srcname} Name: python-%{srcname}
Version: 18.0 Version: 18.0
Release: 9 Release: 11
Summary: A tool for installing and managing Python packages 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) 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 URL: http://www.pip-installer.org
@ -34,7 +34,7 @@ Obsoletes: %{name}-wheel < %{version}-%{release}
%endif %endif
%package -n python%{python3_pkgversion}-%{srcname} %package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools bash-completion ca-certificates BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools bash-completion ca-certificates
Requires: python%{python3_pkgversion}-setuptools ca-certificates Requires: python%{python3_pkgversion}-setuptools ca-certificates
BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
@ -45,6 +45,13 @@ Obsoletes: %{name}-wheel < %{version}-%{release}
%package_help %package_help
%package wheel
Summary: The pip wheel
Requires: ca-certificates
%description wheel
A Python wheel of pip to use with venv
%prep %prep
%autosetup -n %{srcname}-%{version} -p1 %autosetup -n %{srcname}-%{version} -p1
@ -121,8 +128,6 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
%{bashcompdir}/pip %{bashcompdir}/pip
%{bashcompdir}/pip2* %{bashcompdir}/pip2*
%dir %(dirname %{bashcompdir}) %dir %(dirname %{bashcompdir})
%dir %{python_wheeldir}/
%{python_wheeldir}/%{python_wheelname}
%endif %endif
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
@ -133,13 +138,25 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
%dir %{bashcompdir} %dir %{bashcompdir}
%{bashcompdir}/pip3* %{bashcompdir}/pip3*
%dir %(dirname %{bashcompdir}) %dir %(dirname %{bashcompdir})
%dir %{python_wheeldir}/
%{python_wheeldir}/%{python_wheelname}
%files help %files help
%doc README.rst %doc README.rst
%files wheel
%license LICENSE.txt
%dir %{python_wheeldir}/
%{python_wheeldir}/%{python_wheelname}
%changelog %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 * Sun Sep 29 2019 yefei <yefei25@huawei.com> - 18.0-9
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA