Accepting request 1059062 from devel:languages:haskell

version update

OBS-URL: https://build.opensuse.org/request/show/1059062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-digest?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2023-01-18 12:09:47 +00:00 committed by Git OBS Bridge
commit 990f2ea1a0
5 changed files with 72 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5596a53e17c036b9b2aefbed069ec819b36fefcd4bed21330ae0ee5be840a3d0
size 3792

3
digest-0.0.1.4.tar.gz Normal file
View File

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

45
digest.cabal Normal file
View File

@ -0,0 +1,45 @@
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,3 +1,15 @@
-------------------------------------------------------------------
Wed Jan 11 19:16:03 UTC 2023 - Peter Simons <psimons@suse.com>
- Update digest to version 0.0.1.4 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Mon Dec 12 11:22:19 UTC 2022 - Peter Simons <psimons@suse.com>
- Update digest to version 0.0.1.4.
Upstream does not provide a change log file.
-------------------------------------------------------------------
Sat Jul 10 13:39:50 UTC 2021 - psimons@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-digest
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,28 +18,31 @@
%global pkg_name digest
Name: ghc-%{pkg_name}
Version: 0.0.1.3
Version: 0.0.1.4
Release: 0
Summary: Various cryptographic hashes for bytestrings; CRC32 and Adler32 for now
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-bytestring-devel
BuildRequires: ghc-rpm-macros
BuildRequires: zlib-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(zlib)
ExcludeArch: %{ix86}
%description
This package provides efficient cryptographic 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.
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.
%package devel
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires: zlib-devel
Requires: pkgconfig
Requires: pkgconfig(zlib)
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
@ -48,6 +51,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build