File python-boto.spec of Package python-boto.137

#
# spec file for package python-boto
#
# Copyright (c) 2014 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 http://bugs.opensuse.org/
#


Name:           python-boto
Version:        2.34.0
Release:        0
Url:            http://code.google.com/p/boto/
Summary:        Amazon Web Services Library
License:        MIT
Group:          Development/Languages/Python
Source:         boto-%{version}.tar.gz
Source1:        boto.cfg
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-paramiko
Requires:       python-xml
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-xml
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
An integrated interface to current and future infrastructural services offered
by Amazon Web Services. At the moment, boto supports:

 * Compute
  - Amazon Elastic Compute Cloud (EC2)
  - Amazon Elastic Map Reduce (EMR)
  - AutoScaling
  - Amazon Kinesis
 * Content Delivery
  - Amazon CloudFront
 * Database
  - Amazon Relational Data Service (RDS)
  - Amazon DynamoDB
  - Amazon SimpleDB
  - Amazon ElastiCache
  - Amazon Redshift
 * Deployment and Management
  - AWS Elastic Beanstalk
  - AWS CloudFormation
  - AWS Data Pipeline
  - AWS Opsworks
  - AWS CloudTrail
 * Identity & Access
  - AWS Identity and Access Management (IAM)
 * Application Services
  - Amazon CloudSearch
  - Amazon Elastic Transcoder
  - Amazon Simple Workflow Service (SWF)
  - Amazon Simple Queue Service (SQS)
  - Amazon Simple Notification Server (SNS)
  - Amazon Simple Email Service (SES)
 * Monitoring
  - Amazon CloudWatch (EC2 Only)
  - Amazon CloudWatch Logs
 * Networking
  - Amazon Route53
  - Amazon Virtual Private Cloud (VPC)
  - Elastic Load Balancing (ELB)
  - AWS Direct Connect
 * Payments and Billing
  - Amazon Flexible Payment Service (FPS)
 * Storage
  - Amazon Simple Storage Service (S3)
  - Amazon Glacier
  - Amazon Elastic Block Store (EBS)
  - Google Cloud Storage
 * Workforce
  - Amazon Mechanical Turk
 * Other
  - Marketplace Web Services
  - AWS Support

%prep
%setup -q -n boto-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Fix executable flag for Python scripts with shebang line
chmod 0755 %{buildroot}%{python_sitelib}/boto/{services/bs,services/result,pyami/launch_ami}.py
%fdupes %{buildroot}%{_prefix}
mkdir %{buildroot}%{_sysconfdir}
cp %{SOURCE1} %{buildroot}%{_sysconfdir}

%files
%defattr(-,root,root,-)
%doc README.rst
%config %{_sysconfdir}/boto.cfg
%{_bindir}/*
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by