Skip to content

Commit

Permalink
fix: python build failed in openeuler
Browse files Browse the repository at this point in the history
Signed-off-by: Li Chaoran <[email protected]>
  • Loading branch information
pkking committed Jun 29, 2023
1 parent 02aa009 commit 4be9df3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/python-copr.spec
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -133,11 +133,10 @@ Requires: python3-setuptools
Requires: python3-six
Requires: python3-requests-gssapi
Requires: python3-future
%endif

%{?python_provide:%python_provide python3-copr}

%if 0%{?fedora} > 30 || 0%{?rhel} > 8
%else
# These are not in requirements.txt
Requires: python3-requests-gssapi

Expand All @@ -147,6 +146,7 @@ BuildRequires: python3-pytest
BuildRequires: python3-requests-gssapi
BuildRequires: python3-future
BuildRequires: python3-filelock
BuildRequires: pyproject-rpm-macros

%generate_buildrequires
%pyproject_buildrequires -r
Expand Down

0 comments on commit 4be9df3

Please sign in to comment.