15
0

- Enable testsuite in multibuild mode as it creates cycle otherwise

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2018-08-11 14:43:55 +00:00
committed by Git OBS Bridge
parent f479dc37a4
commit 6d73634f1d
3 changed files with 39 additions and 2 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Aug 11 14:43:12 UTC 2018 - tchvatal@suse.com
- Enable testsuite in multibuild mode as it creates cycle otherwise
-------------------------------------------------------------------
Sat Aug 11 09:50:05 UTC 2018 - tchvatal@suse.com

View File

@@ -16,8 +16,13 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-releases
%if "%{flavor}" == "test"
%bcond_without test
%else
%bcond_with test
%endif
Version: 1.6.1
Release: 0
Summary: A Sphinx extension for changelog manipulation
@@ -29,8 +34,23 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.3
Requires: python-semantic_version < 3.0
Requires: python-semantic_version
Requires: python-six >= 1.4.1
BuildArch: noarch
%if %{with test}
Name: python-releases-%{flavor}
%else
Name: python-releases
%endif
%if %{with tests}
BuildRequires: %{python_module Sphinx >= 1.3}
BuildRequires: %{python_module invocations}
BuildRequires: %{python_module invoke}
BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module semantic_version}
BuildRequires: %{python_module six >= 1.4.1}
BuildRequires: %{python_module spec >= 0.11.3}
%endif
%python_subpackages
%description
@@ -57,12 +77,21 @@ Specifically:
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%python_expand invoke-%{$python_bin_suffix} test
%endif
%files %{python_files}
%doc README.rst
%license LICENSE
%if !%{with test}
%{python_sitelib}/*
%endif
%changelog