From 3b0c34810676dc89e77ffbaa4d18e32aae4f96e6d502189665f91d4bfc28d8e0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 5 Oct 2023 21:00:54 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-base16-bytestring revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-base16-bytestring?expand=0&rev=52 --- base16-bytestring.cabal | 91 +++++++++++++++++++++++++++++++++++ ghc-base16-bytestring.changes | 6 +++ ghc-base16-bytestring.spec | 2 + 3 files changed, 99 insertions(+) create mode 100644 base16-bytestring.cabal diff --git a/base16-bytestring.cabal b/base16-bytestring.cabal new file mode 100644 index 0000000..8162c6e --- /dev/null +++ b/base16-bytestring.cabal @@ -0,0 +1,91 @@ +cabal-version: 1.12 +name: base16-bytestring +version: 1.0.2.0 +x-revision: 1 +synopsis: RFC 4648-compliant Base16 encodings for ByteStrings +description: + This package provides support for encoding and decoding binary data according + to @base16@ (see also ) for + strict (see "Data.ByteString.Base16") and lazy @ByteString@s (see "Data.ByteString.Base16.Lazy"). + . + See the package which provides superior encoding and decoding performance as well as support for lazy, short, and strict variants of 'Text' and 'ByteString' values. Additionally, see the package which + provides an uniform API providing conversion paths between more binary and textual types. + +homepage: http://github.com/haskell/base16-bytestring +bug-reports: http://github.com/haskell/base16-bytestring/issues +license: BSD3 +license-file: LICENSE +copyright: + Copyright 2011 MailRank, Inc.; + Copyright 2010-2020 Bryan O'Sullivan et al. + +author: Bryan O'Sullivan +maintainer: + Herbert Valerio Riedel , + Mikhail Glushenkov , + Emily Pillmore + +category: Data +build-type: Simple +extra-source-files: + README.md + CHANGELOG.md + +tested-with: + GHC == 9.8.0 + GHC == 9.6.3 + GHC == 9.4.7 + GHC == 9.2.8 + GHC == 9.0.2 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + +source-repository head + type: git + location: http://github.com/haskell/base16-bytestring + +library + other-modules: Data.ByteString.Base16.Internal + exposed-modules: + Data.ByteString.Base16 + Data.ByteString.Base16.Lazy + + build-depends: + base >=4.9 && <5 + , bytestring >=0.9 && <0.13 + + ghc-options: -Wall -funbox-strict-fields + default-language: Haskell2010 + +test-suite test + type: exitcode-stdio-1.0 + hs-source-dirs: tests + main-is: Tests.hs + build-depends: + base + , base16-bytestring + , bytestring + , HUnit + , QuickCheck + , test-framework + , test-framework-hunit + , test-framework-quickcheck2 + + default-language: Haskell2010 + +benchmark bench + type: exitcode-stdio-1.0 + hs-source-dirs: benchmarks + main-is: Benchmarks.hs + build-depends: + base >=4 && <5 + , base16-bytestring + , bytestring + , criterion + , deepseq + + default-language: Haskell2010 diff --git a/ghc-base16-bytestring.changes b/ghc-base16-bytestring.changes index bf8e3d6..bbac646 100644 --- a/ghc-base16-bytestring.changes +++ b/ghc-base16-bytestring.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 4 14:05:26 UTC 2023 - Peter Simons + +- Update base16-bytestring to version 1.0.2.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Mar 30 17:05:53 UTC 2023 - Peter Simons diff --git a/ghc-base16-bytestring.spec b/ghc-base16-bytestring.spec index b98d492..0960f85 100644 --- a/ghc-base16-bytestring.spec +++ b/ghc-base16-bytestring.spec @@ -26,6 +26,7 @@ Summary: RFC 4648-compliant Base16 encodings for ByteStrings 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-base-devel BuildRequires: ghc-base-prof @@ -88,6 +89,7 @@ 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