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 28, 2023
1 parent 02aa009 commit d26c50c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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 @@ -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

Expand All @@ -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
Expand Down

0 comments on commit d26c50c

Please sign in to comment.