forked from pool/ghc-hashable
osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hashable revision:18, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hashable?expand=0&rev=71
This commit is contained in:
parent
eaab06cee7
commit
d57fdd1e8b
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 20 00:17:13 UTC 2021 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update hashable to version 1.3.1.0.
|
||||||
|
## Version 1.3.1.0
|
||||||
|
|
||||||
|
* Add `Hashable1` instances to `semigroups` types.
|
||||||
|
|
||||||
|
* Use `ghc-bignum` with GHC-9.0
|
||||||
|
|
||||||
|
* Use FNV-1 constants.
|
||||||
|
|
||||||
|
* Make `hashable-examples` a test-suite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-hashable
|
# spec file for package ghc-hashable
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,13 +19,12 @@
|
|||||||
%global pkg_name hashable
|
%global pkg_name hashable
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 1.3.0.0
|
Version: 1.3.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A class for types that can be converted to a hash value
|
Summary: A class for types that can be converted to a hash value
|
||||||
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
|
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-deepseq-devel
|
BuildRequires: ghc-deepseq-devel
|
||||||
@ -60,7 +59,6 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pkg_name}-%{version}
|
%autosetup -n %{pkg_name}-%{version}
|
||||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch i586
|
%ifarch i586
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:822e5413fbccca6ae884d3aba4066422c8b5d58d23d18b9ecb5c03273bb19ab4
|
|
||||||
size 29835
|
|
3
hashable-1.3.1.0.tar.gz
Normal file
3
hashable-1.3.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8061823a4ac521b53912edcba36b956f3159cb885b07ec119af295a6568ca7c4
|
||||||
|
size 21424
|
183
hashable.cabal
183
hashable.cabal
@ -1,183 +0,0 @@
|
|||||||
Cabal-version: 1.12
|
|
||||||
Name: hashable
|
|
||||||
Version: 1.3.0.0
|
|
||||||
x-revision: 2
|
|
||||||
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/tibbe/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: johan.tibell@gmail.com
|
|
||||||
bug-reports: https://github.com/tibbe/hashable/issues
|
|
||||||
Stability: Provisional
|
|
||||||
Category: Data
|
|
||||||
Build-type: Simple
|
|
||||||
tested-with: GHC==8.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
|
||||||
|
|
||||||
Extra-source-files:
|
|
||||||
CHANGES.md, README.md
|
|
||||||
|
|
||||||
Flag integer-gmp
|
|
||||||
Description: Are we using @integer-gmp@ to provide fast Integer instances?
|
|
||||||
Default: True
|
|
||||||
|
|
||||||
Flag sse2
|
|
||||||
Description: Do we want to assume that a target supports SSE 2?
|
|
||||||
Default: True
|
|
||||||
Manual: True
|
|
||||||
|
|
||||||
Flag sse41
|
|
||||||
Description: Do we want to assume that a target supports SSE 4.1?
|
|
||||||
Default: False
|
|
||||||
Manual: True
|
|
||||||
|
|
||||||
Flag examples
|
|
||||||
Description: Build example modules
|
|
||||||
Default: False
|
|
||||||
Manual: True
|
|
||||||
|
|
||||||
Library
|
|
||||||
Exposed-modules: Data.Hashable
|
|
||||||
Data.Hashable.Lifted
|
|
||||||
Data.Hashable.Generic
|
|
||||||
Other-modules: Data.Hashable.Class
|
|
||||||
Data.Hashable.Generic.Instances
|
|
||||||
|
|
||||||
C-sources: cbits/fnv.c
|
|
||||||
|
|
||||||
Build-depends: base >= 4.5 && < 4.15
|
|
||||||
, bytestring >= 0.9 && < 0.12
|
|
||||||
, deepseq >= 1.3 && < 1.5
|
|
||||||
, text >= 0.12 && < 1.3
|
|
||||||
, ghc-prim
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
Default-Language: Haskell2010
|
|
||||||
Other-Extensions: BangPatterns
|
|
||||||
CPP
|
|
||||||
DeriveDataTypeable
|
|
||||||
FlexibleContexts
|
|
||||||
FlexibleInstances
|
|
||||||
GADTs
|
|
||||||
KindSignatures
|
|
||||||
MagicHash
|
|
||||||
MultiParamTypeClasses
|
|
||||||
ScopedTypeVariables
|
|
||||||
Trustworthy
|
|
||||||
TypeOperators
|
|
||||||
UnliftedFFITypes
|
|
||||||
|
|
||||||
Ghc-options: -Wall -fwarn-tabs
|
|
||||||
|
|
||||||
Test-suite 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,
|
|
||||||
test-framework >= 0.3.3,
|
|
||||||
test-framework-hunit,
|
|
||||||
test-framework-quickcheck2 >= 0.2.9,
|
|
||||||
HUnit,
|
|
||||||
QuickCheck >= 2.4.0.1,
|
|
||||||
random >= 1.0 && < 1.2,
|
|
||||||
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
|
|
||||||
|
|
||||||
benchmark benchmarks
|
|
||||||
-- We cannot depend on the hashable library directly as that creates
|
|
||||||
-- a dependency cycle.
|
|
||||||
hs-source-dirs: . benchmarks
|
|
||||||
|
|
||||||
main-is: Benchmarks.hs
|
|
||||||
other-modules:
|
|
||||||
Data.Hashable
|
|
||||||
Data.Hashable.Class
|
|
||||||
Data.Hashable.RandomSource
|
|
||||||
Data.Hashable.SipHash
|
|
||||||
type: exitcode-stdio-1.0
|
|
||||||
|
|
||||||
build-depends:
|
|
||||||
base,
|
|
||||||
bytestring,
|
|
||||||
criterion >= 1.0,
|
|
||||||
ghc-prim,
|
|
||||||
siphash,
|
|
||||||
text
|
|
||||||
|
|
||||||
if impl(ghc)
|
|
||||||
Build-depends: ghc-prim,
|
|
||||||
text >= 0.11.0.5
|
|
||||||
if impl(ghc) && flag(integer-gmp)
|
|
||||||
Build-depends: integer-gmp >= 0.2
|
|
||||||
|
|
||||||
if impl(ghc >= 7.2.1)
|
|
||||||
CPP-Options: -DGENERICS
|
|
||||||
|
|
||||||
include-dirs:
|
|
||||||
benchmarks/cbits
|
|
||||||
|
|
||||||
includes:
|
|
||||||
siphash.h
|
|
||||||
|
|
||||||
c-sources:
|
|
||||||
benchmarks/cbits/inthash.c
|
|
||||||
benchmarks/cbits/siphash.c
|
|
||||||
benchmarks/cbits/wang.c
|
|
||||||
cbits/fnv.c
|
|
||||||
|
|
||||||
if (arch(i386) || arch(x86_64)) && flag(sse2)
|
|
||||||
cpp-options: -DHAVE_SSE2
|
|
||||||
c-sources:
|
|
||||||
benchmarks/cbits/siphash-sse2.c
|
|
||||||
|
|
||||||
if flag(sse41)
|
|
||||||
cpp-options: -DHAVE_SSE41
|
|
||||||
c-sources:
|
|
||||||
benchmarks/cbits/siphash-sse41.c
|
|
||||||
|
|
||||||
Ghc-options: -Wall -O2
|
|
||||||
if impl(ghc >= 6.8)
|
|
||||||
Ghc-options: -fwarn-tabs
|
|
||||||
else
|
|
||||||
c-sources: cbits/getRandomBytes.c
|
|
||||||
other-modules: Data.Hashable.RandomSource
|
|
||||||
if os(windows)
|
|
||||||
extra-libraries: advapi32
|
|
||||||
|
|
||||||
Default-Language: Haskell2010
|
|
||||||
|
|
||||||
Executable hashable-examples
|
|
||||||
if flag(examples)
|
|
||||||
build-depends: base, hashable
|
|
||||||
else
|
|
||||||
buildable: False
|
|
||||||
hs-source-dirs: examples
|
|
||||||
main-is: Main.hs
|
|
||||||
Default-Language: Haskell2010
|
|
||||||
|
|
||||||
source-repository head
|
|
||||||
type: git
|
|
||||||
location: https://github.com/tibbe/hashable.git
|
|
Loading…
Reference in New Issue
Block a user