File python-gdata.spec of Package python-gdata

# spec file for package python-gdata (Version 1.2.2)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           python-gdata
BuildRequires:  python-devel python-setuptools
License:        The Apache Software License
Group:          Development/Libraries/Python
Version:        1.2.2
Release:        1
AutoReqProv:    on
Summary:        Python library to access data through Google Data APIs
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} < 1020
Requires:       python-elementtree

The Google data Python Client Library provides a library and source
code that make it easy to access data through Google Data APIs.

    The Google data API Team

%setup -q -n{version}

export CFLAGS="%{optflags}"
%{__python} build

%{__python} install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES

%{__rm} -rf %{buildroot}

%doc samples

* Fri Oct 24 2008
- Update to version 1.2.2:
  + Add support for the following APIs:
  * Google Apps Email Migration API
  * Google Apps Email Settings API
  * Google Webmaster Tools Data API
  * (Some modules for the above are not yet fully tested, so
  please file an issue if you notice something is not working
  as expected)
  + Restored support for gdata.http_request_handler when using App
  Engine to preserve backwards compatibility
  + Simplified auth token management by adding a current_token
  member to service classes; also added settings to control
  when the token_store is updated when using SetXToken() methods;
  the token_store will only be queried if there is no
  + Fixed issue with requests to HTTPS URLs in which an AuthSub
  token was seen as invalid because the request contained the
  default port number (443); the library no longer includes the
  port in the Host header if it is using the default
  + Resolved issues with YouTube token scopes
  + Fixed issue which appeared when the Calendar API issues a
  redirect to a PUT request; the library now correctly retries
  with a PUT (instead of a POST)
  + Added workaround for differences in how the App Engine SDK
  handles redirects
  + Fixed typo in gdata.EntryLink declaration
  + Fixed invalid host errors seen when using some HTTP proxies.
* Fri Oct 03 2008
- Update to version 1.2.1:
  + The gdata.alt.appengine module now replaces a Service object's token_store
  with an AppEngineTokenStore which automatically associates auth tokens
  with the current user and stores the auth tokens in the datastore.
  + Streamlined the gdata.auth module. There are now six recommended functions
  for using Google auth mechanisms. GDataService now uses these six
  + Added an override_token in Service objects (AtomService, GDataService)
  which bypasses the token_store. This member is helpful when using a
  single use AuthSub token which is only valid for one request and so
  would not be reused.
  + gdata.alt.appengin.run_on_appengine will now return the modified Service
  + Fixed content length header issue in gdata.alt.appengine which caused
  errors when running on App Engine when HTTP headers are set to
  non-string values.
  + Fixed function naming issue in gdata.alt.appengine, a "private" function
  was not accessible in some import styles.
  + Fixed issue in atom.http which surfaces when passing in a string for the
  port number. Ports are now cast to ints.
  + Updated pydocs.
* Fri Sep 12 2008
- Update to version 1.2.0:
  + Refactored HTTP request mechanisms and the way that
  Authorization headers are created and applied to requests
  + Fixed issues with token string modification which caused
  certain AuthSub token values to become invalid
  + Created a new module for parsing and constructing URLs
  + Created a module for token storage which will lookup the
  correct auth token to be used for a particular URL.
  + Auth tokens are now represented as objects and contain
  information about the scopes (URLs) for which they can be
  used; the token object is responsible for adding the
  Authorization header to the request.
  + Added new functions to gdata.auth for extracting the raw
  token string from a response to an AuthSub token upgrade
  + Added support for the location query parameter in YouTube
  + Added groups functionality to the Contacts API library
  + Batch request support added for Contacts API operations
  + Added default behavior to text_db GetTables: when no worksheet
  name or ID is specified, all tables are retrieved
  + Fixed client login for YouTube
  + Fixed issue in YouTube service when setting the developer
  + Fixed bug in YouTube service which raised an exception when
  inserting a video using a file-like object
  + Added a method to Feed and Entry classes to find the
  "previous" link
  + A failure when attempting to upgrade a single use AuthSub
  token to a session token will now raise an exception
  + AppsForYourDomainException now uses Python2.5 style
  exception construction
  + Moved the logic for using this library on Google App Engine
  into a new module: gdata.alt.appengine.
* Mon Jun 30 2008
- Update to version 1.1.1:
  + Added support for the Google Contacts, YouTube, and
  Blogger APIs
  + Improved documentation
  + Various bug fixes.
* Thu Apr 03 2008
- Upgraded to version
  * Added text_db module to gdata.spreadsheet which makes using the
  Spreadsheets API feel more like using a simple database. This module
  streamlines use of the list feed.
  * Compatibility fixes for geo and photos modules to run on Python 2.2
  and 2.3.
  * Added the orderby parameter to gdata.service's Query class.
  * Changed the blogger sample to use orderby=updated so that queries on
  updated min or max will work.
  * Fix to string encoding in the atom core when converting text members
  to XML.
  * Modified the gdata.service.GDataService to include a handler member to
  which all HTTP requests are delegated. This will allow the underlying
  HTTP client to be swapped out and pave the way for use of a mock server
  in unit tests.
  * Fixed character encoding problems when parsing non ASCII XML.
  * Added pydocs for gdata's geo, exif, and media packages.
* Wed Jan 16 2008
- Initial checkin, based roughly on devel:languages:python, but with
  new version.  No patches to review and clean tarball download.