2013-08-06 16:10:41 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-manuel
|
|
|
|
#
|
2017-06-29 09:38:38 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-08-06 16:10:41 +02:00
|
|
|
# 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.
|
2015-05-07 14:06:02 +02:00
|
|
|
|
2013-08-06 16:10:41 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-05-07 14:06:02 +02:00
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-08-06 16:10:41 +02:00
|
|
|
Name: python-manuel
|
2015-05-07 14:06:02 +02:00
|
|
|
Version: 1.8.0
|
2013-08-06 16:10:41 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Build tested documentation
|
2015-05-07 14:06:02 +02:00
|
|
|
License: Apache-2.0
|
2013-08-06 16:10:41 +02:00
|
|
|
Group: Development/Languages/Python
|
2015-05-07 14:06:02 +02:00
|
|
|
Url: http://www.python.org/pypi/manuel
|
2017-06-29 09:38:38 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
2013-08-06 16:10:41 +02:00
|
|
|
# Documentation requirements:
|
2017-06-29 09:38:38 +02:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
2013-08-06 16:10:41 +02:00
|
|
|
# Testing requirements:
|
2017-06-29 09:38:38 +02:00
|
|
|
BuildRequires: %{python_module zope.testing}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2013-08-06 16:10:41 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2017-06-29 09:38:38 +02:00
|
|
|
%python_subpackages
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Manuel lets you build tested documentation.
|
|
|
|
|
|
|
|
Documentation, a full list of included plug-ins, and examples are available
|
|
|
|
with the -doc package and at http://packages.python.org/manuel/.
|
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%package doc
|
2013-08-06 16:10:41 +02:00
|
|
|
Summary: Build tested documentation
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%description doc
|
2013-08-06 16:10:41 +02:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n manuel-%{version}
|
2017-06-29 09:38:38 +02:00
|
|
|
rm -rf docs/.doctrees docs/.buildinfo docs/objects.inv
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%build
|
2017-06-29 09:38:38 +02:00
|
|
|
%python_build
|
|
|
|
%{_python_use_flavor python3}
|
|
|
|
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%install
|
2017-06-29 09:38:38 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%check
|
2017-06-29 09:38:38 +02:00
|
|
|
%python_exec setup.py -q test
|
2013-08-06 16:10:41 +02:00
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%files %{python_files}
|
2013-08-06 16:10:41 +02:00
|
|
|
%defattr(-,root,root,-)
|
2015-05-07 14:06:02 +02:00
|
|
|
%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst PKG-INFO README.rst
|
2017-06-29 09:38:38 +02:00
|
|
|
%{python_sitelib}/*
|
2013-08-06 16:10:41 +02:00
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%files %{python_files doc}
|
2013-08-06 16:10:41 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc docs/
|
|
|
|
|
|
|
|
%changelog
|