2019-06-04 14:01:36 +02:00
|
|
|
#
|
2023-03-06 21:33:39 +01:00
|
|
|
# spec file
|
2019-06-04 14:01:36 +02:00
|
|
|
#
|
2024-01-14 11:40:45 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-06-04 14:01:36 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
2019-06-06 14:01:23 +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-04-21 15:33:22 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-06-06 14:01:23 +02:00
|
|
|
Name: python-sphinxcontrib-applehelp%{psuffix}
|
2024-01-14 11:40:45 +01:00
|
|
|
Version: 1.0.8
|
2019-06-04 14:01:36 +02:00
|
|
|
Release: 0
|
2019-06-06 14:01:23 +02:00
|
|
|
Summary: Sphinx extension which outputs Apple help books
|
2019-06-04 14:01:36 +02:00
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/sphinx-doc/sphinxcontrib-applehelp
|
2023-08-29 21:04:02 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib_applehelp/sphinxcontrib_applehelp-%{version}.tar.gz
|
2023-08-29 21:00:22 +02:00
|
|
|
BuildRequires: %{python_module flit-core}
|
2023-03-06 21:33:39 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2020-03-06 19:17:19 +01:00
|
|
|
BuildRequires: fdupes
|
2020-03-07 14:51:27 +01:00
|
|
|
BuildRequires: gettext
|
2020-03-06 19:17:19 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
2019-06-06 14:01:23 +02:00
|
|
|
%if %{with test}
|
2023-08-29 21:00:22 +02:00
|
|
|
BuildRequires: %{python_module Sphinx >= 5.0}
|
2019-06-04 14:01:36 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-06-06 14:05:00 +02:00
|
|
|
BuildRequires: %{python_module sphinxcontrib-applehelp >= %{version}}
|
2019-06-06 14:01:23 +02:00
|
|
|
%endif
|
2019-06-04 14:01:36 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books
|
|
|
|
|
|
|
|
%prep
|
2023-08-29 21:00:22 +02:00
|
|
|
%setup -q -n sphinxcontrib_applehelp-%{version}
|
2019-06-04 14:01:36 +02:00
|
|
|
|
|
|
|
%build
|
2023-03-06 21:33:39 +01:00
|
|
|
%pyproject_wheel
|
2019-06-04 14:01:36 +02:00
|
|
|
|
|
|
|
%install
|
2019-06-06 14:01:23 +02:00
|
|
|
%if !%{with test}
|
2023-03-06 21:33:39 +01:00
|
|
|
%pyproject_install
|
2019-06-04 14:01:36 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2019-06-06 14:01:23 +02:00
|
|
|
%endif
|
2019-06-04 14:01:36 +02:00
|
|
|
|
2019-06-06 14:01:23 +02:00
|
|
|
%if %{with test}
|
2019-06-04 14:01:36 +02:00
|
|
|
%check
|
|
|
|
%pytest
|
2019-06-06 14:01:23 +02:00
|
|
|
%endif
|
2019-06-04 14:01:36 +02:00
|
|
|
|
2019-06-06 14:01:23 +02:00
|
|
|
%if !%{with test}
|
2019-06-04 14:01:36 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst CHANGES
|
|
|
|
%license LICENSE
|
2023-08-29 21:04:02 +02:00
|
|
|
%dir %{python_sitelib}/sphinxcontrib
|
|
|
|
%{python_sitelib}/sphinxcontrib/applehelp
|
|
|
|
%{python_sitelib}/sphinxcontrib_applehelp-%{version}*-info
|
2019-06-06 14:01:23 +02:00
|
|
|
%endif
|
2019-06-04 14:01:36 +02:00
|
|
|
|
|
|
|
%changelog
|