From f90a41d644485c449731a71fd1a688a19db9986a Mon Sep 17 00:00:00 2001
From: CoprDistGit <infra@openeuler.org>
Date: Fri, 21 Feb 2025 03:35:05 +0000
Subject: automatic import of copr-backend

---
 .gitignore        |  2 ++
 copr-backend.spec | 54 +++++++++++++++++++++++++++++++++++++++++++++---------
 sources           |  4 ++--
 3 files changed, 49 insertions(+), 11 deletions(-)

diff --git a/.gitignore b/.gitignore
index a1d5b82..47e753f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 /copr-backend-1.168.tar.gz
 /test-data-copr-backend-2.tar.gz
+/copr-backend-1.173.tar.gz
+/test-data-copr-backend-5.tar.gz
diff --git a/copr-backend.spec b/copr-backend.spec
index 0a1a7e3..3c24334 100644
--- a/copr-backend.spec
+++ b/copr-backend.spec
@@ -3,13 +3,13 @@
 %endif
 
 %global prunerepo_version 1.20
-%global tests_version 2
+%global tests_version 5
 %global tests_tar test-data-copr-backend
 
-%global copr_common_version 0.19
+%global copr_common_version 0.20.1.dev1
 
 Name:       copr-backend
-Version:    1.168
+Version:    1.173
 Release:    1%{?dist}
 Summary:    Backend for Copr
 
@@ -37,7 +37,7 @@ BuildRequires: python3-devel
 BuildRequires: python3-setuptools
 
 BuildRequires: python3-copr
-BuildRequires: python3-copr-common = %copr_common_version
+BuildRequires: python3-copr-common >= %copr_common_version
 BuildRequires: python3-daemon
 BuildRequires: python3-dateutil
 BuildRequires: python3-distro
@@ -56,6 +56,7 @@ BuildRequires: python3-retask
 BuildRequires: python3-setproctitle
 BuildRequires: python3-sphinx
 BuildRequires: python3-tabulate
+BuildRequires: python3-zstandard
 BuildRequires: modulemd-tools >= 0.6
 BuildRequires: prunerepo >= %prunerepo_version
 BuildRequires: dnf
@@ -74,7 +75,7 @@ Requires:   obs-signd
 Requires:   openssh-clients
 Requires:   prunerepo >= %prunerepo_version
 Requires:   python3-copr
-Requires:   python3-copr-common = %copr_common_version
+Requires:   python3-copr-common >= %copr_common_version
 Recommends: python3-copr-messaging
 Requires:   python3-daemon
 Requires:   python3-dateutil
@@ -173,8 +174,6 @@ install -d %{buildroot}%{_sysconfdir}/logstash.d
 install -d %{buildroot}%{_datadir}/logstash/patterns/
 cp -a conf/logstash/lighttpd.pattern %{buildroot}%{_datadir}/logstash/patterns/lighttpd.pattern
 
-cp -a conf/playbooks %{buildroot}%{_pkgdocdir}/
-
 install -d %{buildroot}%{_pkgdocdir}/examples/%{_sysconfdir}/logstash.d
 cp -a conf/logstash/copr_backend.conf %{buildroot}%{_pkgdocdir}/examples/%{_sysconfdir}/logstash.d/copr_backend.conf
 
@@ -217,7 +216,6 @@ useradd -r -g copr -G lighttpd -s /bin/bash -c "COPR user" copr
 %config(noreplace) %{_sysconfdir}/logrotate.d/copr-backend
 %dir %{_pkgdocdir}
 %doc %{_pkgdocdir}/lighttpd
-%doc %{_pkgdocdir}/playbooks
 %dir %{_sysconfdir}/copr
 %config(noreplace) %attr(0640, root, copr) %{_sysconfdir}/copr/copr-be.conf
 %{_unitdir}/*.service
@@ -238,9 +236,45 @@ useradd -r -g copr -G lighttpd -s /bin/bash -c "COPR user" copr
 %doc
 %{_pkgdocdir}/
 %exclude %{_pkgdocdir}/lighttpd
-%exclude %{_pkgdocdir}/playbooks
 
 %changelog
+* Thu Nov 23 2023 Pavel Raiskup <praiskup@redhat.com> 1.173-1
+- enforce createrepo_c gzip compression (f39+ switched to zstd)
+- self-identify the resalloc resource in logs
+- dropping the documentary playbooks from copr-backend payload
+- nicer unknown-resalloc-tickets output
+- worker to not call keygen for source builds at all
+- don't sign products of srpm-build
+- longer timeout for fallback generating GPG keys after build
+- recreate missing repodata so that prunerepo doesn't traceback
+- use the rename HashWorkerLimit instead of GroupWorkerLimit
+- provide per-arch & per-owner worker limit implemented
+- collect and compress fedora-review logs after run
+- react on staled SSH connections in some cases
+
+* Tue Aug 15 2023 Pavel Raiskup <praiskup@redhat.com> 1.172-1
+- dump the /update/ payload to worker.log
+- don't run external command(s) to collect built packages
+- don't eat the "build detail collecting" traceback
+- fixes in the unknown-resalloc-tickets.py helper
+- more careful format_evr() method
+- fix tests for zst compression on F39+
+- log task dict in case of error returned from redis
+- skip builds for ExcludeArch and "not" ExclusiveArch
+- offload NEVRA (s)rpm parsing to copr-rpmbuild
+- redis authentication support added
+
+* Tue Jun 06 2023 Pavel Raiskup <praiskup@redhat.com> 1.171-1
+- copr_prune_results.py: work-around the arg_max problem
+
+* Mon Jun 05 2023 Pavel Raiskup <praiskup@redhat.com> 1.170-1
+- copr_prune_results.py: don't enforce appstream-builder, ask FE
+- copr_prune_results.py: just one API call to FE per one repo
+
+* Tue May 23 2023 Jakub Kadlcik <frostyx@email.cz> 1.169-1
+- Forking: better handle FileExistsError
+- Run the copr-rpmbuild command with task URL, not build ID
+
 * Wed Apr 05 2023 Jiri Kyjovsky <j1.kyjovsky@gmail.com> 1.168-1
 - Bump version for release mess
 
@@ -1643,3 +1677,5 @@ copr_log_hitcounter
 
 * Mon Jun 17 2013 Miroslav Suchý <msuchy@redhat.com> 1.1-1
 - new package built with tito
+
+
diff --git a/sources b/sources
index 704becb..adc3d34 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-8dacd18f46475296d0199365db977649  copr-backend-1.168.tar.gz
-a35697a68640fb4c0bcfef02a93eac63  test-data-copr-backend-2.tar.gz
+5ed3646f3887a4ff1656c1f7a05d78eb  copr-backend-1.173.tar.gz
+c94d55e21a4935b3e62f673fbae65af2  test-data-copr-backend-5.tar.gz
-- 
cgit v1.2.3