From e5cf807320869a203cc8b95ab4c06bcba4a6fe4fb562605aeacded01565ac36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 9 Nov 2021 08:31:59 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-mustache revision:12, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-mustache?expand=0&rev=49 --- ghc-mustache.changes | 6 ++ ghc-mustache.spec | 4 +- mustache.cabal | 138 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 mustache.cabal diff --git a/ghc-mustache.changes b/ghc-mustache.changes index 2ea248d..94917a5 100644 --- a/ghc-mustache.changes +++ b/ghc-mustache.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 12 10:51:15 UTC 2021 - psimons@suse.com + +- Update mustache to version 2.3.1 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-mustache.spec b/ghc-mustache.spec index 5dc16ff..bb05458 100644 --- a/ghc-mustache.spec +++ b/ghc-mustache.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-mustache # -# 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 @@ -25,6 +25,7 @@ Summary: A mustache template parser 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: chrpath BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel @@ -76,6 +77,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 diff --git a/mustache.cabal b/mustache.cabal new file mode 100644 index 0000000..0728aa5 --- /dev/null +++ b/mustache.cabal @@ -0,0 +1,138 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.31.2. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: 8ffde004ee64f5b057ed66f76bbc72cbb71cdc81dcebe9e822563fdb11a8b338 + +name: mustache +version: 2.3.1 +x-revision: 1 +synopsis: A mustache template parser library. +description: Allows parsing and rendering template files with mustache markup. See the + mustache . + . + Implements the mustache spec version 1.1.3. + . + /Note/: Versions including and beyond 0.4 are compatible with ghc 7.8 again. +category: Development +homepage: https://github.com/JustusAdam/mustache +bug-reports: https://github.com/JustusAdam/mustache/issues +author: Justus Adam +maintainer: dev@justus.science +copyright: (c) 2015 - 2019 Justus Adam +license: BSD3 +license-file: LICENSE +tested-with: GHC>=7.8 && <=7.10.2 +build-type: Simple +extra-source-files: + README.md + CHANGELOG.md + test/unit/examples/test-template-partials.txt.mustache + test/unit/examples/test-template.txt.mustache + test/unit/examples/partials/test-partial.txt.mustache + +source-repository head + type: git + location: git://github.com/JustusAdam/mustache.git + +library + build-depends: aeson <1.6 + + hs-source-dirs: + src + default-extensions: LambdaCase TupleSections + other-extensions: NamedFieldPuns OverloadedStrings LambdaCase TupleSections TemplateHaskell QuasiQuotes + ghc-options: -Wall + build-depends: + aeson + , base >=4.7 && <5 + , bytestring + , containers + , directory + , either + , filepath + , mtl >=2.2.1 + , parsec + , scientific + , template-haskell + , text + , th-lift + , unordered-containers + , vector + exposed-modules: + Text.Mustache + Text.Mustache.Types + Text.Mustache.Parser + Text.Mustache.Compile + Text.Mustache.Render + other-modules: + Text.Mustache.Internal + Text.Mustache.Internal.Types + Paths_mustache + default-language: Haskell2010 + +executable haskell-mustache + main-is: Main.hs + other-modules: + Paths_mustache + hs-source-dirs: + app + ghc-options: -threaded -Wall + build-depends: + aeson + , base >=4.7 && <5 + , bytestring + , cmdargs + , filepath + , mustache + , text + , yaml + default-language: Haskell2010 + +test-suite language-specifications + type: exitcode-stdio-1.0 + main-is: Language.hs + other-modules: + Paths_mustache + hs-source-dirs: + test/integration + build-depends: + aeson + , base >=4.7 && <5 + , base-unicode-symbols + , bytestring + , filepath + , hspec + , lens + , mustache + , tar + , text + , unordered-containers + , wreq + , yaml + , zlib + default-language: Haskell2010 + +test-suite unit-tests + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + Paths_mustache + hs-source-dirs: + test/unit + build-depends: + aeson + , base >=4.7 && <5 + , bytestring + , directory + , filepath + , hspec + , mustache + , process + , temporary + , text + , unordered-containers + , yaml + default-language: Haskell2010