revise .cabal

This commit is contained in:
Jens Petersen 2022-06-18 00:21:41 +08:00
parent 21e2ff4b6b
commit c51ca8bbab
2 changed files with 61 additions and 0 deletions

58
bloomfilter-2.0.1.0.cabal Normal file
View File

@ -0,0 +1,58 @@
name: bloomfilter
version: 2.0.1.0
x-revision: 2
license: BSD3
license-file: LICENSE
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: Bryan O'Sullivan <bos@serpentine.com>
homepage: https://github.com/bos/bloomfilter
bug-reports: https://github.com/bos/bloomfilter/issues
description: Pure and impure Bloom Filter implementations.
synopsis: Pure and impure Bloom Filter implementations.
category: Data
stability: provisional
build-type: Simple
cabal-version: >= 1.8
extra-source-files: README.markdown cbits/lookup3.c cbits/lookup3.h
examples/Makefile examples/SpellChecker.hs examples/Words.hs
library
build-depends:
array,
base >= 4.4 && < 4.16,
bytestring >= 0.9,
deepseq
exposed-modules: Data.BloomFilter
Data.BloomFilter.Easy
Data.BloomFilter.Mutable
Data.BloomFilter.Hash
other-modules: Data.BloomFilter.Array
Data.BloomFilter.Mutable.Internal
Data.BloomFilter.Util
c-sources: cbits/lookup3.c
ghc-options: -O2 -Wall
include-dirs: cbits
includes: lookup3.h
install-includes: lookup3.h
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: QC.hs
other-modules: QCSupport
build-depends:
QuickCheck >= 2.5,
base >= 4.4 && < 4.16,
bloomfilter,
bytestring,
random,
test-framework,
test-framework-quickcheck2
source-repository head
type: git
location: git://github.com/bos/bloomfilter.git
source-repository head
type: mercurial
location: https://bitbucket.org/bos/bloomfilter

View File

@ -15,9 +15,11 @@ 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-rpm-macros
BuildRequires: ghc-array-prof
@ -68,6 +70,7 @@ 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