Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 2decd95bc8 |
@@ -1,29 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 5 12:05:36 UTC 2021 - psimons@suse.com
|
||||
Tue Apr 23 10:33:06 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update half to version 0.3.1.
|
||||
0.3.1 [2021-01-04]
|
||||
------------------
|
||||
* Downgraded testing claims that NaNs will round-trip, as 32-bit GHCs aren't fulfilling that promise.
|
||||
Now we merely claim that a NaN will return as a NaN.
|
||||
* Always provide `NFData Half` instance
|
||||
* Add `Binary Half` instance
|
||||
* Explicitly mark module as `Trustworthy`
|
||||
* Fix `isInfinite`
|
||||
* Add experimental support for GHCJS, add pure conversion functions.
|
||||
- Update half to version 0.3.1 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- disable %{ix86} build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 10:44:57 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
Sat Nov 18 12:35:03 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Replace %setup -q with the more modern %autosetup macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 8 16:47:59 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Add half at version 0.3.
|
||||
- Add half at version 0.3.1 revision 1.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghc-half
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%global pkg_name half
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
%bcond_with tests
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.3.1
|
||||
@@ -25,17 +26,27 @@ Summary: Half-precision floating-point
|
||||
License: BSD-2-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/2.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-binary-devel
|
||||
BuildRequires: ghc-binary-prof
|
||||
BuildRequires: ghc-deepseq-devel
|
||||
BuildRequires: ghc-deepseq-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-template-haskell-devel
|
||||
BuildRequires: ghc-template-haskell-prof
|
||||
ExcludeArch: %{ix86}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-QuickCheck-devel
|
||||
BuildRequires: ghc-QuickCheck-prof
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-test-framework-devel
|
||||
BuildRequires: ghc-test-framework-prof
|
||||
BuildRequires: ghc-test-framework-quickcheck2-devel
|
||||
BuildRequires: ghc-test-framework-quickcheck2-prof
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -51,8 +62,25 @@ Requires(postun): ghc-compiler = %{ghc_version}
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
%package -n ghc-%{pkg_name}-doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
Requires: ghc-filesystem
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n ghc-%{pkg_name}-doc
|
||||
This package provides the Haskell %{pkg_name} library documentation.
|
||||
|
||||
%package -n ghc-%{pkg_name}-prof
|
||||
Summary: Haskell %{pkg_name} profiling library
|
||||
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
||||
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
||||
|
||||
%description -n ghc-%{pkg_name}-prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pkg_name}-%{version}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
@@ -75,4 +103,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||
%files devel -f %{name}-devel.files
|
||||
%doc CHANGELOG.markdown README.markdown
|
||||
|
||||
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||
%license LICENSE
|
||||
|
||||
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||
|
||||
%changelog
|
||||
|
||||
86
half.cabal
Normal file
86
half.cabal
Normal file
@@ -0,0 +1,86 @@
|
||||
cabal-version: >=1.10
|
||||
name: half
|
||||
version: 0.3.1
|
||||
x-revision: 2
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
copyright: Copyright (C) 2014 Edward A. Kmett
|
||||
maintainer: Edward A. Kmett <ekmett@gmail.com>
|
||||
author: Edward A. Kmett
|
||||
stability: provisional
|
||||
homepage: http://github.com/ekmett/half
|
||||
bug-reports: http://github.com/ekmett/half/issues
|
||||
synopsis: Half-precision floating-point
|
||||
description:
|
||||
Half-precision floating-point.
|
||||
category: Numeric
|
||||
build-type: Simple
|
||||
extra-source-files:
|
||||
.gitignore
|
||||
README.markdown
|
||||
CHANGELOG.markdown
|
||||
|
||||
tested-with: GHC == 7.4.2
|
||||
, GHC == 7.6.3
|
||||
, GHC == 7.8.4
|
||||
, GHC == 7.10.3
|
||||
, GHC == 8.0.2
|
||||
, GHC == 8.2.2
|
||||
, GHC == 8.4.4
|
||||
, GHC == 8.6.5
|
||||
, GHC == 8.8.4
|
||||
, GHC == 8.10.3
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/ekmett/half.git
|
||||
|
||||
library
|
||||
default-language: Haskell2010
|
||||
exposed-modules:
|
||||
Numeric.Half
|
||||
Numeric.Half.Internal
|
||||
hs-source-dirs: src
|
||||
other-extensions: BangPatterns CPP DeriveDataTypeable DeriveGeneric
|
||||
ForeignFunctionInterface
|
||||
ghc-options: -Wall -fwarn-tabs -O2
|
||||
build-depends:
|
||||
base >=4.5 && <5,
|
||||
binary >=0.5.1.0 && <0.9,
|
||||
deepseq >=1.3.0.0 && <1.6,
|
||||
template-haskell
|
||||
|
||||
if !impl(ghcjs)
|
||||
c-sources:
|
||||
cbits/half.c
|
||||
|
||||
if impl(ghc >= 8.0)
|
||||
other-extensions: DeriveLift StandaloneDeriving
|
||||
else
|
||||
other-extensions: TemplateHaskell
|
||||
|
||||
if impl(ghc >=7.8)
|
||||
other-extensions: PatternSynonyms
|
||||
|
||||
if impl(ghc <7.6)
|
||||
build-depends:
|
||||
ghc-prim
|
||||
|
||||
if impl(ghc >=8)
|
||||
ghc-options: -Wno-missing-pattern-synonym-signatures
|
||||
|
||||
test-suite spec
|
||||
default-language: Haskell2010
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: Spec.hs
|
||||
hs-source-dirs: test
|
||||
ghc-options: -Wall
|
||||
|
||||
build-depends:
|
||||
base,
|
||||
binary,
|
||||
bytestring,
|
||||
half,
|
||||
QuickCheck >=2.14.1 && <2.16,
|
||||
test-framework,
|
||||
test-framework-quickcheck2
|
||||
Reference in New Issue
Block a user