2013-08-06 16:10:41 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-manuel
|
|
|
|
#
|
2023-01-03 19:59:40 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-04-16 19:30:01 +02:00
|
|
|
# Copyright (c) 2013-2018 LISA GmbH, Bingen, Germany.
|
2013-08-06 16:10:41 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
2019-01-02 13:32:14 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-08-06 16:10:41 +02:00
|
|
|
#
|
|
|
|
|
2015-05-07 14:06:02 +02:00
|
|
|
|
2013-08-06 16:10:41 +02:00
|
|
|
Name: python-manuel
|
2022-09-29 18:48:26 +02:00
|
|
|
Version: 1.12.4
|
2013-08-06 16:10:41 +02:00
|
|
|
Release: 0
|
2019-01-10 09:21:19 +01:00
|
|
|
Summary: Python module to build tested documentation
|
2015-05-07 14:06:02 +02:00
|
|
|
License: Apache-2.0
|
2019-01-02 13:32:14 +01:00
|
|
|
URL: https://pypi.org/project/manuel/
|
2023-01-03 19:59:40 +01:00
|
|
|
# SourceRepository: https://github.com/benji-york/manuel
|
2017-06-29 09:38:38 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz
|
2022-10-17 12:53:39 +02:00
|
|
|
# https://github.com/benji-york/manuel/issues/33
|
|
|
|
Patch0: python-manuel-no-six.patch
|
2023-01-03 19:59:40 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-05-31 14:30:34 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-01-02 13:32:14 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-01-03 19:59:40 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-29 09:38:38 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2013-08-06 16:10:41 +02:00
|
|
|
BuildArch: noarch
|
2020-12-04 11:19:15 +01:00
|
|
|
# SECTION Documentation requirements:
|
|
|
|
BuildRequires: python3-Sphinx
|
2023-05-02 12:35:37 +02:00
|
|
|
BuildRequires: python3-myst-parser
|
|
|
|
BuildRequires: python3-sphinxcontrib-copybutton
|
2020-12-04 11:19:15 +01:00
|
|
|
# /SECTION
|
|
|
|
# SECTION Testing requirements:
|
|
|
|
BuildRequires: %{python_module zope.testing}
|
|
|
|
# /SECTION
|
2017-06-29 09:38:38 +02:00
|
|
|
%python_subpackages
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%description
|
2019-01-10 09:21:19 +01:00
|
|
|
Manuel lets the user build tested documentation.
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|
2022-10-17 12:53:39 +02:00
|
|
|
%autosetup -p1 -n manuel-%{version}
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%build
|
2023-01-03 19:59:40 +01:00
|
|
|
%pyproject_wheel
|
2023-05-02 12:35:37 +02:00
|
|
|
sphinx-build -c sphinx/ -a src/manuel docs/
|
2023-01-03 19:59:40 +01:00
|
|
|
rm docs/.buildinfo
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%install
|
2023-01-03 19:59:40 +01:00
|
|
|
%pyproject_install
|
|
|
|
%{python_expand #
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
|
|
|
cp -r docs/* %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
|
|
|
%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-manuel-doc
|
|
|
|
}
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%check
|
2021-05-31 14:30:34 +02:00
|
|
|
%pytest src/manuel/tests.py
|
2013-08-06 16:10:41 +02:00
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%files %{python_files}
|
2019-01-02 13:32:14 +01:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc CHANGES.rst COPYRIGHT.rst PKG-INFO README.rst
|
2020-12-04 11:19:15 +01:00
|
|
|
%{python_sitelib}/manuel
|
2023-01-03 19:59:40 +01:00
|
|
|
%{python_sitelib}/manuel-%{version}.dist-info
|
2013-08-06 16:10:41 +02:00
|
|
|
|
2017-06-29 09:38:38 +02:00
|
|
|
%files %{python_files doc}
|
2023-01-03 19:59:40 +01:00
|
|
|
%doc %{_docdir}/%{python_prefix}-manuel-doc
|
2013-08-06 16:10:41 +02:00
|
|
|
|
|
|
|
%changelog
|