A new user interface for you! Read more...

File python-pyramid_handlers-doc.spec of Package python-pyramid_handlers

#
# spec file for package python-pyramid_handlers-doc
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 LISA GmbH, Bingen, 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-pyramid_handlers-doc
Version:        0.5
Release:        0
Url:            http://docs.pylonsproject.org
Summary:        Documentation for python-pyramid_handlers
License:        BSD-4-Clause and ZPL-2.1 and MIT
Group:          Documentation/HTML
Source:         https://files.pythonhosted.org/packages/source/p/pyramid_handlers/pyramid_handlers-%{version}.tar.gz
Source1:        fetch-intersphinx-files.sh
Source2:        pyramid.inv
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  python3-Sphinx
BuildRequires:  python3-pylons-sphinx-themes
Provides:       %{python_module pyramid_handlers-doc = %{version}} 
BuildArch:      noarch

%description
This package contains pyramid_handlers html documentation

See http://docs.pylonsproject.org/projects/pyramid_handlers/en/latest/ for
detailed documentation.


%prep
%setup -q -n pyramid_handlers-%{version}
# patch in local intersphinx file
sed -i "s|'\(.*\)', None|'\1', 'pyramid.inv'|g" docs/conf.py
cp %{SOURCE2} docs/

%build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo

%install
mkdir -p %{buildroot}%{_docdir}/python-pyramid_handlers
cp -r build/sphinx/html %{buildroot}%{_docdir}/python-pyramid_handlers
%fdupes %{buildroot}%{_docdir}/python-pyramid_handlers

%files
%defattr(-,root,root,-)
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE.txt
%else
%doc LICENSE.txt
%endif
%doc CHANGES.txt CONTRIBUTORS.txt README.rst
%dir %{_docdir}/python-pyramid_handlers/
%{_docdir}/python-pyramid_handlers/html/

%changelog