From 09b584d5b857ad6b041d8739276b64ba1e601fb0 Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Fri, 10 Dec 2021 10:13:24 +0100 Subject: [PATCH] Rebase to 9.5 The Fedora package also has a Recommends on rpmautospec since 9.4, but we don't ship that in RHEL or EPEL 9 currently, so not including it here. Resolves: #2005756 --- 77.patch | 33 ------------------- ...patch => rpmdevtools-9.5-no_qa_robot.patch | 14 ++++---- rpmdevtools.spec | 13 ++++---- sources | 2 +- 4 files changed, 14 insertions(+), 48 deletions(-) delete mode 100644 77.patch rename rpmdevtools-9.3-no_qa_robot.patch => rpmdevtools-9.5-no_qa_robot.patch (51%) diff --git a/77.patch b/77.patch deleted file mode 100644 index ff603cf..0000000 --- a/77.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 6a582f49fa958e4ba3e374d0e77d814524111dfb Mon Sep 17 00:00:00 2001 -From: Miro HronĨok -Date: Jan 23 2021 13:15:35 +0000 -Subject: Use Accept-Encoding: identity together with decode_content=False - - -This should fix both the issues: - - - gzips decompressed: https://pagure.io/rpmdevtools/issue/72 - - texts compressed: https://pagure.io/rpmdevtools/issue/76 - - $ file tor-0.4.5.4-rc.tar.gz tor-0.4.5.4-rc.tar.gz.asc xrootd-5.0.3.tar.gz - tor-0.4.5.4-rc.tar.gz: gzip compressed data, max compression, from Unix, original size modulo 2^32 35962880 - tor-0.4.5.4-rc.tar.gz.asc: PGP signature Signature (old) - xrootd-5.0.3.tar.gz: gzip compressed data, max compression, from Unix, original size modulo 2^32 981462405 - ---- - -diff --git a/rpmdev-spectool b/rpmdev-spectool -index 56a2d43..a324fab 100755 ---- a/rpmdev-spectool -+++ b/rpmdev-spectool -@@ -239,6 +239,9 @@ def download(url, target, headers=None, tracker: Optional[ProgressTracker] = Non - headers = {} - - headers.setdefault("User-Agent", "rpmdev-spectool") -+ # identity should prevent servers from sending gzip-compressed text -+ # which would later not be decompressed because we set decode_content=False -+ headers.setdefault("Accept-Encoding", "identity") - - ret = requests.get(url, headers=headers, stream=True) - ret.raise_for_status() - diff --git a/rpmdevtools-9.3-no_qa_robot.patch b/rpmdevtools-9.5-no_qa_robot.patch similarity index 51% rename from rpmdevtools-9.3-no_qa_robot.patch rename to rpmdevtools-9.5-no_qa_robot.patch index 96b557a..1e17765 100644 --- a/rpmdevtools-9.3-no_qa_robot.patch +++ b/rpmdevtools-9.5-no_qa_robot.patch @@ -1,16 +1,16 @@ -diff -up rpmdevtools-9.3/Makefile.am.orig rpmdevtools-9.3/Makefile.am ---- rpmdevtools-9.3/Makefile.am.orig 2021-01-22 17:16:13.001772708 +0100 -+++ rpmdevtools-9.3/Makefile.am 2021-01-22 17:16:29.477084436 +0100 +diff -up rpmdevtools-9.5/Makefile.am.orig rpmdevtools-9.5/Makefile.am +--- rpmdevtools-9.5/Makefile.am.orig 2021-12-10 11:37:29.889405680 +0100 ++++ rpmdevtools-9.5/Makefile.am 2021-12-10 11:37:34.637495820 +0100 @@ -1,4 +1,4 @@ -SUBDIRS = emacs qa-robot +SUBDIRS = emacs pkgsysconfdir = $(sysconfdir)/rpmdevtools bashcompdir = @bashcompdir@ -diff -up rpmdevtools-9.3/Makefile.in.orig rpmdevtools-9.3/Makefile.in ---- rpmdevtools-9.3/Makefile.in.orig 2021-01-22 17:16:05.401628907 +0100 -+++ rpmdevtools-9.3/Makefile.in 2021-01-22 17:16:23.122964213 +0100 -@@ -316,7 +316,7 @@ target_alias = @target_alias@ +diff -up rpmdevtools-9.5/Makefile.in.orig rpmdevtools-9.5/Makefile.in +--- rpmdevtools-9.5/Makefile.in.orig 2021-12-10 11:37:31.073428158 +0100 ++++ rpmdevtools-9.5/Makefile.in 2021-12-10 11:37:38.304565439 +0100 +@@ -317,7 +317,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/rpmdevtools.spec b/rpmdevtools.spec index 748559f..fd8c3e1 100644 --- a/rpmdevtools.spec +++ b/rpmdevtools.spec @@ -1,6 +1,6 @@ Name: rpmdevtools -Version: 9.3 -Release: 7%{?dist} +Version: 9.5 +Release: 1%{?dist} Summary: RPM Development Tools # rpmdev-setuptree is GPLv2, everything else GPLv2+ @@ -9,17 +9,13 @@ URL: https://pagure.io/rpmdevtools Source0: https://releases.pagure.org/rpmdevtools/%{name}-%{version}.tar.xz Source1: progressbar.py -# Use Accept-Encoding: identity together with decode_content=False -# This is to avoid text files downloaded gzipped -Patch1: https://pagure.io/rpmdevtools/pull-request/77.patch - # Fedora-specific downstream patches ## Force legacy datestamp by default until rhbz#1715412 is resolved Patch1001: 0001-Force-legacy-datestamp-while-RHBZ-1715412-is-still-a.patch # RHEL-specific downstream patches ## Remove fakeroot dependency (rhbz#1905465) -Patch2001: rpmdevtools-9.3-no_qa_robot.patch +Patch2001: rpmdevtools-9.5-no_qa_robot.patch BuildArch: noarch # help2man, pod2man, *python for creating man pages @@ -134,6 +130,9 @@ cp %{SOURCE1} %{buildroot}%{_datadir}/rpmdevtools/ %changelog +* Fri Dec 10 2021 Michal Domonkos - 9.5-1 +- Rebase to 9.5 (#2005756) + * Tue Aug 10 2021 Mohan Boddu - 9.3-7 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688 diff --git a/sources b/sources index 7afdac1..c538562 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rpmdevtools-9.3.tar.xz) = 87dc8fe2885db2760a7520bc2486655f64e778bce0b6b3c2904ba9f3689e13f5b8d186b6fcebd60f24e958333aae66d06c0690fe2db633c2f508068dd4215f9f +SHA512 (rpmdevtools-9.5.tar.xz) = d2a110e7557eb149113560d64b3ec1ce75e5ee5ee541de3b4ed88f2bf11ef0248c864383bbffb49f8c32920563704da94004a8f9c099ce3610e6168aabfe440a