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