Accepting request 881357 from home:bnavigator:branches:Java:packages

- Can't assume non-existence of python38 macros in Leap.
  gh#openSUSE/python-rpm-macros#107
  Test for suse_version instead. Only Tumbleweed has and needs the
  python_subpackage_only support.

OBS-URL: https://build.opensuse.org/request/show/881357
OBS-URL: https://build.opensuse.org/package/show/Java:packages/javapackages-tools?expand=0&rev=86
This commit is contained in:
Fridrich Strba 2021-03-25 21:29:24 +00:00 committed by Git OBS Bridge
parent 087c00b58f
commit 2dc6c28f3b
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Mar 25 16:27:58 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Can't assume non-existence of python38 macros in Leap.
gh#openSUSE/python-rpm-macros#107
Test for suse_version instead. Only Tumbleweed has and needs the
python_subpackage_only support.
-------------------------------------------------------------------
Sat Nov 28 09:37:25 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -66,8 +66,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: python-rpm-macros
BuildArch: noarch
%if 0%{?python38_version_nodots}
# if python multiflavor is in place yet, use it to generate subpackages
%if 0%{?suse_version} >= 1550
# TW: generate subpackages for every python3 flavor
%define python_subpackage_only 1
%python_subpackages
%else