forked from pool/python-sphinxcontrib-programoutput
Accepting request 527185 from home:TheBlackCat:branches:devel:languages:python
- Use new python-sphinxcontrib package to provide namespace directory. OBS-URL: https://build.opensuse.org/request/show/527185 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-programoutput?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 18 22:29:06 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Use new python-sphinxcontrib package to provide namespace
|
||||
directory.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 18 20:36:57 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-sphinxcontrib-programoutput
|
||||
Version: 0.10
|
||||
Release: 0
|
||||
@@ -25,12 +26,17 @@ 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}
|
||||
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 pytest}
|
||||
%endif
|
||||
Requires: python-Sphinx
|
||||
Requires: python-sphinxcontrib
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -49,14 +55,17 @@ documents, helping you to keep your command examples up to date.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
#NOTE(saschpe): Running tests works but there's an UTF-8 issue I don't yet care about:
|
||||
#%%check
|
||||
#PYTHONPATH=%%{buildroot}%%{python_sitelib} py.test
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
py.test-%{$python_bin_suffix}
|
||||
}
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.rst LICENSE README.rst
|
||||
%dir %{python_sitelib}/sphinxcontrib/
|
||||
%{python_sitelib}/sphinxcontrib/programoutput/
|
||||
%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*-nspkg.pth
|
||||
%{python_sitelib}/sphinxcontrib_programoutput-%{version}-py*.egg-info
|
||||
|
Reference in New Issue
Block a user