|
 |
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}
|
|
 |
7370f12 |
Version: 1.4.2
|
|
 |
7370f12 |
Release: 3%{?dist}
|
|
 |
7370f12 |
|
|
 |
7370f12 |
License: ASL 2.0
|
|
 |
7370f12 |
URL: http://github.com/google/%{name}/
|
|
 |
7370f12 |
Source0: https://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
|
|
 |
7370f12 |
|
|
 |
7370f12 |
BuildArch: noarch
|
|
 |
7370f12 |
BuildRequires: python2-devel >= 2.7
|
|
 |
7370f12 |
BuildRequires: python2-setuptools
|
|
 |
7370f12 |
BuildRequires: python-httplib2 >= 0.8
|
|
 |
7370f12 |
BuildRequires: python2-oauth2client >= 1.4.6
|
|
 |
7370f12 |
BuildRequires: python2-uri-templates >= 0.6
|
|
 |
7370f12 |
BuildRequires: python2-six >= 1.6.1
|
|
 |
7370f12 |
BuildRequires: python3-devel >= 3.3
|
|
 |
7370f12 |
BuildRequires: python3-setuptools
|
|
 |
7370f12 |
BuildRequires: python3-httplib2 >= 0.8
|
|
 |
7370f12 |
BuildRequires: python3-oauth2client >= 1.4.6
|
|
 |
7370f12 |
BuildRequires: python3-uri-templates >= 0.6
|
|
 |
7370f12 |
BuildRequires: python3-six >= 1.6.1
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%description
|
|
 |
7370f12 |
Written by Google, this library provides a small, flexible, and powerful
|
|
 |
7370f12 |
Python client library for accessing Google APIs.
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%package -n python2-%{srcname}
|
|
 |
7370f12 |
Summary: %{sum}
|
|
 |
7370f12 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
 |
7370f12 |
|
|
 |
7370f12 |
Requires: python-httplib2 >= 0.8
|
|
 |
7370f12 |
Requires: python2-oauth2client >= 1.4.6
|
|
 |
7370f12 |
Requires: python2-uri-templates >= 0.6
|
|
 |
7370f12 |
Requires: python2-six >= 1.6.1
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%description -n python2-%{srcname}
|
|
 |
7370f12 |
Written by Google, this library provides a small, flexible, and powerful
|
|
 |
7370f12 |
Python client library for accessing Google APIs.
|
|
 |
7370f12 |
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%package -n python3-%{srcname}
|
|
 |
7370f12 |
Summary: %{sum}
|
|
 |
7370f12 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
 |
7370f12 |
|
|
 |
7370f12 |
Requires: python3-httplib2 >= 0.8
|
|
 |
7370f12 |
Requires: python3-oauth2client >= 1.4.6
|
|
 |
7370f12 |
Requires: python3-uri-templates >= 0.6
|
|
 |
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 |
%{py2_build}
|
|
 |
7370f12 |
%{py3_build}
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%install
|
|
 |
7370f12 |
%{py2_install}
|
|
 |
7370f12 |
%{py3_install}
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%files -n python2-%{srcname}
|
|
 |
7370f12 |
%license LICENSE
|
|
 |
7370f12 |
%doc CHANGELOG
|
|
 |
7370f12 |
%{python2_sitelib}/apiclient
|
|
 |
7370f12 |
%{python2_sitelib}/googleapiclient
|
|
 |
7370f12 |
%{python2_sitelib}/google_api_python_client-%{version}-py?.?.egg-info
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%files -n python3-%{srcname}
|
|
 |
7370f12 |
%license LICENSE
|
|
 |
7370f12 |
%doc CHANGELOG
|
|
 |
7370f12 |
%{python3_sitelib}/apiclient
|
|
 |
7370f12 |
%{python3_sitelib}/googleapiclient
|
|
 |
7370f12 |
%{python3_sitelib}/google_api_python_client-%{version}-py?.?.egg-info
|
|
 |
7370f12 |
|
|
 |
7370f12 |
%changelog
|
|
 |
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 |
|