Fix dependency on python-vcrpy for Fedora <= 27
This commit is contained in:
parent
2888a3872d
commit
2f49414f27
1 changed files with 12 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.0.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Devtools for Azure SDK and CLI for Python
|
||||
|
||||
License: MIT
|
||||
|
|
@ -21,8 +21,12 @@ BuildRequires: %{py2_prefix}-setuptools
|
|||
# Needed for tests
|
||||
BuildRequires: %{py2_prefix}-configargparse
|
||||
BuildRequires: %{py2_prefix}-six
|
||||
%if 0%{?fedora} <= 27
|
||||
BuildRequires: python-vcrpy
|
||||
%else
|
||||
BuildRequires: %{py2_prefix}-vcrpy
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?_with_python3}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
|
|
@ -42,7 +46,11 @@ BuildArch: noarch
|
|||
Summary: %{summary}
|
||||
Requires: %{py2_prefix}-configargparse
|
||||
Requires: %{py2_prefix}-six
|
||||
%if 0%{?fedora} <= 27
|
||||
Requires: python-vcrpy
|
||||
%else
|
||||
Requires: %{py2_prefix}-vcrpy
|
||||
%endif
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
|
||||
%description -n python2-%{srcname}
|
||||
|
|
@ -113,6 +121,9 @@ Requires: python%{python3_pkgversion}-vcrpy
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Nov 21 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.0-3
|
||||
- Fix dependency on python-vcrpy for Fedora <= 27
|
||||
|
||||
* Tue Nov 20 2018 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.0-2
|
||||
- Don't glob everything under the Python sitelib directory
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue