forked from pool/python-proto-plus
- Add multibuild to defeat a build loop.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proto-plus?expand=0&rev=7
This commit is contained in:
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 10 01:25:57 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add multibuild to defeat a build loop.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 10 10:52:33 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org>
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-proto-plus
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
@@ -17,9 +17,16 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%define skip_python2 1
|
||||
%define modname proto-plus
|
||||
Name: python-proto-plus
|
||||
Name: python-proto-plus%{psuffix}
|
||||
Version: 1.19.0
|
||||
Release: 0
|
||||
Summary: Pythonic Protocol Buffers
|
||||
@@ -31,8 +38,10 @@ BuildRequires: %{python_module protobuf >= 3.12.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module google-api-core >= 1.22.2}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-protobuf >= 3.12.0
|
||||
@@ -52,15 +61,21 @@ that largely behave like native Python types.
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user