forked from pool/ghc-hashable
Accepting request 857381 from devel:languages:haskell
update haskell stack in openSUS OBS-URL: https://build.opensuse.org/request/show/857381 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hashable?expand=0&rev=25
This commit is contained in:
commit
04471dd9a7
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- disable %{ix86} build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 8 09:22:30 UTC 2020 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update hashable to version 1.3.0.0 revision 2.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com
|
Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com
|
||||||
|
|
||||||
|
@ -25,12 +25,13 @@ 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/1.cabal#/%{pkg_name}.cabal
|
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
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
BuildRequires: ghc-text-devel
|
BuildRequires: ghc-text-devel
|
||||||
|
ExcludeArch: %{ix86}
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: ghc-HUnit-devel
|
BuildRequires: ghc-HUnit-devel
|
||||||
BuildRequires: ghc-QuickCheck-devel
|
BuildRequires: ghc-QuickCheck-devel
|
||||||
|
366
hashable.cabal
366
hashable.cabal
@ -1,183 +1,183 @@
|
|||||||
Cabal-version: 1.12
|
Cabal-version: 1.12
|
||||||
Name: hashable
|
Name: hashable
|
||||||
Version: 1.3.0.0
|
Version: 1.3.0.0
|
||||||
x-revision: 1
|
x-revision: 2
|
||||||
Synopsis: A class for types that can be converted to a hash value
|
Synopsis: A class for types that can be converted to a hash value
|
||||||
Description: This package defines a class, 'Hashable', for types that
|
Description: This package defines a class, 'Hashable', for types that
|
||||||
can be converted to a hash value. This class
|
can be converted to a hash value. This class
|
||||||
exists for the benefit of hashing-based data
|
exists for the benefit of hashing-based data
|
||||||
structures. The package provides instances for
|
structures. The package provides instances for
|
||||||
basic types and a way to combine hash values.
|
basic types and a way to combine hash values.
|
||||||
Homepage: http://github.com/tibbe/hashable
|
Homepage: http://github.com/tibbe/hashable
|
||||||
-- SPDX-License-Identifier : BSD-3-Clause
|
-- SPDX-License-Identifier : BSD-3-Clause
|
||||||
License: BSD3
|
License: BSD3
|
||||||
License-file: LICENSE
|
License-file: LICENSE
|
||||||
Author: Milan Straka <fox@ucw.cz>
|
Author: Milan Straka <fox@ucw.cz>
|
||||||
Johan Tibell <johan.tibell@gmail.com>
|
Johan Tibell <johan.tibell@gmail.com>
|
||||||
Maintainer: johan.tibell@gmail.com
|
Maintainer: johan.tibell@gmail.com
|
||||||
bug-reports: https://github.com/tibbe/hashable/issues
|
bug-reports: https://github.com/tibbe/hashable/issues
|
||||||
Stability: Provisional
|
Stability: Provisional
|
||||||
Category: Data
|
Category: Data
|
||||||
Build-type: Simple
|
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
|
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:
|
Extra-source-files:
|
||||||
CHANGES.md, README.md
|
CHANGES.md, README.md
|
||||||
|
|
||||||
Flag integer-gmp
|
Flag integer-gmp
|
||||||
Description: Are we using @integer-gmp@ to provide fast Integer instances?
|
Description: Are we using @integer-gmp@ to provide fast Integer instances?
|
||||||
Default: True
|
Default: True
|
||||||
|
|
||||||
Flag sse2
|
Flag sse2
|
||||||
Description: Do we want to assume that a target supports SSE 2?
|
Description: Do we want to assume that a target supports SSE 2?
|
||||||
Default: True
|
Default: True
|
||||||
Manual: True
|
Manual: True
|
||||||
|
|
||||||
Flag sse41
|
Flag sse41
|
||||||
Description: Do we want to assume that a target supports SSE 4.1?
|
Description: Do we want to assume that a target supports SSE 4.1?
|
||||||
Default: False
|
Default: False
|
||||||
Manual: True
|
Manual: True
|
||||||
|
|
||||||
Flag examples
|
Flag examples
|
||||||
Description: Build example modules
|
Description: Build example modules
|
||||||
Default: False
|
Default: False
|
||||||
Manual: True
|
Manual: True
|
||||||
|
|
||||||
Library
|
Library
|
||||||
Exposed-modules: Data.Hashable
|
Exposed-modules: Data.Hashable
|
||||||
Data.Hashable.Lifted
|
Data.Hashable.Lifted
|
||||||
Data.Hashable.Generic
|
Data.Hashable.Generic
|
||||||
Other-modules: Data.Hashable.Class
|
Other-modules: Data.Hashable.Class
|
||||||
Data.Hashable.Generic.Instances
|
Data.Hashable.Generic.Instances
|
||||||
|
|
||||||
C-sources: cbits/fnv.c
|
C-sources: cbits/fnv.c
|
||||||
|
|
||||||
Build-depends: base >= 4.5 && < 4.15
|
Build-depends: base >= 4.5 && < 4.15
|
||||||
, bytestring >= 0.9 && < 0.11
|
, bytestring >= 0.9 && < 0.12
|
||||||
, deepseq >= 1.3 && < 1.5
|
, deepseq >= 1.3 && < 1.5
|
||||||
, text >= 0.12 && < 1.3
|
, text >= 0.12 && < 1.3
|
||||||
, ghc-prim
|
, ghc-prim
|
||||||
|
|
||||||
if flag(integer-gmp)
|
if flag(integer-gmp)
|
||||||
Build-depends: integer-gmp >= 0.4 && < 1.1
|
Build-depends: integer-gmp >= 0.4 && < 1.1
|
||||||
else
|
else
|
||||||
-- this is needed for the automatic flag to be well-balanced
|
-- this is needed for the automatic flag to be well-balanced
|
||||||
Build-depends: integer-simple
|
Build-depends: integer-simple
|
||||||
|
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
Other-Extensions: BangPatterns
|
Other-Extensions: BangPatterns
|
||||||
CPP
|
CPP
|
||||||
DeriveDataTypeable
|
DeriveDataTypeable
|
||||||
FlexibleContexts
|
FlexibleContexts
|
||||||
FlexibleInstances
|
FlexibleInstances
|
||||||
GADTs
|
GADTs
|
||||||
KindSignatures
|
KindSignatures
|
||||||
MagicHash
|
MagicHash
|
||||||
MultiParamTypeClasses
|
MultiParamTypeClasses
|
||||||
ScopedTypeVariables
|
ScopedTypeVariables
|
||||||
Trustworthy
|
Trustworthy
|
||||||
TypeOperators
|
TypeOperators
|
||||||
UnliftedFFITypes
|
UnliftedFFITypes
|
||||||
|
|
||||||
Ghc-options: -Wall -fwarn-tabs
|
Ghc-options: -Wall -fwarn-tabs
|
||||||
|
|
||||||
Test-suite tests
|
Test-suite tests
|
||||||
Type: exitcode-stdio-1.0
|
Type: exitcode-stdio-1.0
|
||||||
Hs-source-dirs: tests
|
Hs-source-dirs: tests
|
||||||
Main-is: Main.hs
|
Main-is: Main.hs
|
||||||
Other-modules: Properties Regress
|
Other-modules: Properties Regress
|
||||||
Build-depends: base,
|
Build-depends: base,
|
||||||
bytestring,
|
bytestring,
|
||||||
ghc-prim,
|
ghc-prim,
|
||||||
hashable,
|
hashable,
|
||||||
test-framework >= 0.3.3,
|
test-framework >= 0.3.3,
|
||||||
test-framework-hunit,
|
test-framework-hunit,
|
||||||
test-framework-quickcheck2 >= 0.2.9,
|
test-framework-quickcheck2 >= 0.2.9,
|
||||||
HUnit,
|
HUnit,
|
||||||
QuickCheck >= 2.4.0.1,
|
QuickCheck >= 2.4.0.1,
|
||||||
random >= 1.0 && < 1.2,
|
random >= 1.0 && < 1.2,
|
||||||
text >= 0.11.0.5
|
text >= 0.11.0.5
|
||||||
if !os(windows)
|
if !os(windows)
|
||||||
Build-depends: unix
|
Build-depends: unix
|
||||||
CPP-options: -DHAVE_MMAP
|
CPP-options: -DHAVE_MMAP
|
||||||
Other-modules: Regress.Mmap
|
Other-modules: Regress.Mmap
|
||||||
Other-Extensions: CApiFFI
|
Other-Extensions: CApiFFI
|
||||||
|
|
||||||
Ghc-options: -Wall -fno-warn-orphans
|
Ghc-options: -Wall -fno-warn-orphans
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
|
|
||||||
benchmark benchmarks
|
benchmark benchmarks
|
||||||
-- We cannot depend on the hashable library directly as that creates
|
-- We cannot depend on the hashable library directly as that creates
|
||||||
-- a dependency cycle.
|
-- a dependency cycle.
|
||||||
hs-source-dirs: . benchmarks
|
hs-source-dirs: . benchmarks
|
||||||
|
|
||||||
main-is: Benchmarks.hs
|
main-is: Benchmarks.hs
|
||||||
other-modules:
|
other-modules:
|
||||||
Data.Hashable
|
Data.Hashable
|
||||||
Data.Hashable.Class
|
Data.Hashable.Class
|
||||||
Data.Hashable.RandomSource
|
Data.Hashable.RandomSource
|
||||||
Data.Hashable.SipHash
|
Data.Hashable.SipHash
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
|
|
||||||
build-depends:
|
build-depends:
|
||||||
base,
|
base,
|
||||||
bytestring,
|
bytestring,
|
||||||
criterion >= 1.0,
|
criterion >= 1.0,
|
||||||
ghc-prim,
|
ghc-prim,
|
||||||
siphash,
|
siphash,
|
||||||
text
|
text
|
||||||
|
|
||||||
if impl(ghc)
|
if impl(ghc)
|
||||||
Build-depends: ghc-prim,
|
Build-depends: ghc-prim,
|
||||||
text >= 0.11.0.5
|
text >= 0.11.0.5
|
||||||
if impl(ghc) && flag(integer-gmp)
|
if impl(ghc) && flag(integer-gmp)
|
||||||
Build-depends: integer-gmp >= 0.2
|
Build-depends: integer-gmp >= 0.2
|
||||||
|
|
||||||
if impl(ghc >= 7.2.1)
|
if impl(ghc >= 7.2.1)
|
||||||
CPP-Options: -DGENERICS
|
CPP-Options: -DGENERICS
|
||||||
|
|
||||||
include-dirs:
|
include-dirs:
|
||||||
benchmarks/cbits
|
benchmarks/cbits
|
||||||
|
|
||||||
includes:
|
includes:
|
||||||
siphash.h
|
siphash.h
|
||||||
|
|
||||||
c-sources:
|
c-sources:
|
||||||
benchmarks/cbits/inthash.c
|
benchmarks/cbits/inthash.c
|
||||||
benchmarks/cbits/siphash.c
|
benchmarks/cbits/siphash.c
|
||||||
benchmarks/cbits/wang.c
|
benchmarks/cbits/wang.c
|
||||||
cbits/fnv.c
|
cbits/fnv.c
|
||||||
|
|
||||||
if (arch(i386) || arch(x86_64)) && flag(sse2)
|
if (arch(i386) || arch(x86_64)) && flag(sse2)
|
||||||
cpp-options: -DHAVE_SSE2
|
cpp-options: -DHAVE_SSE2
|
||||||
c-sources:
|
c-sources:
|
||||||
benchmarks/cbits/siphash-sse2.c
|
benchmarks/cbits/siphash-sse2.c
|
||||||
|
|
||||||
if flag(sse41)
|
if flag(sse41)
|
||||||
cpp-options: -DHAVE_SSE41
|
cpp-options: -DHAVE_SSE41
|
||||||
c-sources:
|
c-sources:
|
||||||
benchmarks/cbits/siphash-sse41.c
|
benchmarks/cbits/siphash-sse41.c
|
||||||
|
|
||||||
Ghc-options: -Wall -O2
|
Ghc-options: -Wall -O2
|
||||||
if impl(ghc >= 6.8)
|
if impl(ghc >= 6.8)
|
||||||
Ghc-options: -fwarn-tabs
|
Ghc-options: -fwarn-tabs
|
||||||
else
|
else
|
||||||
c-sources: cbits/getRandomBytes.c
|
c-sources: cbits/getRandomBytes.c
|
||||||
other-modules: Data.Hashable.RandomSource
|
other-modules: Data.Hashable.RandomSource
|
||||||
if os(windows)
|
if os(windows)
|
||||||
extra-libraries: advapi32
|
extra-libraries: advapi32
|
||||||
|
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
|
|
||||||
Executable hashable-examples
|
Executable hashable-examples
|
||||||
if flag(examples)
|
if flag(examples)
|
||||||
build-depends: base, hashable
|
build-depends: base, hashable
|
||||||
else
|
else
|
||||||
buildable: False
|
buildable: False
|
||||||
hs-source-dirs: examples
|
hs-source-dirs: examples
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/tibbe/hashable.git
|
location: https://github.com/tibbe/hashable.git
|
||||||
|
Loading…
Reference in New Issue
Block a user