Sync from SUSE:SLFO:Main libzip revision 888a5ffea3f49218dc5728ae36aa66da

This commit is contained in:
Adrian Schröter 2024-05-03 16:15:27 +02:00
commit 620cbe823d
5 changed files with 626 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libzip5

BIN
libzip-1.10.1.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

471
libzip.changes Normal file
View File

@ -0,0 +1,471 @@
-------------------------------------------------------------------
Thu Aug 24 13:04:37 UTC 2023 - pgajdos@suse.com
- version update to 1.10.1
* Add `ZIP_LENGTH_TO_END` and `ZIP_LENGTH_UNCHECKED`. Unless
`ZIP_LENGTH_UNCHECKED` is used as `length`, it is an error
for a file to shrink between the time when the source is
created and when its data is read.
-------------------------------------------------------------------
Tue Jun 27 12:23:07 UTC 2023 - pgajdos@suse.com
- version update to 1.10.0
* Make support for layered sources public.
* Add `zip_source_zip_file` and `zip_source_zip_file_create`, deprecate `zip_source_zip` and `zip_source_zip_create`.
* Allow reading changed file data.
* Fix handling of files of size 4294967295.
* `zipmerge`: copy extra fields.
* `zipmerge`: add option to keep files uncompressed.
* Switch test framework to use nihtest instead of Perl.
* Fix reading/writing compressed data with buffers > 4GiB.
* Restore support for torrentzip.
* Add warnings when using deprecated functions.
* Allow keeping files for empty archives.
* Support mbedTLS>=3.3.0.
* Support OpenSSL 3.
* Use ISO C secure library functions, if available.
-------------------------------------------------------------------
Fri Jul 1 12:27:57 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>
- libzip 1.9.2:
* Fix version number in header file.
* Fix zip_file_is_seekable().
* Add zip_file_is_seekable().
* Improve compatibility with WinAES.
* Fix encoding handling in zip_name_locate().
* Add option to zipcmp to output summary of changes.
* Various bug fixes and documentation improvements.
-------------------------------------------------------------------
Sun Jun 20 18:27:59 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
- libzip 1.8.0:
* Add support for zstd (Zstandard) compression
* Add support for lzma (ID 14) compression
* Add zip_source_window_create()
* Add zip_source_zip_create() variant to zip_source_zip()
* Allow method specific comp_flags in zip_set_file_compression()
* Allow zip_source_tell() on sources that don't support seeking
and zip_ftell() on compressed data
* Provide more details for consistency check errors
* Improve output of zipcmp
* In zipcmp, dont ignore empty directories when comparing
directory listing
* Treat empty string as no password given in
zip_file_set_encryption(), zip_fopen_encrypted(), and
zip_set_default_password()
- drop libzip-pkgconfig.patch, no longer required
-------------------------------------------------------------------
Sat Nov 14 14:14:14 UTC 2020 - olaf@aepfle.de
- Use full _libdir path in libzip.pc
-------------------------------------------------------------------
Wed Jul 15 10:27:57 UTC 2020 - pgajdos@suse.com
- version update to 1.7.3
* Support cmake < 3.17 again.
* Fix pkgconfig file (regression in 1.7.2).
- deleted patches
- libzip-cmake-rules.patch (upstreamed)
- added patches
fix libdir in pkg-config file (revive the patch from 1.7.1 and
older)
+ libzip-pkgconfig.patch
-------------------------------------------------------------------
Mon Jul 13 14:59:48 UTC 2020 - pgajdos@suse.com
- cmake tweaks: use upstream commit
- modified patches
% libzip-cmake-rules.patch (refreshed)
-------------------------------------------------------------------
Mon Jul 13 08:12:10 UTC 2020 - pgajdos@suse.com
- version update to 1.7.2
* Fixes for the CMake find_project() files.
* libzip moved to the CMake libzip:: NAMESPACE.
* CMake usage best practice cleanups.
- deleted patches
- pkgconfig.patch (extended and renamed)
- added patches
+ libzip-cmake-rules.patch
-------------------------------------------------------------------
Sun Jun 14 06:41:41 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>
- libzip 1.7.1:
* Restore LIBZIP_VERSION_{MAJOR,MINOR,MICRO} symbols.
* Add LIBZIP_DO_INSTALL build setting to make it easier to use
libzip as subproject
- build with LZMA to support XZ compressed files
- switch to upstream preferred provider of AES support: GnuTLS
-------------------------------------------------------------------
Sat Jun 6 06:05:45 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>
- libzip 1.7.0:
* Add support for encrypting using traditional PKWare encryption
* Add functions for querying supported compression and encryption
methods
* Add the ZIP_SOURCE_GET_FILE_ATTRIBUTES` source command
* Refactor stdio file backend
* Add CMake find_project() support
-------------------------------------------------------------------
Mon Feb 24 08:26:07 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
- version update to 1.6.1
* Bugfix for double-free in zipcmp(1) during cleanup.
-------------------------------------------------------------------
Mon Jan 27 11:27:42 UTC 2020 - pgajdos@suse.com
- version update to 1.6.0
* Avoid using umask() since it's not thread-safe.
* Set close-on-exec flag when opening files.
* Do not accept empty files as valid zip archives any longer.
* Add support for XZ compressed files (using liblzma).
* Add support for cancelling while closing zip archives.
* Add support for setting the time in the on-disk format.
- modified patches
% pkgconfig.patch (refreshed)
- deleted patches
- libzip-ocloexec.patch (upstreamed)
-------------------------------------------------------------------
Tue Mar 12 16:43:53 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
- Update to version 1.5.2
* Fix bug in AES encryption affecting certain file sizes
* Keep file permissions when modifying zip archives
* Support systems with small stack size.
* Support mbed TLS as crypto backend.
* Add nullability annotations.
-------------------------------------------------------------------
Thu Apr 12 08:04:07 UTC 2018 - tchvatal@suse.com
- Compile the package in %build phase not during %install phase
-------------------------------------------------------------------
Wed Apr 11 13:35:23 UTC 2018 - 9+suse@cirno.systems
- Update to version 1.5.1
* Choose format of installed documentation based on available tools.
* Fix visibility of symbols.
* Fix zipcmp directory support.
* Dont set RPATH on Linux.
* Use Libs.private for link dependencies in pkg-config file.
* Fix build with LibreSSL.
* Various bugfixes.
- Add groff to BuildRequires (so manpages get installed)
-------------------------------------------------------------------
Mon Apr 2 15:04:36 UTC 2018 - mimi.vx@gmail.com
- add pkgconfig.patch - fixes boo#1087756
-------------------------------------------------------------------
Mon Mar 19 08:16:51 UTC 2018 - mpluskal@suse.com
- Enable tests again
- Enable more functionality by updating dependencies
- Deduplicate manpages
-------------------------------------------------------------------
Mon Mar 12 23:28:56 UTC 2018 - avindra@opensuse.org
- update to version 1.5.0:
* Use standard cryptographic library instead of custom AES
implementation. This also simplifies the license.
- includes 1.4.0:
* Improve build with cmake (retires autoconf/automake)
* Add zip_source_buffer_fragment().
* Add support to clone unchanged beginning of archive (instead
of rewriting it). Supported for buffer sources and on AFS.
- rebase libzip-ocloexec.patch
- drop libzip-uninitialized-value.patch
* merged in 8609c9ce6c8e613a7b5825e4d0eba8a31fe67e75
- cleanup with spec-cleaner
-------------------------------------------------------------------
Tue Dec 19 07:52:41 UTC 2017 - pgajdos@suse.com
- updated to version 1.3.2:
* Fix bug introduced in last: zip_t was erroneously freed if zip_close() failed.
* Install zipconf.h into ${PREFIX}/include
* Add zip_libzip_version()
* Fix AES tests on Linux
* Support bzip2 compressed zip archives
* Improve file progress callback code
* Fix zip_fdopen()
* CVE-2017-12858: Fix double free()
* CVE-2017-14107: Improve EOCD64 parsing
- removed patches (upstreamed)
* libzip-CVE-2017-12858.patch
* libzip-CVE-2017-14107.patch
- added patch (fixed in head)
* libzip-uninitialized-value.patch
-------------------------------------------------------------------
Fri Sep 22 06:19:34 UTC 2017 - pgajdos@suse.com
- reverted 'version update to 1.3.0' due failing i586 tests
- remove libzip-disable-failing-tests.patch again
- add libzip-CVE-2017-12858.patch again
- add libzip-CVE-2017-14107.patch [bsc#1056996]
-------------------------------------------------------------------
Wed Sep 6 13:13:05 UTC 2017 - pgajdos@suse.com
- update to version 1.3.0:
* Support bzip2 compressed zip archives
* Improve file progress callback code
* Fix zip_fdopen()
* CVE-2017-12858: Fix double free().
* CVE-2017-14107: Improve EOCD64 parsing.
- remove upstreamed libzip-CVE-2017-12858.patch
- added libzip-disable-failing-tests.patch [bsc#1056996#c12]
-------------------------------------------------------------------
Mon Aug 28 10:38:05 UTC 2017 - pgajdos@suse.com
- security update:
* CVE-2017-12858 [bsc#1055377]
+ libzip-CVE-2017-12858.patch
-------------------------------------------------------------------
Mon Jun 19 20:11:52 UTC 2017 - jengelh@inai.de
- Drop with-pic which is for static libs only.
-------------------------------------------------------------------
Wed Jun 7 07:36:54 UTC 2017 - mpluskal@suse.com
- Small spec file and dependencies cleanup
- Try profiled build
-------------------------------------------------------------------
Mon Feb 20 07:44:42 UTC 2017 - pgajdos@suse.com
- Update to version 1.2.0:
* Support for AES encryption (Winzip version), both encryption
and decryption.
* Support legacy zip files with >64k entries.
* Fix seeking in zip_source_file if start > 0.
* Add zip_fseek() for seeking in uncompressed data.
* Add zip_ftell() for telling position in uncompressed data.
* Add zip_register_progress_callback() for UI updates during
zip_close()
-------------------------------------------------------------------
Mon May 30 06:50:16 UTC 2016 - mpluskal@suse.com
- Update to version 1.1.3:
* Fix build on Windows when using autoconf.
-------------------------------------------------------------------
Mon Feb 22 07:56:17 UTC 2016 - pgajdos@suse.com
- update to 1.1.2
* Improve support for 3MF files
* ziptool(1): command line tool to modify zip archives
* Speedups for archives with many entries
* Better APK support
* Documentation improvements
-------------------------------------------------------------------
Tue May 5 12:12:09 UTC 2015 - jengelh@inai.de
- Update to new upstream release 1.0.1
* (Build fixes for Windows only)
- The documentation targets the library, so move them from -tools
to -devel subpackage.
-------------------------------------------------------------------
Mon May 4 22:36:04 UTC 2015 - jengelh@inai.de
- Place utilities in a separate subpackage which explicitly has
"-tools" in its name.
-------------------------------------------------------------------
Mon May 4 09:34:18 UTC 2015 - pgajdos@suse.com
- updated to 1.0:
* Implemented an I/O abstraction layer.
* Added support for native Windows API for files.
* Added support for setting the last modification time for a file.
* Added a new type zip_error_t for errors.
* Added more typedefs for structs.
* Torrentzip support was removed.
* CVE-2015-2331 was fixed.
* Addressed all Coverity CIDs.
- removed upstreamed patches:
- libzip-CVE-2015-2331.patch
- libzip-fseeko.patch
- libzip-fix-large-file-support.patch
http://www.nih.at/listarchive/libzip-discuss/msg00489.html
- libzip-autoconf-268.patch
-------------------------------------------------------------------
Fri Mar 20 08:19:07 UTC 2015 - pgajdos@suse.com
- fix CVE-2015-2331 [bnc#923240]
+ libzip-CVE-2015-2331.patch
-------------------------------------------------------------------
Wed Oct 29 15:13:50 UTC 2014 - opensuse@sukimashita.com
- add libzip-fseeko.patch which changes two fseek() calls that
were not replaced with fseeko() to properly support large files
- properly mark patches as PATCH-FIX-UPSTREAM where it applies
-------------------------------------------------------------------
Wed Oct 22 23:59:02 CET 2014 - opensuse@sukimashita.com
- add libzip-fix-large-file-support.patch to fix LFS support not
being activated for 32bit compilation and thus >2GB Zip files
failing to open
-------------------------------------------------------------------
Wed Jun 4 16:32:02 UTC 2014 - hrvoje.senjan@gmail.com
- Add baselibs.conf
-------------------------------------------------------------------
Thu Apr 3 16:00:00 UTC 2014 - tbehrens@suse.com
- fix for bnc#859525 has happened upstream
- update to 0.11.2
- drop: libzip-visibility.diff
(included upstream already)
-------------------------------------------------------------------
Mon May 6 09:04:02 UTC 2013 - mvyskocil@suse.com
- use upstream patch for visibility
drop: libzip-0.8.hg20080403-visibility.patch
add : libzip-visibility.diff
- tag all patches according a policy
-------------------------------------------------------------------
Mon Apr 29 12:56:17 UTC 2013 - mvyskocil@suse.com
- make test failure fatal again and add needed
timezone and unzip build dependencies
-------------------------------------------------------------------
Mon Apr 29 11:51:04 UTC 2013 - mvyskocil@suse.com
- update to 0.11.1
* Fix bugs in zip_set_file_compression().
* Added Zip64 support (large file support)
* Added UTF-8 support for file names, file comments, and archive comments
* Changed API for name and comment related functions for UTF-8 support
* Added zip_discard()
* Added ZIP_TRUNCATE for zip_open()
* Added zip_set_file_compression()
* Added API for accessing and modifying extra fields
* Improved API type consistency
* Use gcc4's visibility __attribute__
* More changes for Windows support
* Additional test cases
- split the automake part from ocloexec patch to
libzip-autoconf-268.patch
- drop already upstream libzip.test.diff
- make tests non-fail, until issue will be solved upstream
-------------------------------------------------------------------
Mon Mar 4 02:21:11 UTC 2013 - jengelh@inai.de
- Specify exact build requirements on autotools
(2.68 comes from patch; tarball has 2.57)
-------------------------------------------------------------------
Tue Mar 20 16:12:30 UTC 2012 - pgajdos@suse.com
- updated to 0.10.1: fixes
* CVE-2012-1162 [bnc#751829]
* CVE-2012-1163 [bnc#751830]
-------------------------------------------------------------------
Mon Feb 13 10:49:41 UTC 2012 - coolo@suse.com
- patch license to follow spdx.org standard
-------------------------------------------------------------------
Thu Dec 29 19:35:38 UTC 2011 - crrodriguez@opensuse.org
- Use O_CLOEXEC where needed, as calling applications
may fork.. execve and we end up leaking internal fds.
-------------------------------------------------------------------
Mon Nov 21 15:51:37 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
-------------------------------------------------------------------
Sun Nov 20 06:26:02 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Mon Jul 25 09:19:30 UTC 2011 - andrea@opensuse.org
- restore zipconf.h into include dir or packages using zip.h
will fail to build
-------------------------------------------------------------------
Tue Mar 22 12:43:04 UTC 2011 - coolo@novell.com
- fix -devel dependency
-------------------------------------------------------------------
Tue Mar 22 11:29:09 UTC 2011 - mvyskocil@suse.cz
- don't move zipconf.h to include dir
-------------------------------------------------------------------
Mon Mar 21 10:01:42 UTC 2011 - mvyskocil@suse.cz
- update to 0.10 - rename to libzip to avoid source package rename on
each soname change. Package libzip deprecate libzip-utils
* add zip_get_num_files(), deprecate zip_get_num_entries().
* support for traditional PKWARE encryption added.
* fix opening archives with more than 65535 entries.
* fix some memory leaks.
* fix cmake build and installation
* fix memory leak in error case in zip_open()
* fix CVE-2011-0421 (no security implications though) (bnc#681193)
* more documentation.
- refresh libzip-0.8.hg20080403-visibility.patch
- add libzip.test.diff from upstream fixing failed tests
- add libzip-0.10-zipconf-location.patch installs zipconf.h to includedir
- add pkg-config to BuildRequires
-------------------------------------------------------------------
Sun Jul 27 06:25:54 CEST 2008 - crrodriguez@suse.de
- update to version 0.9
* remove erroneous references to GPL
* add support for torrentzip
* new functions: zip_get_archive_flag, zip_set_archive_flag
* zip_source_zip: add flag to force recompression
* zip_sorce_file: only keep file open while reading from it
-------------------------------------------------------------------
Thu Apr 3 20:11:56 CEST 2008 - crrodriguez@suse.de
- initial version for openSUSE 11, needed by ARK/KDE4
-------------------------------------------------------------------
Thu Jun 7 09:13:37 UTC 2007 - judas_iscariote@shorewall.net
- update to stable 0.8 version

128
libzip.spec Normal file
View File

@ -0,0 +1,128 @@
#
# spec file for package libzip
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%{!?make_build: %global make_build make %{?_smp_mflags}}
%define sover 5
Name: libzip
Version: 1.10.1
Release: 0
Summary: C library for reading, creating, and modifying zip archives
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://libzip.org/
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: cmake >= 3.0.2
BuildRequires: fdupes
BuildRequires: groff
BuildRequires: pkgconfig
# for tests
BuildRequires: timezone
# for tests
BuildRequires: unzip
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(liblzma) >= 5.2
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(nettle) >= 3.0
BuildRequires: pkgconfig(zlib) >= 1.1.2
Provides: libzip-util = %{version}
Obsoletes: libzip-util < %{version}
%description
libzip is a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed. This
package contains a set of small utilities built using libzip
* zipmerge - merge source zip archives into the target one
* zipcmp - compares the zip archives and check if they contains same files
%package -n libzip%{sover}
Summary: C library for reading, creating, and modifying zip archives
Group: Development/Libraries/C and C++
%description -n libzip%{sover}
This is libzip, a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed
data copied directly from other zip archives. Changes made without
closing the archive can be reverted. The API is documented by man
pages.
%package devel
Summary: C library for reading, creating, and modifying zip archives
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libzip%{sover} = %{version}
%description devel
libzip is a C library for reading, creating, and modifying zip
archives. This package contains devel files.
%package tools
Summary: Utilities from the libzip project
Group: Productivity/Archiving/Compression
Obsoletes: libzip < %{version}
Provides: libzip = %{version}
%description tools
This subpackage contains zipcmp and zipmerge, for comparison of two
archives, and merging multiple archives together, respectively.
%prep
%autosetup -p1
%build
%cmake -DDOCUMENTATION_FORMAT=man
%cmake_build
%install
%cmake_install
rm -f %{buildroot}%{_libdir}/libzip.la
%fdupes %{buildroot}%{_mandir}/man3
%check
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
%ctest
%post -n libzip%{sover} -p /sbin/ldconfig
%postun -n libzip%{sover} -p /sbin/ldconfig
%files tools
%license LICENSE
%{_bindir}/zipcmp
%{_bindir}/zipmerge
%{_bindir}/ziptool
%{_mandir}/man1/zipcmp.1%{?ext_man}
%{_mandir}/man1/zipmerge.1%{?ext_man}
%{_mandir}/man1/ziptool.1%{?ext_man}
%files -n libzip%{sover}
%license LICENSE
%{_libdir}/libzip.so.%{sover}*
%files devel
%license LICENSE
%doc AUTHORS NEWS.md THANKS
%{_libdir}/%{name}.so
%{_includedir}/zip.h
%{_includedir}/zipconf.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake
%{_mandir}/man3/*.3%{?ext_man}
%changelog