From 57a4e500011e6e0cb2a6826f6e4ac4234a5425cbbc04cd6148a6cb146bc1a246 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 1 Aug 2024 18:12:41 +0000 Subject: [PATCH] Accepting request 1190398 from home:amanzini:branches:Archiving - update to 1.5.1: * Stop storing last error when missing zchunk context OBS-URL: https://build.opensuse.org/request/show/1190398 OBS-URL: https://build.opensuse.org/package/show/Archiving/zchunk?expand=0&rev=53 --- .gitattributes | 23 +++++ .gitignore | 1 + zchunk-1.4.0.tar.gz | 3 + zchunk-1.5.1.tar.gz | 3 + zchunk.changes | 240 ++++++++++++++++++++++++++++++++++++++++++++ zchunk.spec | 120 ++++++++++++++++++++++ 6 files changed, 390 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 zchunk-1.4.0.tar.gz create mode 100644 zchunk-1.5.1.tar.gz create mode 100644 zchunk.changes create mode 100644 zchunk.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/zchunk-1.4.0.tar.gz b/zchunk-1.4.0.tar.gz new file mode 100644 index 0000000..2456663 --- /dev/null +++ b/zchunk-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6def0481935006052774e034a22c18a1b668b8c93510188673138312003890eb +size 1513670 diff --git a/zchunk-1.5.1.tar.gz b/zchunk-1.5.1.tar.gz new file mode 100644 index 0000000..2ca41b3 --- /dev/null +++ b/zchunk-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c187055e2206e62cef4559845e7c2ec6ec5a07ce1e0a6044e4342e0c5d7771d +size 1513215 diff --git a/zchunk.changes b/zchunk.changes new file mode 100644 index 0000000..1abedf5 --- /dev/null +++ b/zchunk.changes @@ -0,0 +1,240 @@ +------------------------------------------------------------------- +Tue Jul 30 07:10:32 UTC 2024 - Andrea Manzini + +- update to 1.5.1: + * Stop storing last error when missing zchunk context + +------------------------------------------------------------------- +Tue Feb 20 13:21:07 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang_path macro, [bsc#1212476] + +------------------------------------------------------------------- +Mon Jan 15 10:51:03 UTC 2024 - Dirk Müller + +- update to 1.4.0: + * Rework hash code to support openSSL 3.x EVP API + * memory leak fix + * tests for invalid zchunk files + * More statistics in zchunk_delta_info + * avoid infinite loop under certain conditions + * Add zck_get_chunk_ctx function to get context from chunk + +------------------------------------------------------------------- +Sat Oct 14 10:19:38 UTC 2023 - Dirk Müller + +- update to 1.3.2: + * Handle overflow errors in malformed zchunk files + +------------------------------------------------------------------- +Sun Jun 11 13:32:33 UTC 2023 - Dirk Müller + +- update to 1.3.1: + * Fix read off-by-one bug in compressed int function + * Handle read-data errors correctly + * Ensure memory is freed when zrealloc is called with size 0 + +------------------------------------------------------------------- +Mon Mar 27 11:22:19 UTC 2023 - Dirk Müller + +- update to 1.3.0: + * Add ZCK_NO_WRITE option to disable writing to a file + * meson: Use global function in argp check + +------------------------------------------------------------------- +Sun Feb 19 14:12:46 UTC 2023 - Bernhard Wiedemann + +- update to 1.2.4: + * Update tests to handle zstd 1.5.4 + +------------------------------------------------------------------- +Mon Oct 24 13:06:52 UTC 2022 - Dirk Müller + +- update to 1.2.3: + * Remove meson deprecation warning + * Add license scan report and status + * test/zck_cmp_uncomp: fix printf format types + * meson: add option to build without docs + * zck: declare write_data as static + +------------------------------------------------------------------- +Fri Apr 22 01:32:37 UTC 2022 - Ferdinand Thiessen + +- Update to version 1.2.2 + * Turn off EOL handling for the *.zck test files. + * Let the tests also pass with libzstd-1.4.10. + +------------------------------------------------------------------- +Thu Apr 14 13:49:30 UTC 2022 - Ferdinand Thiessen + +- Update to version 1.2.1 + * Better error detection + * Add support for specifying compression-format in zck + * zck: add option to select chunk hash + * Fix testsuite: Add expected sha256sums for zstd 1.5.1+ + * Fix memory leaks + * Various bug fixes +- Drop upstream merged zstd-1.5.1.patch + +------------------------------------------------------------------- +Mon Jan 3 20:35:40 UTC 2022 - Dirk Müller + +- add zstd-1.5.1.patch (gh#zchunk/zchunk/57) + +------------------------------------------------------------------- +Thu Jun 24 09:51:46 UTC 2021 - Ferdinand Thiessen + +- Update to version 1.1.16 + * Fix major bug when compressing with dictionary + +------------------------------------------------------------------- +Fri May 21 04:53:18 UTC 2021 - Ismail Dönmez + +- Update to version 1.1.14 + * Final fixes for zstd 1.5 support + +------------------------------------------------------------------- +Sat May 15 18:14:53 UTC 2021 - Ismail Dönmez + +- Update to version 1.1.12 + * Update testsuite for zstd 1.5 + +------------------------------------------------------------------- +Mon May 3 16:19:29 UTC 2021 - Ferdinand Thiessen + +- Update to version 1.1.11 + * Fix memory leak of zck->prep_digest + * Fix argp detection + * Handle certain rare web servers that don't start with \r\n +- Drop upstream merged fix-test-argp.patch + +------------------------------------------------------------------- +Mon Apr 26 21:13:02 UTC 2021 - Ferdinand Thiessen + +- Update to version 1.1.9 + * Handle zstd 1.4.7+ + * Update documentation + * unzck: require a *.zck extension + * General bug fixes +- Dropped upstream merged + d2eae512bee09a4047cfe586de12f644d73b0736.patch +- Add fix-test-argp.patch: Fix argp detection + +------------------------------------------------------------------- +Mon Jan 4 08:39:16 UTC 2021 - Dominique Leuenberger + +- Add d2eae512bee09a4047cfe586de12f644d73b0736.patch: Fix build + with zstd 1.4.7+. + +------------------------------------------------------------------- +Sun Jan 19 14:46:28 UTC 2020 - Neal Gompa + +- Update to version 1.1.5 + + Handle write errors correctly + +------------------------------------------------------------------- +Wed Dec 18 08:51:57 UTC 2019 - Martin Pluskal + +- Update to version 1.1.4: + * Simplify regex for detecting part header info + * Fix coverity warnings + * Open files with permissions 0666 and let umask(2) do its job. + * Multipart boundary field can be quoted. + +------------------------------------------------------------------- +Sun Mar 31 15:01:07 UTC 2019 - Neal Gompa + +- Update to version 1.1.0 + + Fix multipart boundary bug when dealing with lighttpd servers + + Optimize chunk matching while downloading, significantly reducing CPU usage + +------------------------------------------------------------------- +Thu Jan 24 20:54:12 UTC 2019 - Neal Gompa + +- Update to version 1.0.3 + + Fix some small bugs found by Coverity + + Fix memory leak and off-by-one errors +- Drop patches part of 1.0.3 release + + 0001-Fix-some-small-bugs-found-by-Coverity.patch + +------------------------------------------------------------------- +Thu Jan 24 04:17:23 UTC 2019 - Neal Gompa + +- Backport patch from upstream to fix bugs discovered by Coverity + + Add patch: 0001-Fix-some-small-bugs-found-by-Coverity.patch + +------------------------------------------------------------------- +Wed Jan 23 10:38:19 UTC 2019 - Neal Gompa + +- Update to version 1.0.2 + + Use hash table for finding identical chunks, speeding up process + considerably + + Add test case to verify that identical chunk checking is working + +------------------------------------------------------------------- +Mon Dec 17 23:07:49 UTC 2018 - Neal Gompa + +- Update to version 0.9.17 + + Turn off some tests for big-endian architectures since zstd + isn't deterministic on them + + Add zck_gen_zdict binary to generate optimal zdict for a zchunk file + + Add functions to API to simplify extracting a single chunk + + Change default zstd compression to 9 for a 6x speed increase in + compression speed for a 5% increase in compression size + + Switch from optional flags to more robust optional elements + + Sanity check hex hashes passed in as an option + +------------------------------------------------------------------- +Mon Oct 29 19:52:30 UTC 2018 - Luigi Baldoni + +- Update to version 0.9.13 + * Add read support for zchunk files with optional flags + * Fix tests for zstd-1.3.6 + +------------------------------------------------------------------- +Sat Sep 29 00:51:14 UTC 2018 - Neal Gompa + +- Bump meson build dependency to match meson.build requirement + +------------------------------------------------------------------- +Sat Sep 29 00:40:50 UTC 2018 - Neal Gompa + +- Rebase to 0.9.11 + + Fix small bug where creating a zck_dl context fails when zck + context is NULL + + Fix security bugs found by Coverity + + Fix test failures for zstd <= 1.3.4 + + Add gen_xml_dictionary to libexecdir with zck_ prefix + + Fix intermittent bug where auto-chunking wasn't deterministic + + ABI (but not API change) - Use bool from stdbool.h + + Allow specification of output file in zck + + Set minimum and maximum chunk sizes for both automatic and + manual chunking + + New error handling functions + + File format changes + + API changes +- Make requirements between subpackages stricter to avoid issues + due to inter-subpackage ABI/API changes + +------------------------------------------------------------------- +Wed Jul 18 08:09:07 UTC 2018 - Martin Pluskal + +- Do not manually specify dependencies which are automatically + generated +- Make requirements of devel package less strict + +------------------------------------------------------------------- +Tue Jul 17 12:46:26 UTC 2018 - Neal Gompa + +- Update to 0.7.6 + + SHA-512 and SHA-512/128 support + + New default chunk checksum type SHA-512/128 + + Automatic chunking moved into libzck and is now default + + New option to disable automatic chunking + + Bugfixes + +------------------------------------------------------------------- +Thu Jul 5 11:32:00 UTC 2018 - Neal Gompa + +- Initial packaging based on Mageia package diff --git a/zchunk.spec b/zchunk.spec new file mode 100644 index 0000000..380b6f0 --- /dev/null +++ b/zchunk.spec @@ -0,0 +1,120 @@ +# +# spec file for package zchunk +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2020 Neal Gompa . +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global somajor 1 +%global libname libzck%{somajor} +%global devname libzck-devel +Name: zchunk +Version: 1.5.1 +Release: 0 +Summary: Compressed file format that allows easy deltas +License: BSD-2-Clause AND MIT +Group: Productivity/Archiving/Compression +URL: https://github.com/zchunk/zchunk +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: meson >= 0.44.0 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(openssl) +# ABI is unstable between components and ensures that patching doesn't break things +Requires: %{libname} = %{version}-%{release} +Provides: bundled(buzhash-urlblock) = 0.1 + +%description +zchunk is a compressed file format that splits the file into independent +chunks. This allows you to only download the differences when downloading a +new version of the file, and also makes zchunk files efficient over rsync. +zchunk files are protected with strong checksums to verify that the file you +downloaded is in fact the file you wanted. + +%package -n %{libname} +Summary: Zchunk library +Group: System/Libraries + +%description -n %{libname} +zchunk is a compressed file format that splits the file into independent +chunks. This allows you to only download the differences when downloading a +new version of the file, and also makes zchunk files efficient over rsync. +zchunk files are protected with strong checksums to verify that the file you +downloaded is in fact the file you wanted. + +This package contains the zchunk library, libzck. + +%package -n %{devname} +Summary: Headers for building against zchunk +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version}-%{release} +Provides: %{name}-devel = %{version}-%{release} + +%description -n %{devname} +zchunk is a compressed file format that splits the file into independent +chunks. This allows you to only download the differences when downloading a +new version of the file, and also makes zchunk files efficient over rsync. +zchunk files are protected with strong checksums to verify that the file you +downloaded is in fact the file you wanted. + +This package contains the headers necessary for building against the zchunk +library, libzck. + +%prep +%autosetup -p1 +# Remove bundled sha libraries +rm -rf src/lib/hash/sha* + +%build +%meson -Dwith-openssl=enabled -Dwith-zstd=enabled +%meson_build + +%install +%meson_install +# Install dictionary generation script +mkdir -p %{buildroot}%{_libexecdir} +install -p contrib/gen_xml_dictionary %{buildroot}%{_libexecdir}/zck_gen_xml_dictionary +%if %{suse_version} >= 1600 +%python3_fix_shebang_path %{buildroot}%{_libexecdir}/* +%endif + +%check +%meson_test + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%license LICENSE +%doc README.md contrib +%{_bindir}/zck* +%{_bindir}/unzck +%{_libexecdir}/zck_gen_xml_dictionary +%{_mandir}/man1/unzck.1%{?ext_man} +%{_mandir}/man1/zck*.1%{?ext_man} + +%files -n %{libname} +%license LICENSE +%{_libdir}/libzck.so.%{somajor} +%{_libdir}/libzck.so.%{version} + +%files -n %{devname} +%doc zchunk_format.txt +%{_libdir}/libzck.so +%{_libdir}/pkgconfig/zck.pc +%{_includedir}/zck.h + +%changelog