From 4548b004b70b9809625eb84166fe0b520140c877e2d61227f9f2d9180bd567e2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 3 Jun 2020 12:02:02 +0000 Subject: [PATCH] - For Factory change %system_python to python3. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=92 --- python-rpm-macros.changes | 5 +++++ python-rpm-macros.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/python-rpm-macros.changes b/python-rpm-macros.changes index 673bca9..732704c 100644 --- a/python-rpm-macros.changes +++ b/python-rpm-macros.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 3 12:01:30 UTC 2020 - Matej Cepl + +- For Factory change %system_python to python3. + ------------------------------------------------------------------- Wed Jun 03 08:16:36 UTC 2020 - mcepl@cepl.eu diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index 70a268a..d90c177 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -52,6 +52,9 @@ dependencies automatically. %if 0%{?suse_version} < 1330 mv macros-default-pythons macros/035-default-pythons %endif +%if 0%{?suse_version} >= 1550 +sed -i -e '/^%system_python/s/python2/python3/' macros/010-common-defs +%endif %build ./compile-macros.sh