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
This commit is contained in:
Michal Domonkos 2021-12-10 10:13:24 +01:00
parent 22c401a002
commit 09b584d5b8
4 changed files with 14 additions and 48 deletions

View File

@ -1,33 +0,0 @@
From 6a582f49fa958e4ba3e374d0e77d814524111dfb Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro@hroncok.cz>
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()

View File

@ -1,16 +1,16 @@
diff -up rpmdevtools-9.3/Makefile.am.orig rpmdevtools-9.3/Makefile.am diff -up rpmdevtools-9.5/Makefile.am.orig rpmdevtools-9.5/Makefile.am
--- rpmdevtools-9.3/Makefile.am.orig 2021-01-22 17:16:13.001772708 +0100 --- rpmdevtools-9.5/Makefile.am.orig 2021-12-10 11:37:29.889405680 +0100
+++ rpmdevtools-9.3/Makefile.am 2021-01-22 17:16:29.477084436 +0100 +++ rpmdevtools-9.5/Makefile.am 2021-12-10 11:37:34.637495820 +0100
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-SUBDIRS = emacs qa-robot -SUBDIRS = emacs qa-robot
+SUBDIRS = emacs +SUBDIRS = emacs
pkgsysconfdir = $(sysconfdir)/rpmdevtools pkgsysconfdir = $(sysconfdir)/rpmdevtools
bashcompdir = @bashcompdir@ bashcompdir = @bashcompdir@
diff -up rpmdevtools-9.3/Makefile.in.orig rpmdevtools-9.3/Makefile.in diff -up rpmdevtools-9.5/Makefile.in.orig rpmdevtools-9.5/Makefile.in
--- rpmdevtools-9.3/Makefile.in.orig 2021-01-22 17:16:05.401628907 +0100 --- rpmdevtools-9.5/Makefile.in.orig 2021-12-10 11:37:31.073428158 +0100
+++ rpmdevtools-9.3/Makefile.in 2021-01-22 17:16:23.122964213 +0100 +++ rpmdevtools-9.5/Makefile.in 2021-12-10 11:37:38.304565439 +0100
@@ -316,7 +316,7 @@ target_alias = @target_alias@ @@ -317,7 +317,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@

View File

@ -1,6 +1,6 @@
Name: rpmdevtools Name: rpmdevtools
Version: 9.3 Version: 9.5
Release: 7%{?dist} Release: 1%{?dist}
Summary: RPM Development Tools Summary: RPM Development Tools
# rpmdev-setuptree is GPLv2, everything else GPLv2+ # 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 Source0: https://releases.pagure.org/rpmdevtools/%{name}-%{version}.tar.xz
Source1: progressbar.py 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 # Fedora-specific downstream patches
## Force legacy datestamp by default until rhbz#1715412 is resolved ## Force legacy datestamp by default until rhbz#1715412 is resolved
Patch1001: 0001-Force-legacy-datestamp-while-RHBZ-1715412-is-still-a.patch Patch1001: 0001-Force-legacy-datestamp-while-RHBZ-1715412-is-still-a.patch
# RHEL-specific downstream patches # RHEL-specific downstream patches
## Remove fakeroot dependency (rhbz#1905465) ## Remove fakeroot dependency (rhbz#1905465)
Patch2001: rpmdevtools-9.3-no_qa_robot.patch Patch2001: rpmdevtools-9.5-no_qa_robot.patch
BuildArch: noarch BuildArch: noarch
# help2man, pod2man, *python for creating man pages # help2man, pod2man, *python for creating man pages
@ -134,6 +130,9 @@ cp %{SOURCE1} %{buildroot}%{_datadir}/rpmdevtools/
%changelog %changelog
* Fri Dec 10 2021 Michal Domonkos <mdomonko@redhat.com> - 9.5-1
- Rebase to 9.5 (#2005756)
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 9.3-7 * Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 9.3-7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688

View File

@ -1 +1 @@
SHA512 (rpmdevtools-9.3.tar.xz) = 87dc8fe2885db2760a7520bc2486655f64e778bce0b6b3c2904ba9f3689e13f5b8d186b6fcebd60f24e958333aae66d06c0690fe2db633c2f508068dd4215f9f SHA512 (rpmdevtools-9.5.tar.xz) = d2a110e7557eb149113560d64b3ec1ce75e5ee5ee541de3b4ed88f2bf11ef0248c864383bbffb49f8c32920563704da94004a8f9c099ce3610e6168aabfe440a