File python-boto-doc.spec of Package python-boto
#
# spec file for package python-boto-doc
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-boto-doc
Version: 2.48.0
Release: 0
Url: https://github.com/boto/boto/
Summary: Documentation for python-boto
License: MIT
Group: Documentation/Other
Source: https://files.pythonhosted.org/packages/source/b/boto/boto-%{version}.tar.gz
Source1: boto.cfg
BuildRequires: %{python_module boto = %{version}}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Documentation requirement
BuildRequires: python3-Sphinx
Provides: %{python_module boto-doc = %{version}}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
An integrated interface to current and future infrastructural services offered
by Amazon Web Services.
This subpackage contains the documentation for python-boto.
%prep
%setup -q -n boto-%{version}
# break the dependency between the doc generation and boto
sed -i -e '/import boto/d' -e "s/boto\.__version__/\'%{version}\'/" docs/source/conf.py
%build
cd docs && make html && rm -f build/html/.buildinfo
%install
%fdupes docs/build/html/
%files
%defattr(-,root,root,-)
%doc docs/BotoCheatSheet.pdf
%doc docs/build/html
%changelog