From fded6ebb808a1b5156a5a55ce48c3bc114c2f46a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 21 Jul 2023 02:44:12 +0000 Subject: automatic import of python-copr --- python-copr.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'python-copr.spec') diff --git a/python-copr.spec b/python-copr.spec index 1db3898..03cee42 100644 --- a/python-copr.spec +++ b/python-copr.spec @@ -1,14 +1,16 @@ %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 Version: 1.129 -Release: 1.git.52.0b462e7%{?dist} +Release: 1%{?dist} Summary: Python interface for Copr License: GPL-2.0-or-later @@ -17,7 +19,7 @@ URL: https://github.com/fedora-copr/copr # Source is created by: # git clone %%url && cd copr # tito build --tgz --tag %%name-%%version-%%release -Source0: python-copr-git-52.1e41ed5.tar.gz +Source0: %name-%version.tar.gz BuildArch: noarch @@ -131,10 +133,11 @@ Requires: python3-setuptools Requires: python3-six Requires: python3-requests-gssapi Requires: python3-future +%endif %{?python_provide:%python_provide python3-copr} -%else +%if 0%{?fedora} > 30 || 0%{?rhel} > 8 # These are not in requirements.txt Requires: python3-requests-gssapi @@ -144,7 +147,6 @@ BuildRequires: python3-pytest BuildRequires: python3-requests-gssapi BuildRequires: python3-future BuildRequires: python3-filelock -BuildRequires: pyproject-rpm-macros %generate_buildrequires %pyproject_buildrequires -r @@ -173,7 +175,7 @@ developers only. %prep -%setup -q -n python-copr-git-52.1e41ed5 +%setup -q %build -- cgit v1.2.3