4
0

osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-vector-algorithms revision:10, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-vector-algorithms?expand=0&rev=62
This commit is contained in:
2023-10-11 21:00:57 +00:00
committed by Git OBS Bridge
parent 2c4466bfcf
commit 774c3d9812
3 changed files with 176 additions and 157 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 10 14:53:32 UTC 2023 - Peter Simons <psimons@suse.com>
- Update vector-algorithms to version 0.9.0.1 revision 3.
Upstream has revised the Cabal build instructions on Hackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 30 17:08:54 UTC 2023 - Peter Simons <psimons@suse.com> Thu Mar 30 17:08:54 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@@ -26,7 +26,7 @@ Summary: Efficient algorithms for vector arrays
License: BSD-3-Clause License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name} URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof BuildRequires: ghc-base-prof

View File

@@ -1,156 +1,169 @@
name: vector-algorithms cabal-version: >= 1.10
version: 0.9.0.1 name: vector-algorithms
x-revision: 2 version: 0.9.0.1
license: BSD3 x-revision: 3
license-file: LICENSE license: BSD3
author: Dan Doel license-file: LICENSE
maintainer: Dan Doel <dan.doel@gmail.com> author: Dan Doel
Erik de Castro Lopo <erikd@mega-nerd.com> maintainer: Dan Doel <dan.doel@gmail.com>
copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel Erik de Castro Lopo <erikd@mega-nerd.com>
(c) 2015 Tim Baumann copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel
homepage: https://github.com/erikd/vector-algorithms/ (c) 2015 Tim Baumann
category: Data homepage: https://github.com/erikd/vector-algorithms/
synopsis: Efficient algorithms for vector arrays category: Data
description: Efficient algorithms for sorting vector arrays. At some stage synopsis: Efficient algorithms for vector arrays
other vector algorithms may be added. description: Efficient algorithms for sorting vector arrays. At some stage
build-type: Simple other vector algorithms may be added.
cabal-version: >= 1.10 build-type: Simple
extra-source-files: CHANGELOG.md
extra-source-files: CHANGELOG.md
flag BoundsChecks tested-with:
description: Enable bounds checking GHC == 9.8.1
default: True GHC == 9.6.3
GHC == 9.4.7
flag UnsafeChecks GHC == 9.2.8
description: Enable bounds checking in unsafe operations at the cost of a GHC == 9.0.2
significant performance penalty. GHC == 8.10.7
default: False GHC == 8.8.4
GHC == 8.6.5
flag InternalChecks GHC == 8.4.4
description: Enable internal consistency checks at the cost of a GHC == 8.2.2
significant performance penalty. GHC == 8.0.2
default: False GHC == 7.10.3
flag bench flag BoundsChecks
description: Build a benchmarking program to test vector-algorithms description: Enable bounds checking
performance default: True
default: True
flag UnsafeChecks
flag properties description: Enable bounds checking in unsafe operations at the cost of a
description: Enable the quickcheck tests significant performance penalty.
default: True default: False
-- flag dump-simpl flag InternalChecks
-- description: Dumps the simplified core during compilation description: Enable internal consistency checks at the cost of a
-- default: False significant performance penalty.
default: False
flag llvm
description: Build using llvm flag bench
default: False description: Build a benchmarking program to test vector-algorithms
performance
source-repository head default: True
type: git
location: https://github.com/erikd/vector-algorithms/ flag properties
description: Enable the quickcheck tests
library default: True
hs-source-dirs: src
default-language: Haskell2010 -- flag dump-simpl
-- description: Dumps the simplified core during compilation
build-depends: base >= 4.5 && < 5, -- default: False
bitvec >= 1.0 && < 1.2,
vector >= 0.6 && < 0.14, flag llvm
primitive >=0.6.2.0 && <0.9, description: Build using llvm
bytestring >= 0.9 && < 1.0 default: False
if ! impl (ghc >= 7.8) source-repository head
build-depends: tagged >= 0.4 && < 0.9 type: git
location: https://github.com/erikd/vector-algorithms/
exposed-modules:
Data.Vector.Algorithms library
Data.Vector.Algorithms.Optimal hs-source-dirs: src
Data.Vector.Algorithms.Insertion default-language: Haskell2010
Data.Vector.Algorithms.Intro
Data.Vector.Algorithms.Merge build-depends: base >= 4.8 && < 5,
Data.Vector.Algorithms.Radix bitvec >= 1.0 && < 1.2,
Data.Vector.Algorithms.Search vector >= 0.6 && < 0.14,
Data.Vector.Algorithms.Heap primitive >= 0.6.2.0 && < 0.10,
Data.Vector.Algorithms.AmericanFlag bytestring >= 0.9 && < 1
Data.Vector.Algorithms.Tim
if ! impl (ghc >= 7.8)
other-modules: build-depends: tagged >= 0.4 && < 0.9
Data.Vector.Algorithms.Common
exposed-modules:
ghc-options: Data.Vector.Algorithms
-funbox-strict-fields Data.Vector.Algorithms.Optimal
Data.Vector.Algorithms.Insertion
-- Cabal/Hackage complains about these Data.Vector.Algorithms.Intro
-- if flag(dump-simpl) Data.Vector.Algorithms.Merge
-- ghc-options: -ddump-simpl -ddump-to-file Data.Vector.Algorithms.Radix
Data.Vector.Algorithms.Search
if flag(llvm) Data.Vector.Algorithms.Heap
ghc-options: -fllvm Data.Vector.Algorithms.AmericanFlag
Data.Vector.Algorithms.Tim
include-dirs:
include other-modules:
Data.Vector.Algorithms.Common
install-includes:
vector.h ghc-options:
-funbox-strict-fields
if flag(BoundsChecks)
cpp-options: -DVECTOR_BOUNDS_CHECKS -- Cabal/Hackage complains about these
-- if flag(dump-simpl)
if flag(UnsafeChecks) -- ghc-options: -ddump-simpl -ddump-to-file
cpp-options: -DVECTOR_UNSAFE_CHECKS
if flag(llvm)
if flag(InternalChecks) ghc-options: -fllvm
cpp-options: -DVECTOR_INTERNAL_CHECKS
include-dirs:
benchmark simple-bench include
hs-source-dirs: bench/simple
type: exitcode-stdio-1.0 install-includes:
default-language: Haskell2010 vector.h
if !flag(bench) if flag(BoundsChecks)
buildable: False cpp-options: -DVECTOR_BOUNDS_CHECKS
main-is: Main.hs if flag(UnsafeChecks)
cpp-options: -DVECTOR_UNSAFE_CHECKS
other-modules:
Blocks if flag(InternalChecks)
cpp-options: -DVECTOR_INTERNAL_CHECKS
build-depends: base, mwc-random, vector, vector-algorithms
ghc-options: -Wall benchmark simple-bench
hs-source-dirs: bench/simple
-- Cabal/Hackage complains about these type: exitcode-stdio-1.0
-- if flag(dump-simpl) default-language: Haskell2010
-- ghc-options: -ddump-simpl -ddump-to-file
if !flag(bench)
if flag(llvm) buildable: False
ghc-options: -fllvm
main-is: Main.hs
test-suite properties
hs-source-dirs: tests/properties other-modules:
type: exitcode-stdio-1.0 Blocks
main-is: Tests.hs
default-language: Haskell2010 build-depends: base, mwc-random, vector, vector-algorithms
ghc-options: -Wall
other-modules:
Optimal -- Cabal/Hackage complains about these
Properties -- if flag(dump-simpl)
Util -- ghc-options: -ddump-simpl -ddump-to-file
if !flag(properties) if flag(llvm)
buildable: False ghc-options: -fllvm
else
build-depends: test-suite properties
base, hs-source-dirs: tests/properties
bytestring, type: exitcode-stdio-1.0
containers, main-is: Tests.hs
QuickCheck > 2.9 && < 2.15, default-language: Haskell2010
vector,
vector-algorithms other-modules:
Optimal
if flag(llvm) Properties
ghc-options: -fllvm Util
if !flag(properties)
buildable: False
else
build-depends:
base >= 4.9,
bytestring,
containers,
QuickCheck > 2.9 && < 2.15,
vector,
vector-algorithms
if flag(llvm)
ghc-options: -fllvm