From da9db54e49007827b262823f71fb2275accee5f1c0a0b11bede68bbe74b88cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 8 Mar 2021 08:01:06 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-base64 revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-base64?expand=0&rev=9 --- base64.cabal | 102 +++++++++++++++++++++++++++++++++++++++++++++ ghc-base64.changes | 6 +++ ghc-base64.spec | 2 + 3 files changed, 110 insertions(+) create mode 100644 base64.cabal diff --git a/base64.cabal b/base64.cabal new file mode 100644 index 0000000..7ae9cfc --- /dev/null +++ b/base64.cabal @@ -0,0 +1,102 @@ +cabal-version: 2.0 +name: base64 +version: 0.4.2.3 +x-revision: 1 +synopsis: A modern RFC 4648-compliant Base64 library +description: + RFC 4648-compliant Base64 with an eye towards performance and modernity (additional support for RFC 7049 standards) + +homepage: https://github.com/emilypi/base64 +bug-reports: https://github.com/emilypi/base64/issues +license: BSD3 +license-file: LICENSE +author: Emily Pillmore +maintainer: emilypi@cohomolo.gy +copyright: (c) 2019-2020 Emily Pillmore +category: Data +build-type: Simple +extra-doc-files: + CHANGELOG.md + README.md + +tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.3 + +source-repository head + type: git + location: https://github.com/emilypi/base64.git + +library + exposed-modules: + Data.ByteString.Base64 + Data.ByteString.Base64.URL + Data.ByteString.Lazy.Base64 + Data.ByteString.Lazy.Base64.URL + Data.ByteString.Short.Base64 + Data.ByteString.Short.Base64.URL + Data.Text.Encoding.Base64 + Data.Text.Encoding.Base64.Error + Data.Text.Encoding.Base64.URL + Data.Text.Lazy.Encoding.Base64 + Data.Text.Lazy.Encoding.Base64.URL + Data.Text.Short.Encoding.Base64 + Data.Text.Short.Encoding.Base64.URL + + other-modules: + Data.ByteString.Base64.Internal + Data.ByteString.Base64.Internal.Head + Data.ByteString.Base64.Internal.Tables + Data.ByteString.Base64.Internal.Tail + Data.ByteString.Base64.Internal.Utils + Data.ByteString.Base64.Internal.W16.Loop + Data.ByteString.Base64.Internal.W32.Loop + Data.ByteString.Base64.Internal.W64.Loop + + build-depends: + base >=4.10 && <5 + , bytestring >=0.10 && <0.12 + , deepseq >=1.4.3.0 && <1.4.6.0 + , ghc-byteorder ^>=4.11.0.0 + , text ^>=1.2 + , text-short ^>=0.1 + + hs-source-dirs: src + default-language: Haskell2010 + ghc-options: -Wall + +test-suite tasty + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: test + other-modules: Internal + main-is: Main.hs + build-depends: + base >=4.10 && <5 + , base64 + , base64-bytestring + , bytestring + , QuickCheck + , random-bytestring + , tasty + , tasty-hunit + , tasty-quickcheck + , text + , text-short + + ghc-options: -Wall -threaded -with-rtsopts=-N + +benchmark bench + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: benchmarks + main-is: Base64Bench.hs + build-depends: + base >=4.10 && <5 + , base64 + , base64-bytestring + , bytestring + , criterion + , deepseq + , random-bytestring + , text + + ghc-options: -Wall -rtsopts diff --git a/ghc-base64.changes b/ghc-base64.changes index f1f66e8..5a018dd 100644 --- a/ghc-base64.changes +++ b/ghc-base64.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Feb 27 13:14:25 UTC 2021 - psimons@suse.com + +- Update base64 to version 0.4.2.3 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Wed Jan 27 19:35:33 UTC 2021 - psimons@suse.com diff --git a/ghc-base64.spec b/ghc-base64.spec index 52df268..0619696 100644 --- a/ghc-base64.spec +++ b/ghc-base64.spec @@ -25,6 +25,7 @@ Summary: A modern RFC 4648-compliant Base64 library 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-bytestring-devel BuildRequires: ghc-deepseq-devel @@ -58,6 +59,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