From b5539225e4531199e51ddac519bce634792370ad9a0567e5f206d6d856336277 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 9 Dec 2018 02:01:35 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.6.x package:ghc-zip-archive revision:5, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-zip-archive?expand=0&rev=50 --- ghc-zip-archive.changes | 38 ++++++++++++++++++++++++++++++++++++++ ghc-zip-archive.spec | 22 ++++++++++++++++++++-- zip-archive-0.3.3.tar.gz | 3 --- zip-archive-0.4.tar.gz | 3 +++ 4 files changed, 61 insertions(+), 5 deletions(-) delete mode 100644 zip-archive-0.3.3.tar.gz create mode 100644 zip-archive-0.4.tar.gz diff --git a/ghc-zip-archive.changes b/ghc-zip-archive.changes index 711cee3..60d7c2e 100644 --- a/ghc-zip-archive.changes +++ b/ghc-zip-archive.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Tue Dec 4 03:02:25 UTC 2018 - psimons@suse.com + +- Update zip-archive to version 0.4. + zip-archive 0.4 + + * Implement read-only support for PKWARE encryption (Sergii Rudchenko). + The "traditional" PKWARE encryption is a symmetric encryption + algorithm described in zip format specification in section 6.1. + This change allows to extract basic "password-protected" entries from + ZIP files. Note that the standard file extraction function + extractFilesFromArchive does not decrypt entries (it will raise + an exception if it encounters an encrypted entry). To handle + archives with encrypted entries, use the new function + fromEncryptedEntry. + + API changes: + + + Add eEncryptionMethod field to Entry. + + Add EncryptionMethod type. + + Add function isEncryptedEntry. + + Add function fromEncryptedEntry. + * Add CannotWriteEncryptedEntry constructor to ZipException. + + * Add UnsafePath to ZipException (#50). + * writeEntry: raise UnsafePath exception for unsafe paths (#50). + This prevents malicious zip files from overwriting paths + above the working directory. + * Add Paths_zip_archive to autogen-modules. + * Clarify README and cabal description. + * Specify cabal-version: 2.0. Otherwise we get an unknown build + tool error using `build-depends` without a custom Setup.hs. + * Change build-type to simple. Retain 'build-tools: unzip' in + test stanza, though now it doesn't do anything except give a + hint to external tools. If unzip is not found in the path, + the test suite prints a message and counts the test that + requires unzip as succeeding (see #51). + ------------------------------------------------------------------- Sat Oct 20 11:32:17 UTC 2018 - Peter Simons diff --git a/ghc-zip-archive.spec b/ghc-zip-archive.spec index 49c03ea..84f0950 100644 --- a/ghc-zip-archive.spec +++ b/ghc-zip-archive.spec @@ -19,7 +19,7 @@ %global pkg_name zip-archive %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.3.3 +Version: 0.4 Release: 0 Summary: Library for creating and modifying zip archives License: BSD-3-Clause @@ -49,7 +49,25 @@ BuildRequires: ghc-temporary-devel %description The zip-archive library provides functions for creating, modifying, and -extracting files from zip archives. +extracting files from zip archives. The zip archive format is documented in +. + +Certain simplifying assumptions are made about the zip archives: in particular, +there is no support for strong encryption, zip files that span multiple disks, +ZIP64, OS-specific file attributes, or compression methods other than Deflate. +However, the library should be able to read the most common zip archives, and +the archives it produces should be readable by all standard unzip programs. + +Archives are built and extracted in memory, so manipulating large zip files +will consume a lot of memory. If you work with large zip files or need features +not supported by this library, a better choice may be +, which uses a memory-efficient +streaming approach. However, zip can only read and write archives inside +instances of MonadIO, so zip-archive is a better choice if you want to +manipulate zip archives in "pure" contexts. + +As an example of the use of the library, a standalone zip archiver and +extracter is provided in the source distribution. %package devel Summary: Haskell %{pkg_name} library development files diff --git a/zip-archive-0.3.3.tar.gz b/zip-archive-0.3.3.tar.gz deleted file mode 100644 index 50f2670..0000000 --- a/zip-archive-0.3.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:988adee77c806e0b497929b24d5526ea68bd3297427da0d0b30b99c094efc84d -size 18229 diff --git a/zip-archive-0.4.tar.gz b/zip-archive-0.4.tar.gz new file mode 100644 index 0000000..a6dca78 --- /dev/null +++ b/zip-archive-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fbea91d95ae1b1ec73aed8a8c67c8bae89bc3b6f7d9da898f07209e4a4ada19 +size 20859