From 5cf3b7ef137c9a780e70b17f20340011055fa428 Mon Sep 17 00:00:00 2001
From: CoprDistGit <infra@openeuler.org>
Date: Mon, 22 May 2023 11:27:14 +0000
Subject: automatic import of copr-rpmbuild

---
 copr-rpmbuild.spec | 44 ++++++++++++++++++++++++++++----------------
 1 file changed, 28 insertions(+), 16 deletions(-)

(limited to 'copr-rpmbuild.spec')

diff --git a/copr-rpmbuild.spec b/copr-rpmbuild.spec
index d238da3..bdc13e8 100644
--- a/copr-rpmbuild.spec
+++ b/copr-rpmbuild.spec
@@ -21,7 +21,7 @@ Requires: %1 \
 %{expand: %%global latest_requires_packages %1 %%{?latest_requires_packages}}
 
 Name:    copr-rpmbuild
-Version: 0.64
+Version: 0.66
 Summary: Run COPR build tasks
 Release: 1%{?dist}
 URL: https://github.com/fedora-copr/copr
@@ -47,7 +47,7 @@ BuildRequires: %{python_pfx}-munch
 BuildRequires: %{python}-requests
 BuildRequires: %{python_pfx}-jinja2
 BuildRequires: %{python_pfx}-simplejson
-BuildRequires: %{python}-backoff
+BuildRequires: python-backoff >= 1.9.0
 
 %if 0%{?fedora} || 0%{?rhel} > 7
 BuildRequires: argparse-manpage
@@ -68,17 +68,19 @@ Requires: %{python_pfx}-jinja2
 Requires: %{python_pfx}-munch
 Requires: %{python}-requests
 Requires: %{python_pfx}-simplejson
-Requires: %{python}-backoff
+Requires: python-backoff >= 1.9.0
 
 Requires: mock >= 2.0
 Requires: git
 Requires: git-svn
 # for the /bin/unbuffer binary
 Requires: expect
+%if !0%{?openEuler}
 Requires: qemu-user-static
+%endif
 Requires: sed
 
-%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler}
+%if 0%{?fedora} || 0%{?rhel} > 7
 Recommends: rpkg
 Recommends: python-srpm-macros
 Suggests: tito
@@ -98,7 +100,7 @@ Summary: copr-rpmbuild with all weak dependencies
 Requires: %{name} = %{version}-%{release}
 Requires: copr-distgit-client = %{version}-%{release}
 
-%if 0%{?fedora} || 0%{?openEuler}
+%if 0%{?fedora}
 # replacement for yum/yum-utils, to be able to work with el* chroots
 # bootstrap_container.
 Requires: dnf-yum
@@ -116,23 +118,25 @@ Requires: libsemanage-python
 Requires: nosync
 %ifarch x86_64
 # multilib counterpart to avoid: config_opts['nosync_force'] = True
+%if !0%{?openEuler}
 Requires: nosync(x86-32)
 %endif
+%endif
 Requires: openssh-clients
 Requires: podman
+%if !0%{?openEuler}
 Requires: pyp2rpm
 Requires: pyp2spec
-# We need %%pypi_source defined, which is in 3-29+
-Requires: python-srpm-macros >= 3-29
-Requires: rpkg
-Requires: rsync
 Requires: rubygem-gem2rpm
 Requires: scl-utils-build
-Requires: tito
-%if 0%{?rhel} || 0%{?fedora}
 Requires: fedora-review >= 0.8
 Requires: fedora-review-plugin-java
 %endif
+# We need %%pypi_source defined, which is in 3-29+
+Requires: python-srpm-macros >= 3-29
+Requires: rpkg
+Requires: rsync
+Requires: tito
 # yum* to allow mock to build against el* chroots without bootstrap_container
 %if 0%{?rhel}
 Requires: yum
@@ -141,8 +145,13 @@ Requires: yum-utils
 
 # We want those to be always up-2-date
 %latest_requires ca-certificates
+%if !0%{?openEuler}
 %latest_requires distribution-gpg-keys
-%if 0%{?fedora}
+%latest_requires redhat-rpm-config
+# Outdated gem2rpm version may have problems with fetching from rubygems.org
+%latest_requires rubygem-gem2rpm
+%endif
+%if 0%{?fedora} || 0%{?openEuler}
 %latest_requires dnf
 %latest_requires dnf-plugins-core
 %latest_requires libdnf
@@ -151,12 +160,8 @@ Requires: yum-utils
 %endif
 %latest_requires mock
 %latest_requires mock-core-configs
-%latest_requires redhat-rpm-config
 %latest_requires rpm
 
-# Outdated gem2rpm version may have problems with fetching from rubygems.org
-%latest_requires rubygem-gem2rpm
-
 
 %description -n copr-builder
 Provides command capable of running COPR build-tasks.
@@ -340,6 +345,13 @@ install -p -m 644 copr_distgit_client.py %{buildroot}%{expand:%%%{python}_siteli
 
 
 %changelog
+* Tue Apr 04 2023 Jiri Kyjovsky <j1.kyjovsky@gmail.com> 0.66-1
+- Ise 'git switch', not 'git checkout'
+
+* Wed Mar 22 2023 Jiri Kyjovsky <j1.kyjovsky@gmail.com> 0.65-1
+- Add basic "clone" method
+- Define some copr-specific environment variables
+
 * Wed Jan 25 2023 Jakub Kadlcik <frostyx@email.cz> 0.64-1
 - Add runtime dependency for python-backoff
 
-- 
cgit v1.2.3