osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-bloomfilter revision:9, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-bloomfilter?expand=0&rev=9
This commit is contained in:
Ondřej Súkup 2021-11-21 11:20:43 +00:00 committed by Git OBS Bridge
parent bc37011d88
commit e3edffca0a
3 changed files with 67 additions and 1 deletions

58
bloomfilter.cabal Normal file
View File

@ -0,0 +1,58 @@
name: bloomfilter
version: 2.0.1.0
x-revision: 1
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 && < 5,
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

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 15 06:59:43 UTC 2021 - psimons@suse.com
- Update bloomfilter to version 2.0.1.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-bloomfilter
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,7 @@ Summary: Pure and impure Bloom Filter implementations
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-array-devel
BuildRequires: ghc-bytestring-devel
@ -53,6 +54,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build