forked from pool/ghc-hashable
osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hashable revision:28, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hashable?expand=0&rev=81
This commit is contained in:
parent
25dcf2ba5c
commit
e5de093b5b
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 4 12:15:07 UTC 2022 - psimons@suse.com
|
||||
|
||||
- Update hashable to version 1.3.5.0 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 4 12:28:59 UTC 2021 - psimons@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghc-hashable
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 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: A class for types that can be converted to a hash value
|
||||
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-bytestring-devel
|
||||
BuildRequires: ghc-containers-devel
|
||||
@ -60,6 +61,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
|
||||
|
176
hashable.cabal
Normal file
176
hashable.cabal
Normal file
@ -0,0 +1,176 @@
|
||||
cabal-version: 1.12
|
||||
name: hashable
|
||||
version: 1.3.5.0
|
||||
x-revision: 1
|
||||
synopsis: A class for types that can be converted to a hash value
|
||||
description:
|
||||
This package defines a class, 'Hashable', for types that
|
||||
can be converted to a hash value. This class
|
||||
exists for the benefit of hashing-based data
|
||||
structures. The package provides instances for
|
||||
basic types and a way to combine hash values.
|
||||
|
||||
homepage: http://github.com/haskell-unordered-containers/hashable
|
||||
|
||||
-- SPDX-License-Identifier : BSD-3-Clause
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author:
|
||||
Milan Straka <fox@ucw.cz>
|
||||
Johan Tibell <johan.tibell@gmail.com>
|
||||
|
||||
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
|
||||
bug-reports:
|
||||
https://github.com/haskell-unordered-containers/hashable/issues
|
||||
|
||||
stability: Provisional
|
||||
category: Data
|
||||
build-type: Simple
|
||||
tested-with:
|
||||
GHC ==7.4.2
|
||||
|| ==7.6.3
|
||||
|| ==7.8.4
|
||||
|| ==7.10.3
|
||||
|| ==8.0.2
|
||||
|| ==8.2.2
|
||||
|| ==8.4.4
|
||||
|| ==8.6.5
|
||||
|| ==8.8.3
|
||||
|| ==8.10.4
|
||||
|| ==9.0.1
|
||||
|| ==9.0.2
|
||||
|| ==9.2.1
|
||||
|
||||
extra-source-files:
|
||||
CHANGES.md
|
||||
README.md
|
||||
include/HsHashable.h
|
||||
|
||||
flag integer-gmp
|
||||
description:
|
||||
Are we using @integer-gmp@ to provide fast Integer instances? No effect on GHC-9.0 or later.
|
||||
|
||||
manual: False
|
||||
default: True
|
||||
|
||||
flag random-initial-seed
|
||||
description:
|
||||
Randomly initialize the initial seed on each final executable invocation
|
||||
This is useful for catching cases when you rely on (non-existent)
|
||||
stability of hashable's hash functions.
|
||||
This is not a security feature.
|
||||
|
||||
manual: True
|
||||
default: False
|
||||
|
||||
library
|
||||
exposed-modules:
|
||||
Data.Hashable
|
||||
Data.Hashable.Generic
|
||||
Data.Hashable.Lifted
|
||||
|
||||
other-modules:
|
||||
Data.Hashable.Class
|
||||
Data.Hashable.Imports
|
||||
Data.Hashable.LowLevel
|
||||
Data.Hashable.Generic.Instances
|
||||
|
||||
c-sources: cbits/fnv.c
|
||||
include-dirs: include
|
||||
hs-source-dirs: src
|
||||
build-depends:
|
||||
base >=4.5 && <4.17
|
||||
, bytestring >=0.9 && <0.12
|
||||
, containers >=0.4.2.1 && <0.7
|
||||
, deepseq >=1.3 && <1.5
|
||||
, ghc-prim
|
||||
, text >=0.12 && <1.3
|
||||
|
||||
if impl(ghc >=9)
|
||||
build-depends: ghc-bignum ==1.0.* || ==1.1.* || ==1.2.*
|
||||
|
||||
else
|
||||
if flag(integer-gmp)
|
||||
build-depends: integer-gmp >=0.4 && <1.1
|
||||
|
||||
else
|
||||
-- this is needed for the automatic flag to be well-balanced
|
||||
build-depends: integer-simple
|
||||
|
||||
if (flag(random-initial-seed) && impl(ghc))
|
||||
cpp-options: -DHASHABLE_RANDOM_SEED=1
|
||||
|
||||
if os(windows)
|
||||
c-sources: cbits-win/init.c
|
||||
|
||||
else
|
||||
c-sources: cbits-unix/init.c
|
||||
|
||||
default-language: Haskell2010
|
||||
other-extensions:
|
||||
BangPatterns
|
||||
CPP
|
||||
DeriveDataTypeable
|
||||
FlexibleContexts
|
||||
FlexibleInstances
|
||||
GADTs
|
||||
KindSignatures
|
||||
MagicHash
|
||||
MultiParamTypeClasses
|
||||
ScopedTypeVariables
|
||||
Trustworthy
|
||||
TypeOperators
|
||||
UnliftedFFITypes
|
||||
|
||||
ghc-options: -Wall -fwarn-tabs
|
||||
|
||||
if impl(ghc >=9.0)
|
||||
-- these flags may abort compilation with GHC-8.10
|
||||
-- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295
|
||||
ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode
|
||||
|
||||
test-suite hashable-tests
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: tests
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
Properties
|
||||
Regress
|
||||
|
||||
build-depends:
|
||||
base
|
||||
, bytestring
|
||||
, ghc-prim
|
||||
, hashable
|
||||
, HUnit
|
||||
, QuickCheck >=2.4.0.1
|
||||
, random >=1.0 && <1.3
|
||||
, test-framework >=0.3.3
|
||||
, test-framework-hunit
|
||||
, test-framework-quickcheck2 >=0.2.9
|
||||
, text >=0.11.0.5
|
||||
|
||||
if !os(windows)
|
||||
build-depends: unix
|
||||
cpp-options: -DHAVE_MMAP
|
||||
other-modules: Regress.Mmap
|
||||
other-extensions: CApiFFI
|
||||
|
||||
ghc-options: -Wall -fno-warn-orphans
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite hashable-examples
|
||||
type: exitcode-stdio-1.0
|
||||
build-depends:
|
||||
base
|
||||
, ghc-prim
|
||||
, hashable
|
||||
|
||||
hs-source-dirs: examples
|
||||
main-is: Main.hs
|
||||
default-language: Haskell2010
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location:
|
||||
https://github.com/haskell-unordered-containers/hashable.git
|
Loading…
Reference in New Issue
Block a user