Jens Petersen 2023-01-23 01:55:59 +08:00
parent 1eabb7068a
commit 9027ca8859
4 changed files with 126 additions and 4 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@
/zip-archive-0.3.3.tar.gz
/zip-archive-0.4.1.tar.gz
/zip-archive-0.4.2.1.tar.gz
/zip-archive-0.4.2.2.tar.gz

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-2.0.12
# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name zip-archive
@ -9,11 +9,11 @@
%endif
Name: ghc-%{pkg_name}
Version: 0.4.2.1
Version: 0.4.2.2
Release: %autorelease
Summary: Library for creating and modifying zip archives
License: BSD
License: BSD-3-Clause
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
@ -23,6 +23,21 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-array-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-digest-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-zlib-devel
%if %{with ghc_prof}
BuildRequires: ghc-array-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-binary-prof
@ -37,6 +52,7 @@ BuildRequires: ghc-text-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-zlib-prof
%endif
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-process-devel

View File

@ -1 +1 @@
SHA512 (zip-archive-0.4.2.1.tar.gz) = 464f92222d65661f159bfe7889749455862e130bfe06206f48c43e518e4fea36d188cc3f48110e99e8095daa6bccc1640341d6f4dc22a0232a5f30f80917b5cf
SHA512 (zip-archive-0.4.2.2.tar.gz) = f0134a58583bd3f2bd1282391c7f9d5a7411db5ca7acdc2882e2b99811a8368df903c151665fd097b7e806198912aea833cc8b910c41bda57f2ff1346b17a673

105
zip-archive-0.4.2.2.cabal Normal file
View File

@ -0,0 +1,105 @@
Name: zip-archive
Version: 0.4.2.2
Cabal-Version: 2.0
Build-type: Simple
Synopsis: Library for creating and modifying zip archives.
Description:
The zip-archive library provides functions for creating, modifying, and
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.
Category: Codec
Tested-with: GHC == 8.6.5, GHC == 8.8.1, GHC == 8.10.4, GHC == 9.0.1,
GHC == 8.8.3, GHC == 9.2.1
License: BSD3
License-file: LICENSE
Homepage: http://github.com/jgm/zip-archive
Author: John MacFarlane
Maintainer: jgm@berkeley.edu
Extra-Source-Files: changelog
README.markdown
tests/test4.zip
tests/test4/a.txt
tests/test4/b.bin
"tests/test4/c/with spaces.txt"
tests/zip_with_symlinks.zip
tests/zip_with_password.zip
tests/zip_with_evil_path.zip
Source-repository head
type: git
location: git://github.com/jgm/zip-archive.git
flag executable
Description: Build the Zip executable.
Default: False
Library
Build-depends: base >= 4.5 && < 5,
pretty,
containers,
binary >= 0.6,
zlib,
filepath,
bytestring >= 0.10.0,
array,
mtl,
text >= 0.11,
digest >= 0.0.0.1,
directory >= 1.2.0,
time
Exposed-modules: Codec.Archive.Zip
Default-Language: Haskell98
Hs-Source-Dirs: src
Ghc-Options: -Wall
if os(windows)
cpp-options: -D_WINDOWS
else
Build-depends: unix
Executable zip-archive
if flag(executable)
Buildable: True
else
Buildable: False
Main-is: Main.hs
Hs-Source-Dirs: .
Build-Depends: base >= 4.5 && < 5,
directory >= 1.1,
bytestring >= 0.9.0,
zip-archive
Other-Modules: Paths_zip_archive
Autogen-Modules: Paths_zip_archive
Ghc-Options: -Wall
Default-Language: Haskell98
Test-Suite test-zip-archive
Type: exitcode-stdio-1.0
Main-Is: test-zip-archive.hs
Hs-Source-Dirs: tests
Build-Depends: base >= 4.5 && < 5,
directory >= 1.3, bytestring >= 0.9.0, process, time,
HUnit, zip-archive, temporary, filepath
Default-Language: Haskell98
Ghc-Options: -Wall
if os(windows)
cpp-options: -D_WINDOWS
else
Build-depends: unix