forked from pool/python-sphinxcontrib-autoprogram
- Add skip-failing-test.patch skipping failing test
gh#sphinx-contrib/autoprogram#54. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-autoprogram?expand=0&rev=11
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%define psuffix %{nil}
|
||||
%if "%{flavor}" != ""
|
||||
@@ -26,7 +25,6 @@
|
||||
# https://github.com/sphinx-contrib/autoprogram/commit/457822502b71a449d97dfece63e77dbee910b581
|
||||
%define skip_python36 1
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sphinxcontrib-%{short_name}%{psuffix}
|
||||
Version: 0.1.7
|
||||
Release: 0
|
||||
@@ -41,6 +39,9 @@ URL: https://github.com/sphinx-contrib/%{short_name}
|
||||
Source0: %{URL}/archive/%{version}/python-sphinxcontrib-%{short_name}-%{version}.tar.gz
|
||||
# https://github.com/sphinx-contrib/autoprogram/pull/25
|
||||
Patch0: python-sphinxcontrib-autoprogram-python310.patch
|
||||
# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# this patch makes things totally awesome
|
||||
Patch1: skip-failing-test.patch
|
||||
BuildRequires: %{python_module Sphinx >= 1.2}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -91,14 +92,16 @@ rm doc/_build/html/objects.inv
|
||||
%check
|
||||
%if "%{flavor}" == "test"
|
||||
export PYTHONPATH='doc'
|
||||
%pyunittest sphinxcontrib/autoprogram.py
|
||||
%pyunittest -v sphinxcontrib.autoprogram.suite
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == ""
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/sphinxcontrib
|
||||
%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-info
|
||||
%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-nspkg.pth
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doc"
|
||||
|
Reference in New Issue
Block a user