2017-06-26 12:35:25 +02:00
|
|
|
#
|
2023-02-17 00:11:14 +01:00
|
|
|
# spec file
|
2017-06-26 12:35:25 +02:00
|
|
|
#
|
2024-01-14 11:50:54 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-06-26 12:35:25 +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.
|
|
|
|
|
2018-12-04 15:06:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-26 12:35:25 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-06-06 12:50:22 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2023-05-06 10:51:14 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-06-06 12:50:22 +02:00
|
|
|
Name: python-sphinxcontrib-websupport%{psuffix}
|
2024-01-14 11:50:54 +01:00
|
|
|
Version: 1.2.7
|
2017-06-26 12:35:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Sphinx API for Web Apps
|
|
|
|
License: BSD-2-Clause
|
2019-06-06 12:50:22 +02:00
|
|
|
URL: https://github.com/sphinx-doc/sphinxcontrib-websupport
|
2023-09-07 13:23:54 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib_websupport-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module flit-core}
|
2023-02-17 00:11:14 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2020-08-31 11:08:34 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-Jinja2
|
|
|
|
Requires: python-docutils
|
|
|
|
BuildArch: noarch
|
2019-06-06 12:50:22 +02:00
|
|
|
%if %{with test}
|
2019-05-24 21:52:52 +02:00
|
|
|
BuildRequires: %{python_module Jinja2}
|
|
|
|
BuildRequires: %{python_module SQLAlchemy}
|
2023-09-07 13:23:54 +02:00
|
|
|
BuildRequires: %{python_module Sphinx >= 5.0}
|
2019-05-24 21:52:52 +02:00
|
|
|
BuildRequires: %{python_module Whoosh}
|
|
|
|
BuildRequires: %{python_module docutils}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2019-06-06 12:50:22 +02:00
|
|
|
BuildRequires: %{python_module sphinxcontrib-websupport >= %{version}}
|
|
|
|
%endif
|
2017-06-26 12:35:25 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2017-06-29 12:20:07 +02:00
|
|
|
sphinxcontrib-webuspport provides a Python API to integrate Sphinx
|
2017-06-26 12:35:25 +02:00
|
|
|
documentation into your Web application.
|
|
|
|
|
|
|
|
%prep
|
2023-09-07 13:23:54 +02:00
|
|
|
%autosetup -p1 -n sphinxcontrib_websupport-%{version}
|
2017-06-26 12:35:25 +02:00
|
|
|
|
|
|
|
%build
|
2023-02-17 00:11:14 +01:00
|
|
|
%pyproject_wheel
|
2017-06-26 12:35:25 +02:00
|
|
|
|
|
|
|
%install
|
2019-06-06 12:50:22 +02:00
|
|
|
%if !%{with test}
|
2023-02-17 00:11:14 +01:00
|
|
|
%pyproject_install
|
2017-09-18 23:44:47 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2019-06-06 12:50:22 +02:00
|
|
|
%endif
|
2017-06-26 12:35:25 +02:00
|
|
|
|
2019-05-24 21:52:52 +02:00
|
|
|
%check
|
2019-06-06 12:50:22 +02:00
|
|
|
%if %{with test}
|
2019-05-24 21:52:52 +02:00
|
|
|
%pytest
|
2019-06-06 12:50:22 +02:00
|
|
|
%endif
|
2019-05-24 21:52:52 +02:00
|
|
|
|
2019-06-06 12:50:22 +02:00
|
|
|
%if !%{with test}
|
2017-06-26 12:35:25 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:23:45 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README.rst
|
2017-09-18 23:44:47 +02:00
|
|
|
%dir %{python_sitelib}/sphinxcontrib/
|
2023-02-17 00:11:14 +01:00
|
|
|
%{python_sitelib}/sphinxcontrib/websupport
|
|
|
|
%{python_sitelib}/sphinxcontrib_websupport-%{version}*-info
|
2019-06-06 12:50:22 +02:00
|
|
|
%endif
|
2017-06-26 12:35:25 +02:00
|
|
|
|
|
|
|
%changelog
|