2013-09-16 09:40:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-programoutput
|
|
|
|
#
|
2025-02-24 14:34:39 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2013-09-16 09:40:21 +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:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-24 16:16:18 +00:00
|
|
|
#
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
|
2024-01-06 13:08:52 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-09-16 09:40:21 +00:00
|
|
|
Name: python-sphinxcontrib-programoutput
|
2025-02-24 14:34:39 +00:00
|
|
|
Version: 0.18
|
2013-09-16 09:40:21 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Sphinx extension to include program output
|
2017-04-24 16:16:18 +00:00
|
|
|
License: BSD-2-Clause
|
2013-09-16 09:40:21 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:23:35 +00:00
|
|
|
URL: http://sphinxcontrib-programoutput.readthedocs.org/
|
2025-02-24 14:34:39 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib_programoutput/sphinxcontrib_programoutput-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Sphinx >= 5.0}
|
|
|
|
BuildRequires: %{python_module pip}
|
2017-09-18 21:44:48 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-24 16:16:18 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2025-02-24 14:34:39 +00:00
|
|
|
Requires: python-Sphinx >= 5.0
|
2018-12-04 17:23:35 +00:00
|
|
|
BuildArch: noarch
|
2021-09-23 09:55:08 +00:00
|
|
|
# SECTION test requirements
|
2017-09-18 22:53:01 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-09-23 09:55:08 +00:00
|
|
|
# /SECTION
|
2017-04-24 16:16:18 +00:00
|
|
|
%python_subpackages
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A Sphinx extension to literally insert the output of arbitrary commands into
|
|
|
|
documents, helping you to keep your command examples up to date.
|
|
|
|
|
|
|
|
%prep
|
2025-02-24 14:34:39 +00:00
|
|
|
%setup -q -n sphinxcontrib_programoutput-%{version}
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
%build
|
2019-06-19 07:29:45 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2025-02-24 14:34:39 +00:00
|
|
|
%pyproject_wheel
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
%install
|
2019-06-19 07:29:45 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2025-02-24 14:34:39 +00:00
|
|
|
%pyproject_install
|
2019-09-17 08:45:03 +00:00
|
|
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/sphinxcontrib/programoutput/tests/
|
2025-02-24 14:34:39 +00:00
|
|
|
rm -r %{buildroot}%{$python_sitelib}/sphinxcontrib/__*
|
2019-09-17 08:45:03 +00:00
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2013-09-16 09:40:21 +00:00
|
|
|
|
2017-09-18 22:53:01 +00:00
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2021-09-23 09:55:08 +00:00
|
|
|
%pyunittest -v src/sphinxcontrib/programoutput/tests/test*.py
|
2013-09-16 09:40:21 +00:00
|
|
|
|
2017-04-24 16:16:18 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:23:35 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES.rst README.rst
|
2017-09-18 21:44:48 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib/programoutput/
|
2025-02-24 14:34:39 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib_programoutput-%{version}*info
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
%changelog
|