diff --git a/bloomfilter-2.0.1.0.cabal b/bloomfilter-2.0.1.0.cabal new file mode 100644 index 0000000..d76718b --- /dev/null +++ b/bloomfilter-2.0.1.0.cabal @@ -0,0 +1,58 @@ +name: bloomfilter +version: 2.0.1.0 +x-revision: 2 +license: BSD3 +license-file: LICENSE +author: Bryan O'Sullivan +maintainer: Bryan O'Sullivan +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 diff --git a/ghc-bloomfilter.spec b/ghc-bloomfilter.spec index f85cecd..bd63364 100644 --- a/ghc-bloomfilter.spec +++ b/ghc-bloomfilter.spec @@ -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