From 66fbe81b113f55bb6cf2cc946ab5370e547f63c4 Mon Sep 17 00:00:00 2001 From: Joseph Marrero Date: Thu, 5 Oct 2023 16:26:49 -0400 Subject: [PATCH] spec: update python3 macros and builddep --- rpm-ostree.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index 3d3eae4..eaf8544 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -4,7 +4,7 @@ Summary: Hybrid image/package system Name: rpm-ostree Version: 2023.8 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPLv2+ URL: https://github.com/coreos/rpm-ostree # This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot" @@ -39,7 +39,7 @@ BuildRequires: rust %endif # For the autofiles bits below -BuildRequires: /usr/bin/python3 +BuildRequires: python3-devel # We always run autogen.sh BuildRequires: autoconf automake libtool git # For docs @@ -200,8 +200,8 @@ for line in sys.argv[1:]: else: sys.stderr.write('{0} did not match any files\n'.format(line)) EOF -PYTHON=python3 -if ! test -x /usr/bin/python3; then +PYTHON='%{python3}' +if ! test -x '%{python3}'; then PYTHON=python2 fi $PYTHON autofiles.py > files \ @@ -237,6 +237,10 @@ $PYTHON autofiles.py > files.devel \ %files devel -f files.devel %changelog +* Thu Oct 05 2023 Joseph Marrero - 2022.10.117.g52714b51-3 +- Use python macros and devel package + Resolves: #RHEL-11892 + * Mon Oct 02 2023 Colin Walters - 2023.8-2 - https://github.com/coreos/rpm-ostree/releases/tag/v2023.8 https://issues.redhat.com/browse/RHEL-11294