commit ca21cdbdb25f4b77d0902ca5dae436d7b0b6dd0ad6c9963801933cd206114756 Author: Peter Simons Date: Tue Jun 16 10:56:32 2020 +0000 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-crypto-random revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-crypto-random?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/crypto-random-0.0.9.tar.gz b/crypto-random-0.0.9.tar.gz new file mode 100644 index 0000000..ff88510 --- /dev/null +++ b/crypto-random-0.0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:170a7a18441379c2d1c19b502ee5919026a19adc6e78641cd4fb40b1d69a6904 +size 9256 diff --git a/crypto-random.cabal b/crypto-random.cabal new file mode 100644 index 0000000..e4d47e3 --- /dev/null +++ b/crypto-random.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.changes b/ghc-crypto-random.changes new file mode 100644 index 0000000..8dbf40e --- /dev/null +++ b/ghc-crypto-random.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 9 09:26:17 UTC 2020 - psimons@suse.com + +- Add crypto-random at version 0.0.9. + diff --git a/ghc-crypto-random.spec b/ghc-crypto-random.spec new file mode 100644 index 0000000..2eed1aa --- /dev/null +++ b/ghc-crypto-random.spec @@ -0,0 +1,69 @@ +# +# spec file for package ghc-crypto-random +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name crypto-random +Name: ghc-%{pkg_name} +Version: 0.0.9 +Release: 0 +Summary: Simple cryptographic random related types +License: BSD-3-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: ghc-securemem-devel +BuildRequires: ghc-unix-devel +BuildRequires: ghc-vector-devel + +%description +Simple cryptographic random related types. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%prep +%setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files + +%changelog