From 512e147c4e1e81e4c5271e25ae2a635e97cb9229f9573669665cd7e47ccf0905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 8 Mar 2021 08:01:10 +0000 Subject: [PATCH] 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 --- ghc-byteorder.cabal | 45 +++++++++++++++++++++++++++++++++++++++ ghc-ghc-byteorder.changes | 6 ++++++ ghc-ghc-byteorder.spec | 4 +++- 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 ghc-byteorder.cabal diff --git a/ghc-byteorder.cabal b/ghc-byteorder.cabal new file mode 100644 index 0000000..7a9c292 --- /dev/null +++ b/ghc-byteorder.cabal @@ -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 +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 diff --git a/ghc-ghc-byteorder.changes b/ghc-ghc-byteorder.changes index eb7506a..f28671a 100644 --- a/ghc-ghc-byteorder.changes +++ b/ghc-ghc-byteorder.changes @@ -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 diff --git a/ghc-ghc-byteorder.spec b/ghc-ghc-byteorder.spec index 5a5faba..9e7d1d6 100644 --- a/ghc-ghc-byteorder.spec +++ b/ghc-ghc-byteorder.spec @@ -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