SHA256
1
0
forked from pool/ghc-hashable

osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hashable revision:11, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hashable?expand=0&rev=65
This commit is contained in:
Peter Simons 2020-09-04 15:10:34 +00:00 committed by Git OBS Bridge
parent c55e617bb1
commit 7ab770f687
5 changed files with 219 additions and 186 deletions

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com
- Update hashable to version 1.3.0.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Tue Aug 18 10:44:58 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 16 11:14:09 UTC 2020 - Peter Simons <psimons@suse.com>
- Re-generate file with latest version of spec-cleaner.
-------------------------------------------------------------------
Thu May 7 08:08:20 UTC 2020 - Peter Simons <psimons@suse.com>
- Update Cabal file to get more accurate dependency information.
-------------------------------------------------------------------
Sun Dec 29 10:27:18 UTC 2019 - psimons@suse.com
- Update hashable to version 1.3.0.0.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/hashable-1.3.0.0/src/CHANGES.md
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 8 16:13:49 UTC 2019 - Peter Simons <psimons@suse.com> Fri Nov 8 16:13:49 UTC 2019 - Peter Simons <psimons@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghc-hashable # spec file for package ghc-hashable
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 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,7 +19,7 @@
%global pkg_name hashable %global pkg_name hashable
%bcond_with tests %bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 1.2.7.0 Version: 1.3.0.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
@ -58,7 +58,7 @@ Requires(postun): ghc-compiler = %{ghc_version}
This package provides the Haskell %{pkg_name} library development files. This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%setup -q -n %{pkg_name}-%{version} %autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal cp -p %{SOURCE1} %{pkg_name}.cabal
%build %build

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ecb5efc0586023f5a0dc861100621c1dbb4cbb2f0516829a16ebac39f0432abf
size 30182

3
hashable-1.3.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:822e5413fbccca6ae884d3aba4066422c8b5d58d23d18b9ecb5c03273bb19ab4
size 29835

View File

@ -1,180 +1,183 @@
Cabal-version: 1.12 Cabal-version: 1.12
Name: hashable Name: hashable
Version: 1.2.7.0 Version: 1.3.0.0
x-revision: 1 x-revision: 1
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
License: BSD3 -- SPDX-License-Identifier : BSD-3-Clause
License-file: LICENSE License: BSD3
Author: Milan Straka <fox@ucw.cz> License-file: LICENSE
Johan Tibell <johan.tibell@gmail.com> Author: Milan Straka <fox@ucw.cz>
Maintainer: johan.tibell@gmail.com Johan Tibell <johan.tibell@gmail.com>
bug-reports: https://github.com/tibbe/hashable/issues Maintainer: johan.tibell@gmail.com
Stability: Provisional bug-reports: https://github.com/tibbe/hashable/issues
Category: Data Stability: Provisional
Build-type: Simple Category: Data
-- tests/Properties.hs shouldn't have to go here, but the source files Build-type: Simple
-- for the test-suite stanzas don't get picked up by `cabal sdist`. 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.4.1, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2
Extra-source-files:
Extra-source-files: CHANGES.md, README.md
CHANGES.md, README.md, tests/Properties.hs,
benchmarks/Benchmarks.hs, benchmarks/cbits/*.c, benchmarks/cbits/*.h Flag integer-gmp
Description: Are we using @integer-gmp@ to provide fast Integer instances?
Flag integer-gmp Default: True
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?
Flag sse2 Default: True
Description: Do we want to assume that a target supports SSE 2? Manual: True
Default: True
Manual: True Flag sse41
Description: Do we want to assume that a target supports SSE 4.1?
Flag sse41 Default: False
Description: Do we want to assume that a target supports SSE 4.1? Manual: True
Default: False
Manual: True Flag examples
Description: Build example modules
Flag examples Default: False
Description: Build example modules Manual: True
Default: False
Manual: True Library
Exposed-modules: Data.Hashable
Library Data.Hashable.Lifted
Exposed-modules: Data.Hashable Data.Hashable.Generic
Data.Hashable.Lifted Other-modules: Data.Hashable.Class
Other-modules: Data.Hashable.Class Data.Hashable.Generic.Instances
Build-depends: base >= 4.4 && < 4.13,
bytestring >= 0.9 && < 0.11, C-sources: cbits/fnv.c
deepseq >= 1.3 && < 1.5
if impl(ghc) Build-depends: base >= 4.5 && < 4.15
Build-depends: ghc-prim, , bytestring >= 0.9 && < 0.11
text >= 0.11.0.5 , deepseq >= 1.3 && < 1.5
if impl(ghc) && flag(integer-gmp) , text >= 0.12 && < 1.3
Build-depends: integer-gmp >= 0.2 , ghc-prim
if impl(ghc >= 7.2.1) if flag(integer-gmp)
CPP-Options: -DGENERICS Build-depends: integer-gmp >= 0.4 && < 1.1
Other-modules: Data.Hashable.Generic else
-- this is needed for the automatic flag to be well-balanced
C-sources: Build-depends: integer-simple
cbits/fnv.c
Default-Language: Haskell2010
Ghc-options: -Wall Other-Extensions: BangPatterns
if impl(ghc >= 6.8) CPP
Ghc-options: -fwarn-tabs DeriveDataTypeable
else FlexibleContexts
c-sources: cbits/getRandomBytes.c FlexibleInstances
other-modules: Data.Hashable.RandomSource GADTs
if os(windows) KindSignatures
extra-libraries: advapi32 MagicHash
MultiParamTypeClasses
Default-Language: Haskell2010 ScopedTypeVariables
Trustworthy
Test-suite tests TypeOperators
Type: exitcode-stdio-1.0 UnliftedFFITypes
Hs-source-dirs: tests
Main-is: Main.hs Ghc-options: -Wall -fwarn-tabs
Other-modules: Properties Regress
Build-depends: base >= 4.0 && < 5.0, Test-suite tests
bytestring, Type: exitcode-stdio-1.0
ghc-prim, Hs-source-dirs: tests
hashable, Main-is: Main.hs
test-framework >= 0.3.3, Other-modules: Properties Regress
test-framework-hunit, Build-depends: base,
test-framework-quickcheck2 >= 0.2.9, bytestring,
HUnit, ghc-prim,
QuickCheck >= 2.4.0.1, hashable,
random >= 1.0 && < 1.2, test-framework >= 0.3.3,
text >= 0.11.0.5 test-framework-hunit,
if !os(windows) test-framework-quickcheck2 >= 0.2.9,
Build-depends: unix HUnit,
CPP-options: -DHAVE_MMAP QuickCheck >= 2.4.0.1,
Other-modules: Regress.Mmap random >= 1.0 && < 1.2,
text >= 0.11.0.5
Ghc-options: -Wall -fno-warn-orphans if !os(windows)
if impl(ghc >= 7.2.1) Build-depends: unix
CPP-Options: -DGENERICS CPP-options: -DHAVE_MMAP
Other-modules: Regress.Mmap
Default-Language: Haskell2010 Other-Extensions: CApiFFI
benchmark benchmarks Ghc-options: -Wall -fno-warn-orphans
-- We cannot depend on the hashable library directly as that creates Default-Language: Haskell2010
-- a dependency cycle.
hs-source-dirs: . benchmarks benchmark benchmarks
-- We cannot depend on the hashable library directly as that creates
main-is: Benchmarks.hs -- a dependency cycle.
other-modules: hs-source-dirs: . benchmarks
Data.Hashable
Data.Hashable.Class main-is: Benchmarks.hs
Data.Hashable.RandomSource other-modules:
Data.Hashable.SipHash Data.Hashable
type: exitcode-stdio-1.0 Data.Hashable.Class
Data.Hashable.RandomSource
build-depends: Data.Hashable.SipHash
base, type: exitcode-stdio-1.0
bytestring,
criterion >= 1.0, build-depends:
ghc-prim, base,
siphash, bytestring,
text criterion >= 1.0,
ghc-prim,
if impl(ghc) siphash,
Build-depends: ghc-prim, text
text >= 0.11.0.5
if impl(ghc) && flag(integer-gmp) if impl(ghc)
Build-depends: integer-gmp >= 0.2 Build-depends: ghc-prim,
text >= 0.11.0.5
if impl(ghc >= 7.2.1) if impl(ghc) && flag(integer-gmp)
CPP-Options: -DGENERICS Build-depends: integer-gmp >= 0.2
include-dirs: if impl(ghc >= 7.2.1)
benchmarks/cbits CPP-Options: -DGENERICS
includes: include-dirs:
siphash.h benchmarks/cbits
c-sources: includes:
benchmarks/cbits/inthash.c siphash.h
benchmarks/cbits/siphash.c
benchmarks/cbits/wang.c c-sources:
cbits/fnv.c benchmarks/cbits/inthash.c
benchmarks/cbits/siphash.c
if (arch(i386) || arch(x86_64)) && flag(sse2) benchmarks/cbits/wang.c
cpp-options: -DHAVE_SSE2 cbits/fnv.c
c-sources:
benchmarks/cbits/siphash-sse2.c if (arch(i386) || arch(x86_64)) && flag(sse2)
cpp-options: -DHAVE_SSE2
if flag(sse41) c-sources:
cpp-options: -DHAVE_SSE41 benchmarks/cbits/siphash-sse2.c
c-sources:
benchmarks/cbits/siphash-sse41.c if flag(sse41)
cpp-options: -DHAVE_SSE41
Ghc-options: -Wall -O2 c-sources:
if impl(ghc >= 6.8) benchmarks/cbits/siphash-sse41.c
Ghc-options: -fwarn-tabs
else Ghc-options: -Wall -O2
c-sources: cbits/getRandomBytes.c if impl(ghc >= 6.8)
other-modules: Data.Hashable.RandomSource Ghc-options: -fwarn-tabs
if os(windows) else
extra-libraries: advapi32 c-sources: cbits/getRandomBytes.c
other-modules: Data.Hashable.RandomSource
Default-Language: Haskell2010 if os(windows)
extra-libraries: advapi32
Executable hashable-examples
if flag(examples) Default-Language: Haskell2010
build-depends: base, hashable
else Executable hashable-examples
buildable: False if flag(examples)
hs-source-dirs: examples build-depends: base, hashable
main-is: Main.hs else
Default-Language: Haskell2010 buildable: False
hs-source-dirs: examples
source-repository head main-is: Main.hs
type: git Default-Language: Haskell2010
location: https://github.com/tibbe/hashable.git
source-repository head
type: git
location: https://github.com/tibbe/hashable.git