Use the python_provide macro
This commit is contained in:
parent
5ac60a98db
commit
c1dfde25f0
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.30.0a0
|
Version: 0.30.0a0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A built-package format for Python
|
Summary: A built-package format for Python
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -37,6 +37,8 @@ BuildRequires: pyxdg
|
|||||||
BuildRequires: python-keyring
|
BuildRequires: python-keyring
|
||||||
BuildRequires: python-jsonschema
|
BuildRequires: python-jsonschema
|
||||||
|
|
||||||
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||||
|
|
||||||
%description -n python2-%{pypi_name} %{_description}
|
%description -n python2-%{pypi_name} %{_description}
|
||||||
|
|
||||||
Python 2 version.
|
Python 2 version.
|
||||||
@ -50,6 +52,8 @@ BuildRequires: python3-pyxdg
|
|||||||
BuildRequires: python3-keyring
|
BuildRequires: python3-keyring
|
||||||
BuildRequires: python3-jsonschema
|
BuildRequires: python3-jsonschema
|
||||||
|
|
||||||
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
|
|
||||||
%description -n python3-%{pypi_name} %{_description}
|
%description -n python3-%{pypi_name} %{_description}
|
||||||
|
|
||||||
Python 3 version.
|
Python 3 version.
|
||||||
@ -97,6 +101,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
|||||||
%exclude %{python3_sitelib}/%{pypi_name}/test
|
%exclude %{python3_sitelib}/%{pypi_name}/test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-2
|
||||||
|
- Use the python_provide macro
|
||||||
|
|
||||||
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-1
|
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-1
|
||||||
- Update to 0.30.0a0
|
- Update to 0.30.0a0
|
||||||
- Added patch to remove keyrings.alt dependency
|
- Added patch to remove keyrings.alt dependency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user