From 56653f32ddf02a379b4ff4231772b5a179d38d82ca20a903e86450fb263d3e4d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 17 Jan 2023 18:08:21 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-digest revision:19, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-digest?expand=0&rev=51 --- digest-0.0.1.3.tar.gz | 3 --- digest-0.0.1.4.tar.gz | 3 +++ digest.cabal | 45 +++++++++++++++++++++++++++++++++++++++++++ ghc-digest.changes | 12 ++++++++++++ ghc-digest.spec | 20 +++++++++++-------- 5 files changed, 72 insertions(+), 11 deletions(-) delete mode 100644 digest-0.0.1.3.tar.gz create mode 100644 digest-0.0.1.4.tar.gz create mode 100644 digest.cabal diff --git a/digest-0.0.1.3.tar.gz b/digest-0.0.1.3.tar.gz deleted file mode 100644 index 8fd6458..0000000 --- a/digest-0.0.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5596a53e17c036b9b2aefbed069ec819b36fefcd4bed21330ae0ee5be840a3d0 -size 3792 diff --git a/digest-0.0.1.4.tar.gz b/digest-0.0.1.4.tar.gz new file mode 100644 index 0000000..a40f6e3 --- /dev/null +++ b/digest-0.0.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f91125f43f70b3a4e36c2f8832c4783ddb1622ff0a06bf0dfbba35be082dec16 +size 3703 diff --git a/digest.cabal b/digest.cabal new file mode 100644 index 0000000..9513b69 --- /dev/null +++ b/digest.cabal @@ -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 +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 + +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 diff --git a/ghc-digest.changes b/ghc-digest.changes index 989e24b..7fe1c55 100644 --- a/ghc-digest.changes +++ b/ghc-digest.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Wed Jan 11 19:16:03 UTC 2023 - Peter Simons + +- 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 + +- 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 diff --git a/ghc-digest.spec b/ghc-digest.spec index 59cb72b..015caf3 100644 --- a/ghc-digest.spec +++ b/ghc-digest.spec @@ -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