diff --git a/digest.cabal b/digest.cabal new file mode 100644 index 0000000..8cf91b0 --- /dev/null +++ b/digest.cabal @@ -0,0 +1,51 @@ +name: digest +version: 0.0.1.7 +x-revision: 1 +copyright: (c) 2009 Eugene Kirpichov +license: BSD2 +license-file: LICENSE +author: Eugene Kirpichov +maintainer: Eugene Kirpichov +category: Cryptography +synopsis: Various hashes for bytestrings; CRC32 and Adler32 for now. +description: This package provides efficient hash implementations for + strict and lazy bytestrings. For now, CRC32 and Adler32 are supported; + they are implemented as FFI bindings to efficient code from zlib. +stability: provisional +build-type: Simple +cabal-version: >= 1.10 +tested-with: + GHC==8.10.7 + , GHC==9.0.2 + , GHC==9.2.5 + , GHC==9.4.3 + +extra-source-files: + testing/trivial-reference.c + testing/trivial.expected + testing/trivial.hs + CHANGELOG.md + +flag pkg-config + default: True + manual: True + description: Use @pkg-config(1)@ to locate @zlib@ library. + +source-repository head + type: git + location: https://github.com/TeofilC/digest + +library + exposed-modules: Data.Digest.CRC32, + Data.Digest.Adler32 + default-extensions: CPP, ForeignFunctionInterface + default-language: Haskell2010 + build-depends: + base < 5 + , bytestring >= 0.9 && < 0.13 + includes: zlib.h + ghc-options: -Wall + if flag(pkg-config) && !os(windows) && !os(freebsd) + pkgconfig-depends: zlib + else + build-depends: zlib diff --git a/ghc-digest.changes b/ghc-digest.changes index 7c5dbf3..d19d52d 100644 --- a/ghc-digest.changes +++ b/ghc-digest.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Sep 3 19:18:40 UTC 2023 - Peter Simons + +- Update digest to version 0.0.1.7 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Mar 30 17:06:36 UTC 2023 - Peter Simons diff --git a/ghc-digest.spec b/ghc-digest.spec index 3853319..d8b3bf6 100644 --- a/ghc-digest.spec +++ b/ghc-digest.spec @@ -25,6 +25,7 @@ Summary: Various hashes for bytestrings; CRC32 and Adler32 for now License: BSD-2-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base-prof @@ -70,6 +71,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build