Blame SPECS/google-api-python-client.spec

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