2013-09-16 09:40:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-programoutput
|
|
|
|
#
|
2020-04-29 10:29:58 +00:00
|
|
|
# Copyright (c) 2020 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
|
|
|
|
|
|
|
|
2017-04-24 16:16:18 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-04-24 08:46:20 +00:00
|
|
|
%bcond_without test
|
2013-09-16 09:40:21 +00:00
|
|
|
Name: python-sphinxcontrib-programoutput
|
2020-04-29 10:29:58 +00:00
|
|
|
Version: 0.16
|
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/
|
2017-04-24 16:16:18 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-programoutput/sphinxcontrib-programoutput-%{version}.tar.gz
|
2019-04-24 08:46:20 +00:00
|
|
|
BuildRequires: %{python_module Sphinx >= 1.8}
|
2017-09-18 21:44:48 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2017-04-24 16:16:18 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-24 08:46:20 +00:00
|
|
|
Requires: python-Sphinx >= 1.8
|
2018-12-04 17:23:35 +00:00
|
|
|
BuildArch: noarch
|
2017-09-18 22:53:01 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
%endif
|
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
|
|
|
|
%setup -q -n sphinxcontrib-programoutput-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-06-19 07:29:45 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2017-04-24 16:16:18 +00:00
|
|
|
%python_build
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
%install
|
2019-06-19 07:29:45 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2017-04-24 16:16:18 +00:00
|
|
|
%python_install
|
2019-09-17 08:45:03 +00:00
|
|
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/sphinxcontrib/programoutput/tests/
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2013-09-16 09:40:21 +00:00
|
|
|
|
2017-09-18 22:53:01 +00:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
2019-09-17 08:45:03 +00:00
|
|
|
# https://github.com/NextThought/sphinxcontrib-programoutput/issues/38
|
2017-09-18 22:53:01 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2019-04-24 08:46:20 +00:00
|
|
|
%python_exec setup.py test
|
2017-09-18 22:53:01 +00:00
|
|
|
%endif
|
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/
|
|
|
|
%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*-nspkg.pth
|
|
|
|
%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*.egg-info
|
2013-09-16 09:40:21 +00:00
|
|
|
|
|
|
|
%changelog
|