Fix BuildRequires/Requires to use python2-* for Fedora

This commit is contained in:
Nick Bebout 2017-09-10 20:35:28 -05:00
parent 4f256b6aa6
commit 732caeb878

View File

@ -10,7 +10,7 @@
Name: google-api-python-client Name: google-api-python-client
Summary: %{sum} Summary: %{sum}
Version: 1.6.3 Version: 1.6.3
Release: 1%{?dist} Release: 2%{?dist}
License: ASL 2.0 License: ASL 2.0
URL: http://github.com/google/%{name}/ URL: http://github.com/google/%{name}/
@ -27,24 +27,26 @@ Summary: %{sum}
BuildRequires: python2-devel >= 2.7 BuildRequires: python2-devel >= 2.7
BuildRequires: python2-setuptools BuildRequires: python2-setuptools
BuildRequires: python-httplib2 >= 0.8 BuildRequires: python2-oauth2client >= 2.0.0
BuildRequires: python-oauth2client >= 2.0.0
BuildRequires: python2-uritemplate >= 3.0.0 BuildRequires: python2-uritemplate >= 3.0.0
%if 0%{?fedora} %if 0%{?fedora}
BuildRequires: python2-httplib2 >= 0.9.2
BuildRequires: python2-six >= 1.6.1 BuildRequires: python2-six >= 1.6.1
%else %else
BuildRequires: python-httplib2 >= 0.9.2
BuildRequires: python-six >= 1.6.1 BuildRequires: python-six >= 1.6.1
%endif %endif
Requires: python-httplib2 >= 0.9.2
Requires: python2-oauth2client >= 2.0.0 Requires: python2-oauth2client >= 2.0.0
Requires: python2-uritemplate >= 3.0.0 Requires: python2-uritemplate >= 3.0.0
%if 0%{?fedora} %if 0%{?fedora}
Requires: python2-six >= 1.6.1 Requires: python2-six >= 1.6.1
Requires: python2-httplib2 >= 0.9.2
%else %else
Requires: python-six >= 1.6.1 Requires: python-six >= 1.6.1
Requires: python-httplib2 >= 0.9.2
%endif %endif
%description -n python2-%{srcname} %description -n python2-%{srcname}
@ -114,6 +116,9 @@ done
%{python3_sitelib}/google_api_python_client-%{version}-py?.?.egg-info %{python3_sitelib}/google_api_python_client-%{version}-py?.?.egg-info
%changelog %changelog
* Sun Sep 10 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.3-1
- Fix BuildRequires/Requires to use python2-* for Fedora
* Thu Aug 31 2017 Michele Baldessari <michele@acksyn.org> - 1.6.3-1 * Thu Aug 31 2017 Michele Baldessari <michele@acksyn.org> - 1.6.3-1
- New upstream - New upstream