From 049567486b7c44f80de991d0f86294b0009f4ead71e0c971e9976722a965392f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 15 Jul 2023 21:01:13 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-base64-bytestring revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-base64-bytestring?expand=0&rev=60 --- base64-bytestring.cabal | 92 +++++++++++++++++++++++++++++++++++ ghc-base64-bytestring.changes | 6 +++ ghc-base64-bytestring.spec | 2 + 3 files changed, 100 insertions(+) create mode 100644 base64-bytestring.cabal diff --git a/base64-bytestring.cabal b/base64-bytestring.cabal new file mode 100644 index 0000000..4be8e15 --- /dev/null +++ b/base64-bytestring.cabal @@ -0,0 +1,92 @@ +cabal-version: 1.12 +name: base64-bytestring +version: 1.2.1.0 +x-revision: 1 +synopsis: Fast base64 encoding and decoding for ByteStrings +description: + This package provides support for encoding and decoding binary data according to @base64@ (see also ) for strict and lazy ByteStrings + . + For a fuller-featured and better-performing Base64 library, see the package. + +homepage: https://github.com/haskell/base64-bytestring +bug-reports: https://github.com/haskell/base64-bytestring/issues +license: BSD3 +license-file: LICENSE +author: Bryan O'Sullivan +maintainer: + Herbert Valerio Riedel , + Mikhail Glushenkov , + Emily Pillmore + +copyright: 2010-2020 Bryan O'Sullivan et al. +category: Data +build-type: Simple +tested-with: + GHC ==7.0.4 + || ==7.2.2 + || ==7.4.2 + || ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.5 + || ==8.8.4 + || ==8.10.7 + +extra-source-files: + README.md + CHANGELOG.md + utils/Transcode.hs + utils/transcode.py + +library + exposed-modules: + Data.ByteString.Base64 + Data.ByteString.Base64.Lazy + Data.ByteString.Base64.URL + Data.ByteString.Base64.URL.Lazy + + other-modules: Data.ByteString.Base64.Internal + build-depends: + base >=4 && <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 + ghc-options: -Wall -threaded -rtsopts + build-depends: + base + , base64-bytestring + , bytestring + , HUnit + , QuickCheck + , test-framework + , test-framework-hunit + , test-framework-quickcheck2 + + default-language: Haskell2010 + +benchmark benchmarks + type: exitcode-stdio-1.0 + hs-source-dirs: benchmarks + main-is: BM.hs + ghc-options: -Wall -threaded -rtsopts + build-depends: + base + , base64-bytestring + , bytestring + , criterion + , deepseq >=1.1 + + default-language: Haskell2010 + +source-repository head + type: git + location: git://github.com/haskell/base64-bytestring diff --git a/ghc-base64-bytestring.changes b/ghc-base64-bytestring.changes index 7b3b3ae..442cbfa 100644 --- a/ghc-base64-bytestring.changes +++ b/ghc-base64-bytestring.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 12 17:09:53 UTC 2023 - Peter Simons + +- Update base64-bytestring to version 1.2.1.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Mar 30 17:05:54 UTC 2023 - Peter Simons diff --git a/ghc-base64-bytestring.spec b/ghc-base64-bytestring.spec index 3027987..8259dd9 100644 --- a/ghc-base64-bytestring.spec +++ b/ghc-base64-bytestring.spec @@ -26,6 +26,7 @@ Summary: Fast base64 encoding and decoding 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 @@ -83,6 +84,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