update to 0.4.1.7

This commit is contained in:
Jens Petersen 2022-06-07 13:19:17 +08:00
parent 47623403bc
commit 30f03419b5
4 changed files with 7 additions and 102 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
/entropy-0.4.1.4.tar.gz
/entropy-0.4.1.5.tar.gz
/entropy-0.4.1.6.tar.gz
/entropy-0.4.1.7.tar.gz

View File

@ -1,96 +0,0 @@
name: entropy
version: 0.4.1.6
x-revision: 1
description: A mostly platform independent method to obtain cryptographically strong entropy
(RDRAND, urandom, CryptAPI, and patches welcome)
Users looking for cryptographically strong (number-theoretically
sound) PRNGs should see the 'DRBG' package too.
synopsis: A platform independent entropy source
license: BSD3
license-file: LICENSE
copyright: Thomas DuBuisson <thomas.dubuisson@gmail.com>
author: Thomas DuBuisson <thomas.dubuisson@gmail.com>
maintainer: Thomas DuBuisson <thomas.dubuisson@gmail.com>
category: Data, Cryptography
homepage: https://github.com/TomMD/entropy
bug-reports: https://github.com/TomMD/entropy/issues
stability: stable
-- build-type: Simple
-- ^^ Used for HaLVM
build-type: Custom
-- ^^ Test for RDRAND support using 'ghc'
cabal-version: >=1.10
tested-with: GHC == 8.2.2
-- data-files:
extra-source-files: ./cbits/getrandom.c ./cbits/random_initialized.c ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
-- Notice to compile with HaLVM the above 'build-type' must be changed
-- to 'Simple' instead of 'Custom'. The current build system naively
-- runs GHC to determine if the compiler supports RDRAND before proceeding.
flag halvm
description: Build for the HaLVM
default: False
custom-setup
setup-depends: Cabal >= 1.10 && < 3.5
, base < 5
, filepath < 1.5
, directory < 1.4
, process < 1.7
library
ghc-options: -O2
exposed-modules: System.Entropy
if impl(ghcjs) || os(ghcjs)
other-modules: System.EntropyGhcjs
else {
if os(windows)
other-modules: System.EntropyWindows
else {
if os(halvm)
other-modules: System.EntropyXen
else
other-modules: System.EntropyNix
}
}
other-extensions: CPP, ForeignFunctionInterface, BangPatterns,
ScopedTypeVariables
build-depends: base >= 4.8 && < 5, bytestring
default-language: Haskell2010
if impl(ghcjs) || os(ghcjs) {
build-depends: ghcjs-dom
, jsaddle
}
else {
if(os(halvm))
cpp-options: -DXEN -DHAVE_RDRAND
cc-options: -DXEN -DHAVE_RDRAND
if arch(x86_64)
cpp-options: -Darch_x86_64
cc-options: -Darch_x86_64 -O2
-- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
c-sources: cbits/rdrand.c
include-dirs: cbits
if arch(i386)
cpp-options: -Darch_i386
cc-options: -Darch_i386 -O2
if os(windows)
build-depends: Win32 >= 2.5
cpp-options: -DisWindows
cc-options: -DisWindows
extra-libraries: advapi32
else
if !os(halvm)
Build-Depends: unix
c-sources: cbits/getrandom.c cbits/random_initialized.c
}
source-repository head
type: git
location: https://github.com/TomMD/entropy

View File

@ -5,19 +5,17 @@
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.4.1.6
Release: 7%{?dist}
Version: 0.4.1.7
Release: 1%{?dist}
Summary: A platform independent entropy source
License: BSD
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-filepath-devel
BuildRequires: ghc-directory-devel
@ -73,7 +71,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
@ -111,6 +108,9 @@ dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
%changelog
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> - 0.4.1.7-1
- https://hackage.haskell.org/package/entropy-0.4.1.7/changelog
* Thu Mar 10 2022 Jens Petersen <petersen@redhat.com> - 0.4.1.6-7
- rebuild

View File

@ -1 +1 @@
SHA512 (entropy-0.4.1.6.tar.gz) = 201a75efe210be5728a1c94ba9ec62514b96c388b6791d9301b34d2fce0208a9fa4ef25965c7840d052fd6221f15a1bec196a6eb209e6d03c3e1f971161df1b1
SHA512 (entropy-0.4.1.7.tar.gz) = 624a9008964299f4256d6d93f5da53f030956b55368b5a8fd6ae6270b0f44f0a331202b5a2822e025db2e7317983768e68d5adf0eddd11e6a841cd403ce10a54