|
|
b3c8a4 |
|
|
|
b3c8a4 |
# Share doc between python- and python3-
|
|
|
b3c8a4 |
%global _docdir_fmt %{name}
|
|
|
b3c8a4 |
%global sum Google APIs Client Library for Python
|
|
|
b3c8a4 |
%global srcname google-api-client
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
b3c8a4 |
%global with_python3 1
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%if 0%{?rhel} > 7
|
|
|
b3c8a4 |
%global with_python2 0
|
|
|
b3c8a4 |
%else
|
|
|
b3c8a4 |
%global with_python2 1
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
Name: google-api-python-client
|
|
|
b3c8a4 |
Summary: %{sum}
|
|
|
b3c8a4 |
Version: 1.6.5
|
|
|
b3c8a4 |
Release: 3%{?dist}
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
License: ASL 2.0
|
|
|
b3c8a4 |
URL: http://github.com/google/%{name}/
|
|
|
b3c8a4 |
Source0: https://pypi.python.org/packages/07/36/1304550b8a91e4f23258ae5880f56305528ce081cb00668107f02f153817/%{name}-%{version}.tar.gz
|
|
|
b3c8a4 |
BuildArch: noarch
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%description
|
|
|
b3c8a4 |
Written by Google, this library provides a small, flexible, and powerful
|
|
|
b3c8a4 |
Python client library for accessing Google APIs.
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%if 0%{?with_python2}
|
|
|
b3c8a4 |
%package -n python2-%{srcname}
|
|
|
b3c8a4 |
Summary: %{sum}
|
|
|
b3c8a4 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
BuildRequires: python2-devel >= 2.7
|
|
|
b3c8a4 |
BuildRequires: python2-setuptools
|
|
|
b3c8a4 |
BuildRequires: python2-oauth2client >= 2.0.0
|
|
|
b3c8a4 |
BuildRequires: python2-uritemplate >= 3.0.0
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
BuildRequires: python2-httplib2 >= 0.9.2
|
|
|
b3c8a4 |
BuildRequires: python2-six >= 1.6.1
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
Requires: python2-oauth2client >= 2.0.0
|
|
|
b3c8a4 |
Requires: python2-uritemplate >= 3.0.0
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
Requires: python2-six >= 1.6.1
|
|
|
b3c8a4 |
Requires: python2-httplib2 >= 0.9.2
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%description -n python2-%{srcname}
|
|
|
b3c8a4 |
Written by Google, this library provides a small, flexible, and powerful
|
|
|
b3c8a4 |
Python client library for accessing Google APIs.
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%if 0%{?with_python3}
|
|
|
b3c8a4 |
%package -n python3-%{srcname}
|
|
|
b3c8a4 |
Summary: %{sum}
|
|
|
b3c8a4 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
BuildRequires: python3-devel >= 3.3
|
|
|
b3c8a4 |
BuildRequires: python3-setuptools
|
|
|
b3c8a4 |
BuildRequires: python3-httplib2 >= 0.9.2
|
|
|
b3c8a4 |
BuildRequires: python3-oauth2client >= 2.0.0
|
|
|
b3c8a4 |
BuildRequires: python3-uritemplate >= 3.0.0
|
|
|
b3c8a4 |
BuildRequires: python3-six >= 1.6.1
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
Requires: python3-httplib2 >= 0.9.2
|
|
|
b3c8a4 |
Requires: python3-oauth2client >= 2.0.0
|
|
|
b3c8a4 |
Requires: python3-uritemplate >= 3.0.0
|
|
|
b3c8a4 |
Requires: python3-six >= 1.6.1
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%description -n python3-%{srcname}
|
|
|
b3c8a4 |
Written by Google, this library provides a small, flexible, and powerful
|
|
|
b3c8a4 |
Python 3 client library for accessing Google APIs.
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%prep
|
|
|
b3c8a4 |
%setup -q
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
# remove egg info
|
|
|
b3c8a4 |
rm -rf google_api_python_client.egg-info
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
# remove shebang without touching timestamp
|
|
|
b3c8a4 |
for lib in googleapiclient/*.py; do
|
|
|
b3c8a4 |
sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new &&
|
|
|
b3c8a4 |
touch -r $lib $lib.new &&
|
|
|
b3c8a4 |
mv $lib.new $lib
|
|
|
b3c8a4 |
done
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%build
|
|
|
b3c8a4 |
%if 0%{?with_python2}
|
|
|
b3c8a4 |
%{py2_build}
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
%if 0%{?with_python3}
|
|
|
b3c8a4 |
%{py3_build}
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%install
|
|
|
b3c8a4 |
%if 0%{?with_python2}
|
|
|
b3c8a4 |
%{py2_install}
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
%if 0%{?with_python3}
|
|
|
b3c8a4 |
%{py3_install}
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%if 0%{?with_python2}
|
|
|
b3c8a4 |
%files -n python2-%{srcname}
|
|
|
b3c8a4 |
%license LICENSE
|
|
|
b3c8a4 |
%doc CHANGELOG
|
|
|
b3c8a4 |
%{python2_sitelib}/apiclient
|
|
|
b3c8a4 |
%{python2_sitelib}/googleapiclient
|
|
|
b3c8a4 |
%{python2_sitelib}/google_api_python_client-%{version}-py?.?.egg-info
|
|
|
b3c8a4 |
%endif
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%files -n python3-%{srcname}
|
|
|
b3c8a4 |
%license LICENSE
|
|
|
b3c8a4 |
%doc CHANGELOG
|
|
|
b3c8a4 |
%{python3_sitelib}/apiclient
|
|
|
b3c8a4 |
%{python3_sitelib}/googleapiclient
|
|
|
b3c8a4 |
%{python3_sitelib}/google_api_python_client-%{version}-py?.?.egg-info
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
%changelog
|
|
|
b3c8a4 |
* Tue Jun 05 2018 Troy Dawson <tdawson@redhat.com> - 1.6.5-3
|
|
|
b3c8a4 |
- Do not do python2 in RHEL8
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-2
|
|
|
b3c8a4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Fri Jan 19 2018 Michele Baldessari <michele@acksyn.org> - 1.6.5-1
|
|
|
b3c8a4 |
- New upstream
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Mon Oct 23 2017 Michele Baldessari <michele@acksyn.org> - 1.6.4-1
|
|
|
b3c8a4 |
- New upstream
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Sun Sep 10 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.3-2
|
|
|
b3c8a4 |
- Fix BuildRequires/Requires to use python2-* for Fedora
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Thu Aug 31 2017 Michele Baldessari <michele@acksyn.org> - 1.6.3-1
|
|
|
b3c8a4 |
- New upstream
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Fri Aug 4 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.2-2
|
|
|
b3c8a4 |
- Fix conditionals for epel
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Tue Aug 1 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.2-1
|
|
|
b3c8a4 |
- Update to 1.6.2
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-4
|
|
|
b3c8a4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-3
|
|
|
b3c8a4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.5.5-2
|
|
|
b3c8a4 |
- Rebuild for Python 3.6
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Thu Nov 10 2016 Michele Baldessari <michele@acksyn.org> - 1.5.5-1
|
|
|
b3c8a4 |
New upstream
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
|
|
|
b3c8a4 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Sun May 22 2016 Michele Baldessari <michele@acksyn.org> - 1.5.1-1
|
|
|
b3c8a4 |
- New upstream
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Thu Mar 10 2016 Michele Baldessari <michele@acksyn.org> - 1.5.0-1
|
|
|
b3c8a4 |
- New upstream
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-5
|
|
|
b3c8a4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Sun Jan 31 2016 Michele Baldessari <michele@acksyn.org> - 1.4.2-4
|
|
|
b3c8a4 |
- Make spec more epel friendly
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Mon Nov 02 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-3
|
|
|
b3c8a4 |
- Cleanup spec according to newest python policy
|
|
|
b3c8a4 |
- Drop python3 conditional, we'll build this for Fedora only for now anyways
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Wed Oct 21 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-2
|
|
|
b3c8a4 |
- Address some comments from BZ 1272187
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Thu Oct 15 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-1
|
|
|
b3c8a4 |
- Update to 1.4.2
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Tue Jun 23 2015 Michele Baldessari <michele@acksyn.org> - 1.4.1-1
|
|
|
b3c8a4 |
- Update to 1.4.1
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Sun Jun 07 2015 Michele Baldessari <michele@acksyn.org> - 1.4.0-1
|
|
|
b3c8a4 |
- Update to latest version
|
|
|
b3c8a4 |
- Add python3 package
|
|
|
b3c8a4 |
- Tag LICENSE with appropriate macro
|
|
|
b3c8a4 |
- Generate {python,python3}-google-api-client packages to be more consistent
|
|
|
b3c8a4 |
within Fedora
|
|
|
b3c8a4 |
- Add python-oauthclient dependency
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Sat Feb 14 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.3.1-1
|
|
|
b3c8a4 |
- Update to latest version
|
|
|
b3c8a4 |
|
|
|
b3c8a4 |
* Sat Jul 27 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.1-1
|
|
|
b3c8a4 |
- Initial rpm package
|
|
|
b3c8a4 |
|