A new user interface for you!

File python-sphinxcontrib-blockdiag.spec of Package python-sphinxcontrib-blockdiag

# spec file for package python-sphinxcontrib-blockdiag
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Test files missing
%bcond_with     test
Name:           python-sphinxcontrib-blockdiag
Version:        1.5.5
Release:        0
License:        BSD-2-Clause
Summary:        Sphinx "blockdiag" extension
Url:            https://github.com/blockdiag/sphinxcontrib-blockdiag
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/s/sphinxcontrib-blockdiag/sphinxcontrib-blockdiag-%{version}.tar.gz
BuildRequires:  %{python_module blockdiag >= 1.5.0}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module sphinxcontrib}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
%if %{with test}
BuildRequires:  %{python_module Sphinx >= 0.6}
BuildRequires:  %{python_module funcparserlib}
BuildRequires:  %{python_module sphinx-testing}
BuildRequires:  python-mock
Requires:       python-Sphinx >= 0.6
Requires:       python-blockdiag >= 1.5.0
Requires:       python-sphinxcontrib
BuildArch:      noarch


A sphinx extension for embedding block diagram using blockdiag.

%setup -q -n sphinxcontrib-blockdiag-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}

%if %{with test}
%python_exec setup.py test

%files %{python_files}
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/blockdiag*.py*