diff --git a/crypto-random-0.0.9.cabal b/crypto-random-0.0.9.cabal new file mode 100644 index 0000000..f1ab029 --- /dev/null +++ b/crypto-random-0.0.9.cabal @@ -0,0 +1,50 @@ +Name: crypto-random +Version: 0.0.9 +x-revision: 1 +Description: Simple cryptographic random related types +License: BSD3 +License-file: LICENSE +Copyright: Vincent Hanquez +Author: Vincent Hanquez +Maintainer: Vincent Hanquez +Synopsis: Simple cryptographic random related types +Category: Cryptography +Build-Type: Simple +Homepage: http://github.com/vincenthz/hs-crypto-random +Cabal-Version: >=1.6 + +Library + Build-depends: base >= 4 && < 5 + , bytestring + , securemem + , vector >= 0.7 + Exposed-modules: Crypto.Random + , Crypto.Random.Test + , Crypto.Random.API + Other-modules: Crypto.Random.Generator + , Crypto.Random.Entropy + , Crypto.Random.Entropy.Source + ghc-options: -Wall + if os(windows) + cpp-options: -DWINDOWS + Build-Depends: Win32 + Other-modules: Crypto.Random.Entropy.Windows + extra-libraries: advapi32 + else + Build-Depends: unix + Other-modules: Crypto.Random.Entropy.Unix + + if arch(i386) + cpp-options: -DARCH_X86 + if arch(x86_64) + cpp-options: -DARCH_X86_64 + + if arch(x86_64) + cpp-options: -DSUPPORT_RDRAND + Other-modules: Crypto.Random.Entropy.RDRand + c-sources: cbits/rdrand.c + +source-repository head + type: git + location: git://github.com/vincenthz/hs-crypto-random + subdir: types diff --git a/ghc-crypto-random.spec b/ghc-crypto-random.spec index 9b9dabb..cac53bb 100644 --- a/ghc-crypto-random.spec +++ b/ghc-crypto-random.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name crypto-random @@ -6,16 +6,19 @@ Name: ghc-%{pkg_name} Version: 0.0.9 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Simple cryptographic random related types 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: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-securemem-devel BuildRequires: ghc-unix-devel @@ -42,15 +45,22 @@ This package provides the Haskell %{pkg_name} library development files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %post devel @@ -62,13 +72,18 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files %changelog +* Sun Feb 17 2019 Jens Petersen - 0.0.9-12 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.0.9-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild