From b3f2b618a2ce74cb90105ae8b5c416d0d18bbdee Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 21 Jul 2023 02:44:12 +0000 Subject: automatic import of python-copr --- .gitignore | 1 + python-copr.spec | 16 +++++++++------- sources | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 423be60..9c1a78c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /python-copr-git-7640.9b8b541.tar.gz /python-copr-git-7640.d26c50c.tar.gz /python-copr-git-52.1e41ed5.tar.gz +/python-copr-1.129.tar.gz diff --git a/python-copr.spec b/python-copr.spec index 536e0ea..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.90578dc%{?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 diff --git a/sources b/sources index 5daaef4..51a8416 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -11faef5b755f226c2747083abaaf81c3 python-copr-git-52.1e41ed5.tar.gz +4bfa95a4e9a425b8d76b0b7366ef625a python-copr-1.129.tar.gz -- cgit v1.2.3