forked from pool/ghc-ghc-byteorder
osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-ghc-byteorder revision:7, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-ghc-byteorder?expand=0&rev=7
This commit is contained in:
parent
215242425c
commit
512e147c4e
45
ghc-byteorder.cabal
Normal file
45
ghc-byteorder.cabal
Normal file
@ -0,0 +1,45 @@
|
||||
cabal-version: 2.2
|
||||
name: ghc-byteorder
|
||||
version: 4.11.0.0.10
|
||||
x-revision: 1
|
||||
|
||||
license: BSD-3-Clause
|
||||
license-file: LICENSE
|
||||
maintainer: Herbert Valerio Riedel <hvr@gnu.org>
|
||||
bug-reports: https://github.com/hvr/ghc-byteorder/issues
|
||||
synopsis: "GHC.ByteOrder" API Compatibility Layer
|
||||
category: FFI
|
||||
description:
|
||||
This package transparently supplies the "GHC.ByteOrder" API as provided in @base-4.11.0.0@ for legacy GHC releases which didn't provide it yet (i.e. GHC 7.0 through GHC 8.2).
|
||||
.
|
||||
This release reexports [GHC.ByteOrder from base](https://hackage.haskell.org/package/base-4.11.1.0/docs/GHC-ByteOrder.html) via Cabal's @reexported-modules@ mechanism. For GHC 8.2 and earlier a different release of @ghc-byteorder@ (with the same minor version) is eligible by the Cabal solver with a backported "GHC.ByteOrder" module.
|
||||
.
|
||||
In order to use this compatibility layer, simply declare a dependency on @ghc-byteorder@ in your @.cabal@ package description like so
|
||||
.
|
||||
> build-depends: ghc-byteorder ^>= 4.11.0.0
|
||||
.
|
||||
And your code will be able to access this respective API version of the module via the usual
|
||||
.
|
||||
> import GHC.ByteOrder
|
||||
.
|
||||
mechanism.
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/hvr/ghc-byteorder.git
|
||||
|
||||
library
|
||||
default-language: Haskell2010
|
||||
build-depends: base >=4.11 && <4.16
|
||||
reexported-modules: GHC.ByteOrder
|
||||
|
||||
test-suite tests
|
||||
type: exitcode-stdio-1.0
|
||||
default-language: Haskell2010
|
||||
|
||||
hs-source-dirs: src-test
|
||||
main-is: tests.hs
|
||||
|
||||
build-depends: base, ghc-byteorder
|
||||
|
||||
ghc-options: -Wall
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 27 13:13:57 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update ghc-byteorder to version 4.11.0.0.10 revision 1.
|
||||
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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghc-ghc-byteorder
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -24,6 +24,7 @@ Summary: "GHC.ByteOrder" API Compatibility Layer
|
||||
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-rpm-macros
|
||||
ExcludeArch: %{ix86}
|
||||
@ -63,6 +64,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_without_haddock
|
||||
|
Loading…
Reference in New Issue
Block a user