File python-boto.spec of Package python-boto
#
# 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.28.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. Currently, this includes:
* Simple Storage Service (S3)
* Simple Queue Service (SQS)
* Elastic Compute Cloud (EC2)
* Mechanical Turk
* SimpleDB
* CloudFront
%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 LICENSE
%config %{_sysconfdir}/boto.cfg
%{_bindir}/*
%{python_sitelib}/*
%changelog