diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-21 02:44:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-21 02:44:12 +0000 |
commit | fded6ebb808a1b5156a5a55ce48c3bc114c2f46a (patch) | |
tree | 9006ef697a270f879da1d9e2006fb4651c46ee5d | |
parent | 2c30b149fd5243cf6dca572164bd6e4526ffc96e (diff) |
automatic import of python-copr
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-copr.spec | 16 | ||||
-rw-r--r-- | sources | 2 |
3 files changed, 11 insertions, 8 deletions
@@ -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 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 @@ -1 +1 @@ -796cd359046ad69e86e65d58f4384593 python-copr-git-52.1e41ed5.tar.gz +4bfa95a4e9a425b8d76b0b7366ef625a python-copr-1.129.tar.gz |