From eece12da597425a94fcda8353de97c871ee4fd5e Mon Sep 17 00:00:00 2001
From: CoprDistGit <infra@openeuler.org>
Date: Fri, 21 Jul 2023 03:22:44 +0000
Subject: automatic import of python-copr

---
 python-copr.spec | 23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

(limited to 'python-copr.spec')

diff --git a/python-copr.spec b/python-copr.spec
index 03cee42..fbebe8d 100644
--- a/python-copr.spec
+++ b/python-copr.spec
@@ -1,16 +1,14 @@
 %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%{?dist}
+Release:    1.git.62.7442ec4%{?dist}
 Summary:    Python interface for Copr
 
 License:    GPL-2.0-or-later
@@ -19,7 +17,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:    %name-%version.tar.gz
+Source0: python-copr-git-62.dd025d4.tar.gz
 
 BuildArch:  noarch
 
@@ -39,7 +37,6 @@ BuildRequires: python-configparser
 BuildRequires: pytest
 BuildRequires: python2-devel
 BuildRequires: python2-requests-gssapi
-BuildRequires: python-future
 # for doc package
 BuildRequires: python-sphinx
 BuildRequires: python-docutils
@@ -54,7 +51,6 @@ BuildRequires: python-munch
 BuildRequires: python2-filelock
 BuildRequires: python2-configparser
 BuildRequires: python2-requests-gssapi
-BuildRequires: python-future
 # for doc package
 BuildRequires: python2-sphinx
 BuildRequires: python2-docutils
@@ -86,7 +82,6 @@ Requires: python-requests-toolbelt
 Requires: python-requests-gssapi
 Requires: python-setuptools
 Requires: python-six >= 1.9.0
-Requires: python-future
 %else
 Requires: python2-configparser
 Requires: python2-munch
@@ -96,7 +91,6 @@ Requires: python2-requests-toolbelt
 Requires: python2-setuptools
 Requires: python2-requests-gssapi
 Requires: python2-six >= 1.9.0
-Requires: python-future
 %endif
 
 %{?python_provide:%python_provide python2-copr}
@@ -123,7 +117,6 @@ BuildRequires: python3-requests-toolbelt
 BuildRequires: python3-six
 BuildRequires: python3-sphinx
 BuildRequires: python3-requests-gssapi
-BuildRequires: python3-future
 
 Requires: python3-munch
 Requires: python3-filelock
@@ -132,12 +125,10 @@ Requires: python3-requests-toolbelt
 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
 
@@ -145,8 +136,8 @@ BuildRequires: python3-devel
 BuildRequires: python3-sphinx
 BuildRequires: python3-pytest
 BuildRequires: python3-requests-gssapi
-BuildRequires: python3-future
 BuildRequires: python3-filelock
+BuildRequires: pyproject-rpm-macros
 
 %generate_buildrequires
 %pyproject_buildrequires -r
@@ -175,7 +166,7 @@ developers only.
 
 
 %prep
-%setup -q
+%setup -q -n python-copr-git-62.dd025d4
 
 
 %build
-- 
cgit v1.2.3