From 30f03419b547f4bc9e16abbed829abe20e0c08a3 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jun 2022 13:19:17 +0800 Subject: [PATCH] update to 0.4.1.7 --- .gitignore | 1 + entropy-0.4.1.6.cabal | 96 ------------------------------------------- ghc-entropy.spec | 10 ++--- sources | 2 +- 4 files changed, 7 insertions(+), 102 deletions(-) delete mode 100644 entropy-0.4.1.6.cabal diff --git a/.gitignore b/.gitignore index 117652c..645847b 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/entropy-0.4.1.6.cabal b/entropy-0.4.1.6.cabal deleted file mode 100644 index 2219788..0000000 --- a/entropy-0.4.1.6.cabal +++ /dev/null @@ -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 -author: Thomas DuBuisson -maintainer: Thomas DuBuisson -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 diff --git a/ghc-entropy.spec b/ghc-entropy.spec index af74192..eadae89 100644 --- a/ghc-entropy.spec +++ b/ghc-entropy.spec @@ -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 - 0.4.1.7-1 +- https://hackage.haskell.org/package/entropy-0.4.1.7/changelog + * Thu Mar 10 2022 Jens Petersen - 0.4.1.6-7 - rebuild diff --git a/sources b/sources index 29780fd..e500178 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (entropy-0.4.1.6.tar.gz) = 201a75efe210be5728a1c94ba9ec62514b96c388b6791d9301b34d2fce0208a9fa4ef25965c7840d052fd6221f15a1bec196a6eb209e6d03c3e1f971161df1b1 +SHA512 (entropy-0.4.1.7.tar.gz) = 624a9008964299f4256d6d93f5da53f030956b55368b5a8fd6ae6270b0f44f0a331202b5a2822e025db2e7317983768e68d5adf0eddd11e6a841cd403ce10a54