forked from pool/python-sphinxcontrib-seqdiag
76 lines
2.5 KiB
RPMSpec
76 lines
2.5 KiB
RPMSpec
![]() |
#
|
||
|
# 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 http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
%{?!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
|
||
|
Url: http://github.com/blockdiag/sphinxcontrib-seqdiag
|
||
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-seqdiag/sphinxcontrib-seqdiag-%{version}.tar.gz
|
||
|
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}
|
||
|
%endif
|
||
|
Requires: python-Sphinx >= 0.6
|
||
|
Requires: python-blockdiag >= 1.5.0
|
||
|
Requires: python-seqdiag >= 0.9.3
|
||
|
Requires: python-sphinxcontrib
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
A sphinx extension for embedding sequence diagram using seqdiag_.
|
||
|
|
||
|
This extension enables you to insert sequence diagrams into your document.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n sphinxcontrib-seqdiag-%{version}
|
||
|
|
||
|
%build
|
||
|
%python_build
|
||
|
|
||
|
%install
|
||
|
%python_install
|
||
|
# remove tests/ dir from global site-packages
|
||
|
%{python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
||
|
%fdupes %{buildroot}%{$python_sitelib}
|
||
|
}
|
||
|
|
||
|
%files %{python_files}
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc AUTHORS LICENSE README.rst
|
||
|
%{python_sitelib}/sphinxcontrib/seqdiag.py*
|
||
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/seqdiag*.py*
|
||
|
%{python_sitelib}/sphinxcontrib_seqdiag-%{version}-py*-nspkg.pth
|
||
|
%{python_sitelib}/sphinxcontrib_seqdiag-%{version}-py*.egg-info
|
||
|
|
||
|
%changelog
|