- Switch to multibuild to fix testing issues
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-websupport?expand=0&rev=21
This commit is contained in:
parent
ac1efebb02
commit
67f874937b
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 6 10:48:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to multibuild to fix testing issues
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 24 19:52:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Fri May 24 19:52:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -17,23 +17,34 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-sphinxcontrib-websupport
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-sphinxcontrib-websupport%{psuffix}
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Sphinx API for Web Apps
|
Summary: Sphinx API for Web Apps
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://sphinx-doc.org/
|
URL: https://github.com/sphinx-doc/sphinxcontrib-websupport
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib-websupport-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib-websupport-%{version}.tar.gz
|
||||||
|
%if %{with test}
|
||||||
BuildRequires: %{python_module Jinja2}
|
BuildRequires: %{python_module Jinja2}
|
||||||
BuildRequires: %{python_module SQLAlchemy}
|
BuildRequires: %{python_module SQLAlchemy}
|
||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
BuildRequires: %{python_module Whoosh}
|
BuildRequires: %{python_module Whoosh}
|
||||||
BuildRequires: %{python_module docutils}
|
BuildRequires: %{python_module docutils}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: %{python_module sphinxcontrib-websupport >= %{version}}
|
||||||
BuildRequires: %{python_module xapian}
|
BuildRequires: %{python_module xapian}
|
||||||
|
%endif
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Jinja2
|
Requires: python-Jinja2
|
||||||
@ -59,12 +70,17 @@ documentation into your Web application.
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES README.rst
|
%doc CHANGES README.rst
|
||||||
@ -72,5 +88,6 @@ documentation into your Web application.
|
|||||||
%{python_sitelib}/sphinxcontrib/websupport/
|
%{python_sitelib}/sphinxcontrib/websupport/
|
||||||
%{python_sitelib}/sphinxcontrib_websupport-%{version}-py*-nspkg.pth
|
%{python_sitelib}/sphinxcontrib_websupport-%{version}-py*-nspkg.pth
|
||||||
%{python_sitelib}/sphinxcontrib_websupport-%{version}-py*.egg-info
|
%{python_sitelib}/sphinxcontrib_websupport-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user