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 5d43c94
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions python/python-copr.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
%global srcname copr

%if 0%{?fedora} || 0%{?rhel} > 7
%global with_python3 1
%endif

%if 0%{?rhel} && 0%{?rhel} <= 7
%global with_python2 1
%else
%global with_python3 1
%endif

Name: python-copr
Expand Down Expand Up @@ -133,11 +131,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 +144,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 5d43c94

Please sign in to comment.