7370f12
# Share doc between python- and python3-
7370f12
%global _docdir_fmt %{name}
7370f12
%global sum Google APIs Client Library for Python
7370f12
%global srcname google-api-client
7370f12
7370f12
Name:           google-api-python-client
7370f12
Summary:        %{sum}
5f6ebbd
Epoch:          1
5f6ebbd
Version:        1.6.7
b218202
Release:        8%{?dist}
7370f12
7370f12
License:        ASL 2.0
7370f12
URL:            http://github.com/google/%{name}/
20f3366
Source0:        https://files.pythonhosted.org/packages/e0/91/0e6a42ea3e0898a75d819a9690c8c8d0eecd31275d8a85503c8fc33949f2/%{name}-%{version}.tar.gz
7370f12
BuildArch:      noarch
7370f12
7370f12
%description 
5361904
Written by Google, this library provides a small, flexible, and powerful
7370f12
Python client library for accessing Google APIs.
7370f12
7370f12
%package -n python3-%{srcname}
7370f12
Summary:        %{sum}
7370f12
%{?python_provide:%python_provide python3-%{srcname}}
7370f12
d7b49d4
BuildRequires:  python3-devel >= 3.3
d7b49d4
BuildRequires:  python3-setuptools
a2b8de0
BuildRequires:  python3-httplib2 >= 0.9.2
eebcbef
BuildRequires:  python3-oauth2client >= 2.0.0
a2b8de0
BuildRequires:  python3-uritemplate >= 3.0.0
d7b49d4
BuildRequires:  python3-six >= 1.6.1
d7b49d4
a2b8de0
Requires:       python3-httplib2 >= 0.9.2
eebcbef
Requires:       python3-oauth2client >= 2.0.0
a2b8de0
Requires:       python3-uritemplate >= 3.0.0
7370f12
Requires:       python3-six >= 1.6.1
7370f12
7370f12
%description -n python3-%{srcname}
7370f12
Written by Google, this library provides a small, flexible, and powerful 
7370f12
Python 3 client library for accessing Google APIs.
7370f12
7370f12
%prep
7370f12
%setup -q
7370f12
7370f12
# remove egg info
7370f12
rm -rf google_api_python_client.egg-info
7370f12
7370f12
# remove shebang without touching timestamp
7370f12
for lib in googleapiclient/*.py; do
7370f12
 sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new &&
7370f12
 touch -r $lib $lib.new &&
7370f12
 mv $lib.new $lib
7370f12
done
7370f12
7370f12
%build
7370f12
%{py3_build}
7370f12
7370f12
%install
7370f12
%{py3_install}
7370f12
7370f12
%files -n python3-%{srcname}
7370f12
%license LICENSE 
7370f12
%doc CHANGELOG
b218202
%{python3_sitelib}/apiclient/
b218202
%{python3_sitelib}/googleapiclient/
b218202
%{python3_sitelib}/google_api_python_client-%{version}-py%{python3_version}.egg-info/
7370f12
7370f12
%changelog
b218202
* Wed Jul 31 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.6.7-8
b218202
- Subpackage python2-google-api-client has been removed
b218202
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b218202
39c349d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.6.7-7
39c349d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
39c349d
10d6a29
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.6.7-6
10d6a29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
10d6a29
5f6ebbd
* Mon Jan 28 2019 Michele Baldessari <michele@acksyn.org> - 1.6.7-5
5f6ebbd
- Add an epoch and downgrade to 1.6.7 while we get python-google-auth-httplib2
5f6ebbd
20f3366
* Mon Jan 21 2019 Michele Baldessari <michele@acksyn.org> - 1.7.7-1
20f3366
- New upstream
20f3366
57959b2
* Fri Jul 20 2018 Alfredo Moralejo <amoralej@redhat.com> - 1.6.7-4
57959b2
- Fix build when disabling python3.
57959b2
22c779b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.7-3
22c779b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
22c779b
b6cebda
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.6.7-2
b6cebda
- Rebuilt for Python 3.7
b6cebda
e08c832
* Sat May 05 2018 Michele Baldessari <michele@acksyn.org> - 1.6.7-1
e08c832
- New upstream
e08c832
cccf293
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.5-2
cccf293
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cccf293
5361904
* Fri Jan 19 2018 Michele Baldessari <michele@acksyn.org> - 1.6.5-1
5361904
- New upstream
5361904
35b4aa0
* Mon Oct 23 2017 Michele Baldessari <michele@acksyn.org> - 1.6.4-1
35b4aa0
- New upstream
35b4aa0
Nick Bebout beca81b
* Sun Sep 10 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.3-2
Nick Bebout 732caeb
- Fix BuildRequires/Requires to use python2-* for Fedora
Nick Bebout 732caeb
4f256b6
* Thu Aug 31 2017 Michele Baldessari <michele@acksyn.org> - 1.6.3-1
4f256b6
- New upstream
4f256b6
640654f
* Fri Aug 4 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.2-2
640654f
- Fix conditionals for epel
640654f
a2b8de0
* Tue Aug 1 2017 Nick Bebout <nb@fedoraproject.org> - 1.6.2-1
a2b8de0
- Update to 1.6.2
a2b8de0
7137e80
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-4
7137e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7137e80
da2f231
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-3
da2f231
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
da2f231
6e3f83e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.5-2
6e3f83e
- Rebuild for Python 3.6
6e3f83e
d85f024
* Thu Nov 10 2016 Michele Baldessari <michele@acksyn.org> - 1.5.5-1
d85f024
New upstream
d85f024
b25cc2a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
b25cc2a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b25cc2a
eebcbef
* Sun May 22 2016 Michele Baldessari <michele@acksyn.org> - 1.5.1-1
eebcbef
- New upstream
eebcbef
eebcbef
* Thu Mar 10 2016 Michele Baldessari <michele@acksyn.org> - 1.5.0-1
eebcbef
- New upstream
eebcbef
cfcbaa4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-5
cfcbaa4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cfcbaa4
d7b49d4
* Sun Jan 31 2016 Michele Baldessari <michele@acksyn.org> - 1.4.2-4
d7b49d4
- Make spec more epel friendly
d7b49d4
7370f12
* Mon Nov 02 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-3
7370f12
- Cleanup spec according to newest python policy
7370f12
- Drop python3 conditional, we'll build this for Fedora only for now anyways
7370f12
7370f12
* Wed Oct 21 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-2
7370f12
- Address some comments from BZ 1272187
7370f12
7370f12
* Thu Oct 15 2015 Michele Baldessari <michele@acksyn.org> - 1.4.2-1
7370f12
- Update to 1.4.2
7370f12
7370f12
* Tue Jun 23 2015 Michele Baldessari <michele@acksyn.org> - 1.4.1-1
7370f12
- Update to 1.4.1
7370f12
7370f12
* Sun Jun 07 2015 Michele Baldessari <michele@acksyn.org> - 1.4.0-1
7370f12
- Update to latest version
7370f12
- Add python3 package
7370f12
- Tag LICENSE with appropriate macro
7370f12
- Generate {python,python3}-google-api-client packages to be more consistent
7370f12
  within Fedora
7370f12
- Add python-oauthclient dependency
7370f12
7370f12
* Sat Feb 14 2015 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.3.1-1
7370f12
- Update to latest version
7370f12
7370f12
* Sat Jul 27 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.1-1
7370f12
- Initial rpm package
7370f12