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

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