refresh to cabal-rpm-0.13
This commit is contained in:
parent
d6134e6f1e
commit
e9806f2602
50
crypto-random-0.0.9.cabal
Normal file
50
crypto-random-0.0.9.cabal
Normal file
@ -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 <vincent@snarc.org>
|
||||||
|
Author: Vincent Hanquez <vincent@snarc.org>
|
||||||
|
Maintainer: Vincent Hanquez <vincent@snarc.org>
|
||||||
|
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
|
@ -1,4 +1,4 @@
|
|||||||
# generated by cabal-rpm-0.12.5
|
# generated by cabal-rpm-0.13
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global pkg_name crypto-random
|
%global pkg_name crypto-random
|
||||||
@ -6,16 +6,19 @@
|
|||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.0.9
|
Version: 0.0.9
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
Summary: Simple cryptographic random related types
|
Summary: Simple cryptographic random related types
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
# Begin cabal-rpm sources:
|
||||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
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-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-securemem-devel
|
BuildRequires: ghc-securemem-devel
|
||||||
BuildRequires: ghc-unix-devel
|
BuildRequires: ghc-unix-devel
|
||||||
@ -42,15 +45,22 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
# Begin cabal-rpm setup:
|
||||||
%setup -q -n %{pkgver}
|
%setup -q -n %{pkgver}
|
||||||
|
cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
# End cabal-rpm setup
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Begin cabal-rpm build:
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
# End cabal-rpm build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
# Begin cabal-rpm install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
# End cabal-rpm install
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
@ -62,13 +72,18 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
|
# Begin cabal-rpm files:
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
# End cabal-rpm files
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.0.9-12
|
||||||
|
- refresh to cabal-rpm-0.13
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.9-11
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.9-11
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user