From d26c50ca32c96b1690b88b7383d281766f0c316c Mon Sep 17 00:00:00 2001 From: Li Chaoran Date: Thu, 18 May 2023 11:26:50 +0800 Subject: [PATCH] fix: python build failed in openeuler Signed-off-by: Li Chaoran --- python/python-copr.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/python-copr.spec b/python/python-copr.spec index 03cee428a..0a4b91fa7 100644 --- a/python/python-copr.spec +++ b/python/python-copr.spec @@ -1,6 +1,6 @@ %global srcname copr -%if 0%{?fedora} || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} %global with_python3 1 %endif @@ -137,7 +137,7 @@ Requires: python3-future %{?python_provide:%python_provide python3-copr} -%if 0%{?fedora} > 30 || 0%{?rhel} > 8 +%if 0%{?fedora} > 30 || 0%{?rhel} > 8 || 0%{?openEuler} # These are not in requirements.txt Requires: python3-requests-gssapi @@ -147,6 +147,7 @@ BuildRequires: python3-pytest BuildRequires: python3-requests-gssapi BuildRequires: python3-future BuildRequires: python3-filelock +BuildRequires: pyproject-rpm-macros %generate_buildrequires %pyproject_buildrequires -r