Accepting request 860162 from Archiving

OBS-URL: https://build.opensuse.org/request/show/860162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zchunk?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2021-01-08 16:32:25 +00:00 committed by Git OBS Bridge
commit 5c303f9fa6
3 changed files with 71 additions and 2 deletions

View File

@ -0,0 +1,62 @@
From d2eae512bee09a4047cfe586de12f644d73b0736 Mon Sep 17 00:00:00 2001
From: Jonathan Dieter <jdieter@gmail.com>
Date: Wed, 30 Dec 2020 22:44:08 +0000
Subject: [PATCH] Handle zstd 1.4.7+
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
---
test/meson.build | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/test/meson.build b/test/meson.build
index d010b92..2d9c8a4 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -214,7 +214,10 @@ test(
)
if build_machine.endian() != 'big'
- check_sha = '45e48c11fea129d2c434ffcec7d8fbc1720f30f33d438654cd117616121c218e'
+ check_sha = 'eff3098803ba80f0c446d49f48188f89167d7f29cdc8a98c19f0ecfb4e2ee3c9'
+ if zstd_dep.found() and zstd_dep.version().version_compare('<=1.4.6')
+ check_sha = '45e48c11fea129d2c434ffcec7d8fbc1720f30f33d438654cd117616121c218e'
+ endif
if zstd_dep.found() and zstd_dep.version().version_compare('<=1.3.5')
check_sha = '45e48c11fea129d2c434ffcec7d8fbc1720f30f33d438654cd117616121c218e'
endif
@@ -234,7 +237,10 @@ if build_machine.endian() != 'big'
]
)
- check_sha = 'b4805798547be62421944a87db3a90de455b4772c6013e685720b49336b8b17e'
+ check_sha = 'b86795ca14eb04b382d1c7f94501aa5d1a2ddb05a5351c0235d00edb954e9b66'
+ if zstd_dep.found() and zstd_dep.version().version_compare('<=1.4.6')
+ check_sha = 'b4805798547be62421944a87db3a90de455b4772c6013e685720b49336b8b17e'
+ endif
if zstd_dep.found() and zstd_dep.version().version_compare('<=1.3.4')
check_sha = '0fb0f2262c62714063e409117fcbd4c114b35e3abbfc90b042a41246b62ff789'
endif
@@ -252,7 +258,10 @@ if build_machine.endian() != 'big'
)
endif
-check_sha = '9472ddc74dbd96291077bbb8d793e605824be8dba45e3e94bbc54b7de21a37a1'
+check_sha = 'c46929367cd3d05daaca3b44657726791b428fb2198f5e7e5367b5cc781307aa'
+if zstd_dep.found() and zstd_dep.version().version_compare('<=1.4.6')
+ check_sha = '9472ddc74dbd96291077bbb8d793e605824be8dba45e3e94bbc54b7de21a37a1'
+endif
if zstd_dep.found() and zstd_dep.version().version_compare('<=1.3.5')
check_sha = '6911b50cad5b6ed3ee89322338c559afdd0e72f614d3817b47ce370df52fd6b4'
endif
@@ -276,7 +285,10 @@ test(
]
)
-check_sha = '4e86b47410a3a5090c7d60040d24d8d390c31f16f96ea112c8f153888eaf8c6e'
+check_sha = '5fc2449aeb51f6a898529fa4d53b04de6df6a352826f819dc2b39b153ddaa788'
+if zstd_dep.found() and zstd_dep.version().version_compare('<=1.4.6')
+ check_sha = '4e86b47410a3a5090c7d60040d24d8d390c31f16f96ea112c8f153888eaf8c6e'
+endif
if zstd_dep.found() and zstd_dep.version().version_compare('<=1.3.5')
check_sha = '62ee66fbf41a1f18617f400383eb38905050050f0f435a6e56df4a30d1bb694d'
endif

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 4 08:39:16 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Add d2eae512bee09a4047cfe586de12f644d73b0736.patch: Fix build
with zstd 1.4.7+.
-------------------------------------------------------------------
Sun Jan 19 14:46:28 UTC 2020 - Neal Gompa <ngompa13@gmail.com>
@ -9,7 +15,7 @@ Wed Dec 18 08:51:57 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.1.4:
* Simplify regex for detecting part header info
* Fix coverity warnings
* Fix coverity warnings
* Open files with permissions 0666 and let umask(2) do its job.
* Multipart boundary field can be quoted.

View File

@ -1,7 +1,7 @@
#
# spec file for package zchunk
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020 Neal Gompa <ngompa13@gmail.com>.
#
# All modifications and additions to the file contributed by third parties
@ -29,6 +29,7 @@ License: BSD-2-Clause AND MIT
Group: Productivity/Archiving/Compression
URL: https://github.com/zchunk/zchunk
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: https://github.com/zchunk/zchunk/commit/d2eae512bee09a4047cfe586de12f644d73b0736.patch
BuildRequires: meson >= 0.44.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl)