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