Compare commits
1 Commits
master
...
f27-modula
Author | SHA1 | Date |
---|---|---|
Tomas Orsava | 5d6139e009 |
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
|
%bcond_with platform_python
|
||||||
|
|
||||||
%global srcname pip
|
%global srcname pip
|
||||||
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
||||||
|
@ -24,7 +25,7 @@
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 9.0.1
|
Version: 9.0.1
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Summary: A tool for installing and managing Python packages
|
Summary: A tool for installing and managing Python packages
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
@ -115,7 +116,10 @@ BuildRequires: python%{python3_pkgversion}-pip
|
||||||
BuildRequires: python%{python3_pkgversion}-wheel
|
BuildRequires: python%{python3_pkgversion}-wheel
|
||||||
%endif
|
%endif
|
||||||
Requires: python%{python3_pkgversion}-setuptools
|
Requires: python%{python3_pkgversion}-setuptools
|
||||||
|
|
||||||
|
%if %{without platform_python}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{srcname}
|
%description -n python%{python3_pkgversion}-%{srcname}
|
||||||
pip is a package management system used to install and manage software packages
|
pip is a package management system used to install and manage software packages
|
||||||
|
@ -126,6 +130,22 @@ Packages" or "Pip Installs Python".
|
||||||
%endif # with python3
|
%endif # with python3
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with platform_python}
|
||||||
|
%package -n python3-%{srcname}
|
||||||
|
Summary: A tool for installing and managing Python3 packages
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: python%{python3_pkgversion}-%{srcname} = %{version}
|
||||||
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||||
|
|
||||||
|
%description -n python3-%{srcname}
|
||||||
|
pip is a package management system used to install and manage software packages
|
||||||
|
written in Python. Many packages can be found in the Python Package Index
|
||||||
|
(PyPI). pip is a recursive acronym that can stand for either "Pip Installs
|
||||||
|
Packages" or "Pip Installs Python".
|
||||||
|
|
||||||
|
%endif # with platform_python
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{srcname}-%{version}
|
%setup -q -n %{srcname}-%{version}
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
|
@ -265,19 +285,29 @@ py.test-%{python3_version} -m 'not network'
|
||||||
%files -n python%{python3_pkgversion}-%{srcname}
|
%files -n python%{python3_pkgversion}-%{srcname}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst docs
|
%doc README.rst docs
|
||||||
%{_bindir}/pip3
|
|
||||||
%{_bindir}/pip-3
|
|
||||||
%{_bindir}/pip%{python3_version}
|
|
||||||
%{_bindir}/pip-%{python3_version}
|
|
||||||
%{python3_sitelib}/pip*
|
%{python3_sitelib}/pip*
|
||||||
%dir %{bashcompdir}
|
%dir %{bashcompdir}
|
||||||
%{bashcompdir}/pip3*
|
%{bashcompdir}/pip3*
|
||||||
%if 0%{?bashcomp2}
|
%if 0%{?bashcomp2}
|
||||||
%dir %(dirname %{bashcompdir})
|
%dir %(dirname %{bashcompdir})
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with platform_python}
|
||||||
|
%files -n python3-%{srcname}
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc README.rst docs
|
||||||
|
%endif # with platform_python
|
||||||
|
|
||||||
|
%{_bindir}/pip3
|
||||||
|
%{_bindir}/pip-3
|
||||||
|
%{_bindir}/pip%{python3_version}
|
||||||
|
%{_bindir}/pip-%{python3_version}
|
||||||
%endif # with python3
|
%endif # with python3
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 28 2017 Tomas Orsava <torsava@redhat.com> - 9.0.1-13
|
||||||
|
- Implement the new Platform-Python proposal
|
||||||
|
|
||||||
* Tue Aug 29 2017 Tomas Orsava <torsava@redhat.com> - 9.0.1-12
|
* Tue Aug 29 2017 Tomas Orsava <torsava@redhat.com> - 9.0.1-12
|
||||||
- Switch macros to bcond's and make Python 2 optional to facilitate building
|
- Switch macros to bcond's and make Python 2 optional to facilitate building
|
||||||
the Python 2 and Python 3 modules
|
the Python 2 and Python 3 modules
|
||||||
|
|
Loading…
Reference in New Issue