From d47cb738fa642a263116ea9f375a6349a62c7e47 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 22 Jan 2023 22:32:04 +0800 Subject: [PATCH] update to 0.0.1.4 refresh to cabal-rpm-2.1.0 with SPDX migration --- .gitignore | 1 + digest-0.0.1.4.cabal | 45 ++++++++++++++++++++++++++++++++++++++++++++ ghc-digest.spec | 30 ++++++++++++++++++++--------- sources | 2 +- 4 files changed, 68 insertions(+), 10 deletions(-) create mode 100644 digest-0.0.1.4.cabal diff --git a/.gitignore b/.gitignore index bf85f06..312b162 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /digest-0.0.1.1.tar.gz /digest-0.0.1.2.tar.gz /digest-0.0.1.3.tar.gz +/digest-0.0.1.4.tar.gz diff --git a/digest-0.0.1.4.cabal b/digest-0.0.1.4.cabal new file mode 100644 index 0000000..a7447f8 --- /dev/null +++ b/digest-0.0.1.4.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.spec b/ghc-digest.spec index 519ecfb..7c9fa05 100644 --- a/ghc-digest.spec +++ b/ghc-digest.spec @@ -1,32 +1,39 @@ -# generated by cabal-rpm-2.0.9 +# generated by cabal-rpm-2.1.0 # 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.3 -Release: 5%{?dist} +Version: 0.0.1.4 +Release: 1%{?dist} Summary: Cryptographic hashes for bytestrings -License: BSD +# 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 +BuildRequires: ghc-bytestring-devel +%if %{with ghc_prof} BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof -BuildRequires: zlib-devel +%endif +BuildRequires: pkgconfig(zlib) # End cabal-rpm deps %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 @@ -38,7 +45,7 @@ Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: -Requires: zlib-devel%{?_isa} +Requires: pkgconfig(zlib) # End cabal-rpm deps %description devel @@ -70,6 +77,7 @@ 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 @@ -106,6 +114,10 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Sun Jan 22 2023 Jens Petersen - 0.0.1.4-1 +- https://hackage.haskell.org/package/digest-0.0.1.4/changelog +- refresh to cabal-rpm-2.1.0 with SPDX migration + * Thu Jul 21 2022 Fedora Release Engineering - 0.0.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 3208fb8..e4f0723 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (digest-0.0.1.3.tar.gz) = 2b4a6f58dc70ea18e359ddaa93088bfbefa96c6c37f256cf0c75bdd61087a874584d8a1d47176adb114a4399400b866d7911c12a2c8c1ebafee3398ca58caba2 +SHA512 (digest-0.0.1.4.tar.gz) = b43dfa57c89aae845dc58202b5011e6c3df622ab63155ad775a4676d9c79d6b8828bf8f9545d2c0d11c44fcfcc120d906e1b126a6a42a8a0f21aa1812c9c5b0a