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

# spec file for package python-sphinxcontrib-seqdiag
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with     test
Name:           python-sphinxcontrib-seqdiag
Version:        0.8.5
Release:        0
Summary:        Sphinx "seqdiag" extension
License:        BSD-2-Clause
Group:          Development/Languages/Python
BuildRequires:  python-devel
BuildRequires:  python-setuptools
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 blockdiag >= 1.5.0}
BuildRequires:  %{python_module seqdiag >= 0.9.3}
Requires:       python-Sphinx >= 0.6
Requires:       python-blockdiag >= 1.5.0
Requires:       python-seqdiag >= 0.9.3
Requires:       python-sphinxcontrib
BuildArch:      noarch


A sphinx extension for embedding sequence diagram using seqdiag_.

This extension enables you to insert sequence diagrams into your document.

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


# remove tests/ dir from global site-packages
%{python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%fdupes %{buildroot}%{$python_sitelib}

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