File python-swift3.spec of Package python-swift3

#
# spec file for package python-swift3
#
# Copyright (c) 2013 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/
#


%define version_unconverted 1.7+git.1384888344.9a2ce5e

Name:           python-swift3
Version:        1.7+git.1384888344.9a2ce5e
Release:        0
Summary:        OpenStack Swift - Amazon S3 API Middleware
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://github.com/fujita/swift3
Source:         swift3-%{version}.tar.gz
BuildRequires:  python-devel
# Documentation requirements:
BuildRequires:  python-Sphinx
BuildRequires:  python-simplejson
# Test requirements:
BuildRequires:  python-nose
BuildRequires:  python-swift
Requires:       python-swift
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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
Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.

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

%build
python setup.py build
python setup.py build_sphinx

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
nosetests

%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README.md build/sphinx/html
%{python_sitelib}/swift3
%{python_sitelib}/swift3-1.7.0-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by