forked from pool/python-sphinxcontrib-programoutput
Accepting request 1248134 from home:mcalabkova:branches:devel:languages:python
- update to 0.18: * Drop support for Python < 3.8. This means Python 2 is no longer supported. * Drop setuptools dependency. Instead, use a native pkgutil namespace package. * Now requires docutils >= 0.18.1. This effectively requires Sphinx versions newer than 5.0. * Add the language option. Added in :pr:`62` by Even Rouault. OBS-URL: https://build.opensuse.org/request/show/1248134 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-programoutput?expand=0&rev=24
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sphinxcontrib-programoutput
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,18 +18,18 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-sphinxcontrib-programoutput
|
||||
Version: 0.17
|
||||
Version: 0.18
|
||||
Release: 0
|
||||
Summary: Sphinx extension to include program output
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://sphinxcontrib-programoutput.readthedocs.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-programoutput/sphinxcontrib-programoutput-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Sphinx >= 1.8}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
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}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Sphinx >= 1.8
|
||||
Requires: python-Sphinx >= 5.0
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -41,16 +41,17 @@ A Sphinx extension to literally insert the output of arbitrary commands into
|
||||
documents, helping you to keep your command examples up to date.
|
||||
|
||||
%prep
|
||||
%setup -q -n sphinxcontrib-programoutput-%{version}
|
||||
%setup -q -n sphinxcontrib_programoutput-%{version}
|
||||
|
||||
%build
|
||||
export LANG=en_US.UTF-8
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
export LANG=en_US.UTF-8
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/sphinxcontrib/programoutput/tests/
|
||||
rm -r %{buildroot}%{$python_sitelib}/sphinxcontrib/__*
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
|
||||
@@ -62,7 +63,6 @@ export LANG=en_US.UTF-8
|
||||
%license LICENSE
|
||||
%doc CHANGES.rst README.rst
|
||||
%{python_sitelib}/sphinxcontrib/programoutput/
|
||||
%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*-nspkg.pth
|
||||
%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*.egg-info
|
||||
%{python_sitelib}/sphinxcontrib_programoutput-%{version}*info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user