From 4a8e78a75e1b219fade0c3e3008b72307d1cdf425e854f7b2df329e48183740b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sun, 21 Nov 2021 11:20:43 +0000 Subject: [PATCH] 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 --- bloomfilter.cabal | 58 +++++++++++++++++++++++++++++++++++++++++ ghc-bloomfilter.changes | 6 +++++ ghc-bloomfilter.spec | 4 ++- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 bloomfilter.cabal diff --git a/bloomfilter.cabal b/bloomfilter.cabal new file mode 100644 index 0000000..31e6dfb --- /dev/null +++ b/bloomfilter.cabal @@ -0,0 +1,58 @@ +name: bloomfilter +version: 2.0.1.0 +x-revision: 1 +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 && < 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 diff --git a/ghc-bloomfilter.changes b/ghc-bloomfilter.changes index 295631d..0cadb41 100644 --- a/ghc-bloomfilter.changes +++ b/ghc-bloomfilter.changes @@ -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 diff --git a/ghc-bloomfilter.spec b/ghc-bloomfilter.spec index 10ca9b0..7e0cc1b 100644 --- a/ghc-bloomfilter.spec +++ b/ghc-bloomfilter.spec @@ -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