From 45fa9151e403653237605a1247865a2ecb3ee8ef Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:48:02 +0800 Subject: [PATCH] refresh to cabal-rpm-0.13 --- ghc-zip-archive.spec | 21 ++++++++-- zip-archive-0.3.3.cabal | 86 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 zip-archive-0.3.3.cabal diff --git a/ghc-zip-archive.spec b/ghc-zip-archive.spec index 5d1a892..5994c98 100644 --- a/ghc-zip-archive.spec +++ b/ghc-zip-archive.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name zip-archive @@ -10,16 +10,19 @@ Name: ghc-%{pkg_name} Version: 0.3.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library for creating and modifying zip archives License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel @@ -62,15 +65,22 @@ This package provides the Haskell %{pkg_name} library development files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %check @@ -86,7 +96,9 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -94,6 +106,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Feb 17 2019 Jens Petersen - 0.3.3-3 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/zip-archive-0.3.3.cabal b/zip-archive-0.3.3.cabal new file mode 100644 index 0000000..64d4e2d --- /dev/null +++ b/zip-archive-0.3.3.cabal @@ -0,0 +1,86 @@ +Name: zip-archive +Version: 0.3.3 +x-revision: 1 +Cabal-Version: >= 1.10 +Build-type: Custom +Synopsis: Library for creating and modifying zip archives. +Description: The zip-archive library provides functions for creating, modifying, + and extracting files from zip archives. +Category: Codec +Tested-with: GHC == 7.8.2, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2 +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 + +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 + +custom-setup + setup-depends: base, Cabal + +Executable zip-archive + if flag(executable) + Buildable: True + else + Buildable: False + Main-is: Main.hs + Hs-Source-Dirs: . + Build-Depends: base >= 4.2 && < 5, + directory >= 1.1, + bytestring >= 0.9.0, + zip-archive + Other-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.2 && < 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-tools: unzip + Build-depends: unix