Jens Petersen 2023-07-24 00:04:59 +08:00
parent 4ca905d4bc
commit 350aba9d95
4 changed files with 6 additions and 53 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/digest-0.0.1.2.tar.gz
/digest-0.0.1.3.tar.gz
/digest-0.0.1.4.tar.gz
/digest-0.0.1.7.tar.gz

View File

@ -1,45 +0,0 @@
name: digest
version: 0.0.1.4
x-revision: 1
copyright: (c) 2009 Eugene Kirpichov
license: BSD3
license-file: LICENSE
author: Eugene Kirpichov <ekirpichov@gmail.com>
maintainer: Eugene Kirpichov <ekirpichov@gmail.com>
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
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.12
includes: zlib.h
ghc-options: -Wall
if !os(windows)
pkgconfig-depends: zlib
else
build-depends: zlib

View File

@ -1,24 +1,21 @@
# generated by cabal-rpm-2.1.0
# generated by cabal-rpm-2.1.2
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name digest
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.0.1.4
Version: 0.0.1.7
Release: %autorelease
Summary: Cryptographic hashes for bytestrings
Summary: CRC32 and Adler32 hashes for bytestrings
# license file is BSD2
License: BSD-2-Clause
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: dos2unix
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
@ -77,7 +74,6 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
@ -100,6 +96,7 @@ dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
%files devel -f %{name}-devel.files
%doc CHANGELOG.md
%if %{with haddock}

View File

@ -1 +1 @@
SHA512 (digest-0.0.1.4.tar.gz) = b43dfa57c89aae845dc58202b5011e6c3df622ab63155ad775a4676d9c79d6b8828bf8f9545d2c0d11c44fcfcc120d906e1b126a6a42a8a0f21aa1812c9c5b0a
SHA512 (digest-0.0.1.7.tar.gz) = 2739d35ce55a9524b7492aca78752fbe5f168167b37327c693fd1b51a88d23cc22767e52bc6220a053100c6c8579f060adb9f337368b606213b397e76b5868d1