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

#
# spec file for package python-sphinxcontrib-documentedlist
#
# 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-documentedlist
Version:        0.6
Release:        0
License:        BSD-2-Clause
Summary:        Sphinx DocumentedList extension
Url:            https://github.com/chintal/sphinxcontrib-documentedlist
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/s/sphinxcontrib-documentedlist/sphinxcontrib-documentedlist-%{version}.tar.gz
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}
BuildRequires:  %{python_module six}
%endif
Requires:       python-Sphinx >= 0.6
Requires:       python-six
Requires:       python-sphinxcontrib
BuildArch:      noarch

%python_subpackages

%description
Sphinx extension to convert a Python list into a table in the generated
documentation. The intended application of this extension is to document
the items of essentially list-like objects of immutable data (possibly
enums, though python 3.4 enums are not supported yet).

In the source code, each list item, instead of being just its native
data type, should be replaced by a tuple of two elements. In the
simplest application, the second element of the tuple should be a string
providing a description for the item.

%prep
%setup -q -n sphinxcontrib-documentedlist-%{version}

%build
%python_build

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

%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitelib}/sphinxcontrib/documentedlist.py*
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/documentedlist*.py*
%{python_sitelib}/sphinxcontrib_documentedlist-%{version}-py*-nspkg.pth
%{python_sitelib}/sphinxcontrib_documentedlist-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by