%global prever beta3 Name: google-api-python-client Version: 1.0 Release: 0.1.%{prever}%{?dist} Summary: Google APIs Client Library for Python License: ASL 2.0 URL: http://code.google.com/p/google-api-python-client/ Source0: http://google-api-python-client.googlecode.com/files/%{name}-%{version}%{prever}.tar.gz BuildRequires: python-devel BuildRequires: python-oauth2 BuildRequires: python-gflags BuildArch: noarch Requires: python-uri-templates Requires: python-oauth2 Requires: python-oauth2client Requires: python-httplib2 Requires: python-simplejson Requires: python-gflags %description Written by Google, this library provides a small, flexible, and powerful Python client library for accessing Google APIs. %package -n python-oauth2client Requires: python-oauth2 Summary: Library to simplify connections via OAuth 2.0 %description -n python-oauth2client The oauth2client library makes it easy to connect to resources protected by OAuth 2.0. %prep %setup -q -n %{name}-%{version}%{prever} sed -i 's|/usr/bin/python2.4|/usr/bin/python|g' apiclient/errors.py sed -i 's|/usr/bin/python2.4|/usr/bin/python|g' apiclient/model.py %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} # Provided by python-uri-templates rm -rf %{buildroot}%{python_sitelib}/uritemplate/ chmod +x %{buildroot}%{python_sitelib}/apiclient/errors.py %{buildroot}%{python_sitelib}/apiclient/model.py %files %doc README docs/ %{_bindir}/enable-app-engine-project %{python_sitelib}/apiclient/ %{python_sitelib}/google_api_python_client-*.egg-info/ %files -n python-oauth2client %{python_sitelib}/oauth2client/ %changelog * Thu Sep 15 2011 Tom Callaway - 1.0-0.1.beta3 - initial fedora package