2018-04-30 13:52:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-blockdiag
|
|
|
|
#
|
2022-01-10 22:29:39 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-04-30 13:52:01 +00: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 14:06:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-04-30 13:52:01 +00:00
|
|
|
|
|
|
|
|
2020-02-24 15:10:24 +00:00
|
|
|
%define skip_python2 1
|
2018-04-30 13:52:01 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2022-09-29 10:28:58 +00:00
|
|
|
|
|
|
|
%bcond_with test
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
|
|
|
|
2018-04-30 13:52:01 +00:00
|
|
|
Name: python-sphinxcontrib-blockdiag
|
2022-01-10 22:29:39 +00:00
|
|
|
Version: 3.0.0
|
2018-04-30 13:52:01 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Sphinx "blockdiag" extension
|
2018-12-04 14:06:09 +00:00
|
|
|
License: BSD-2-Clause
|
2018-12-04 17:23:20 +00:00
|
|
|
URL: https://github.com/blockdiag/sphinxcontrib-blockdiag
|
2022-09-29 10:28:58 +00:00
|
|
|
# Use the github tag instead of the pythonhosted.org to get the tests folder
|
|
|
|
Source: https://github.com/blockdiag/sphinxcontrib-blockdiag/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
# PATCH-FEATURE-UPSTREAM 25.patch gh#blockdiag/sphinxcontrib-blockdiag#25
|
2022-10-10 06:36:39 +00:00
|
|
|
Patch0: https://patch-diff.githubusercontent.com/raw/blockdiag/sphinxcontrib-blockdiag/pull/25.patch
|
|
|
|
Patch1: remove-mock.patch
|
2020-02-24 15:10:24 +00:00
|
|
|
BuildRequires: %{python_module Sphinx >= 2.0}
|
2018-04-30 13:52:01 +00:00
|
|
|
BuildRequires: %{python_module blockdiag >= 1.5.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-02-24 15:10:24 +00:00
|
|
|
Requires: python-Sphinx >= 2.0
|
2018-12-04 17:23:20 +00:00
|
|
|
Requires: python-blockdiag >= 1.5.0
|
|
|
|
BuildArch: noarch
|
2018-04-30 13:52:01 +00:00
|
|
|
%if %{with test}
|
2022-09-29 10:28:58 +00:00
|
|
|
BuildRequires: %{python_module Sphinx-latex}
|
2018-04-30 13:52:01 +00:00
|
|
|
BuildRequires: %{python_module funcparserlib}
|
2022-09-29 10:28:58 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module sphinxcontrib-blockdiag = %{version}}
|
2018-04-30 13:52:01 +00:00
|
|
|
%endif
|
2022-09-29 10:28:58 +00:00
|
|
|
|
2018-04-30 13:52:01 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A sphinx extension for embedding block diagram using blockdiag.
|
|
|
|
|
|
|
|
%prep
|
2022-09-29 10:28:58 +00:00
|
|
|
%autosetup -p1 -n sphinxcontrib-blockdiag-%{version}
|
2018-04-30 13:52:01 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2022-09-29 10:28:58 +00:00
|
|
|
%if !%{with test}
|
2018-04-30 13:52:01 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2022-09-29 10:28:58 +00:00
|
|
|
%endif
|
2018-04-30 13:52:01 +00:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
2020-02-24 15:10:24 +00:00
|
|
|
%pytest
|
2018-04-30 13:52:01 +00:00
|
|
|
%endif
|
|
|
|
|
2022-09-29 10:28:58 +00:00
|
|
|
%if !%{with test}
|
2018-04-30 13:52:01 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:23:20 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS README.rst
|
2018-04-30 13:52:01 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib/blockdiag.py*
|
2018-12-14 12:18:16 +00:00
|
|
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__
|
2018-04-30 13:52:01 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib_blockdiag-%{version}-py*-nspkg.pth
|
|
|
|
%{python_sitelib}/sphinxcontrib_blockdiag-%{version}-py*.egg-info
|
2022-09-29 10:28:58 +00:00
|
|
|
%endif
|
2018-04-30 13:52:01 +00:00
|
|
|
|
|
|
|
%changelog
|