python-Werkzeug/python-Werkzeug-doc.spec

55 lines
1.8 KiB
RPMSpec

#
# spec file for package python3-Werkzeug-doc
#
# Copyright (c) 2016 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/
#
Name: python-Werkzeug-doc
Version: 0.11.11
Release: 0
Url: http://werkzeug.pocoo.org/
Summary: Documentation for python3-Werkzeug
License: BSD-3-Clause
Group: Documentation/Other
Source: https://files.pythonhosted.org/packages/source/W/Werkzeug/Werkzeug-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-Sphinx
BuildRequires: python-Werkzeug = %{version}
BuildRequires: python-setuptools
BuildArch: noarch
Requires: python-Werkzeug = %{version}
%description
Documentation and examples for python3-Werkzeug
%prep
%setup -q -n Werkzeug-%{version}
sed -i "s/\r//" LICENSE # Fix wrong EOL-encoding
sed -i "1d" examples/manage-{i18nurls,simplewiki,shorty,couchy,cupoftee,webpylike,plnt,coolmagic}.py # Fix non-executable scripts
%build
# Not needed
%install
cd docs && make html && rm -rf _build/html/.buildinfo # Build HTML Documentation
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE
%doc docs/_build/html
%doc examples
%changelog