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
This commit is contained in:
Peter Simons 2018-12-09 02:01:35 +00:00 committed by Git OBS Bridge
parent 6948269c2c
commit b5539225e4
4 changed files with 61 additions and 5 deletions

View File

@ -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 <psimons@suse.com>

View File

@ -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
<http://www.pkware.com/documents/casestudies/APPNOTE.TXT>.
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
<http://hackage.haskell.org/package/zip zip>, 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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:988adee77c806e0b497929b24d5526ea68bd3297427da0d0b30b99c094efc84d
size 18229

3
zip-archive-0.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5fbea91d95ae1b1ec73aed8a8c67c8bae89bc3b6f7d9da898f07209e4a4ada19
size 20859