2017-04-20 05:43:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-documentedlist
|
|
|
|
#
|
2018-12-04 14:06:14 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-04-20 05:43:54 +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:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2017-04-20 05:43:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-09-18 22:47:56 +00:00
|
|
|
%bcond_with test
|
2017-04-20 05:43:54 +00:00
|
|
|
Name: python-sphinxcontrib-documentedlist
|
2017-09-18 21:44:41 +00:00
|
|
|
Version: 0.6
|
2017-04-20 05:43:54 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Sphinx DocumentedList extension
|
2018-12-04 14:06:14 +00:00
|
|
|
License: BSD-2-Clause
|
2017-04-20 05:43:54 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 14:06:14 +00:00
|
|
|
Url: https://github.com/chintal/sphinxcontrib-documentedlist
|
2017-04-24 14:59:48 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-documentedlist/sphinxcontrib-documentedlist-%{version}.tar.gz
|
2018-12-07 21:05:12 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
2017-09-18 22:47:56 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-04-20 05:43:54 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-24 14:59:48 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-18 22:47:56 +00:00
|
|
|
%if %{with test}
|
2017-09-18 21:44:41 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2017-09-18 22:47:56 +00:00
|
|
|
%endif
|
2017-04-20 05:43:54 +00:00
|
|
|
Requires: python-Sphinx >= 0.6
|
|
|
|
Requires: python-six
|
|
|
|
BuildArch: noarch
|
2017-09-18 21:44:41 +00:00
|
|
|
|
2017-04-20 05:43:54 +00:00
|
|
|
%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
|
2017-04-24 14:59:48 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-04-20 05:43:54 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.rst
|
2017-09-18 21:44:41 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib/documentedlist.py*
|
2018-12-10 12:18:13 +00:00
|
|
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__
|
2017-04-24 14:59:48 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib_documentedlist-%{version}-py*-nspkg.pth
|
|
|
|
%{python_sitelib}/sphinxcontrib_documentedlist-%{version}-py*.egg-info
|
2017-04-20 05:43:54 +00:00
|
|
|
|
|
|
|
%changelog
|