From 99c85a43240ec4389723646f350532d28f8712e06bf9ff8bc63b2515502a15ed Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 2 Mar 2017 21:31:49 +0000 Subject: [PATCH] sync with lts-8 from configuration 6c067b9069dcb50a0de5fe17132b90c1217d18b0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-pandoc-types?expand=0&rev=32 --- ghc-pandoc-types.changes | 5 +++ ghc-pandoc-types.spec | 2 ++ pandoc-types.cabal | 78 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 pandoc-types.cabal diff --git a/ghc-pandoc-types.changes b/ghc-pandoc-types.changes index 2def189..d0f0a30 100644 --- a/ghc-pandoc-types.changes +++ b/ghc-pandoc-types.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 2 10:44:37 UTC 2017 - psimons@suse.com + +- Update to version 1.17.0.5 revision 1 with cabal2obs. + ------------------------------------------------------------------- Sun Feb 12 14:17:22 UTC 2017 - psimons@suse.com diff --git a/ghc-pandoc-types.spec b/ghc-pandoc-types.spec index ea2e8ae..db21cf9 100644 --- a/ghc-pandoc-types.spec +++ b/ghc-pandoc-types.spec @@ -26,6 +26,7 @@ License: GPL-2.0 Group: Development/Languages/Other 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-QuickCheck-devel BuildRequires: ghc-aeson-devel @@ -75,6 +76,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/pandoc-types.cabal b/pandoc-types.cabal new file mode 100644 index 0000000..dde79ba --- /dev/null +++ b/pandoc-types.cabal @@ -0,0 +1,78 @@ +Name: pandoc-types +Version: 1.17.0.5 +x-revision: 1 +Synopsis: Types for representing a structured document +Description: @Text.Pandoc.Definition@ defines the 'Pandoc' data + structure, which is used by pandoc to represent + structured documents. This module used to live + in the pandoc package, but starting with pandoc 1.7, it + has been split off, so that other packages can use it + without drawing in all of pandoc's dependencies, and + pandoc itself can depend on packages (like citeproc-hs) + that use them. + . + @Text.Pandoc.Builder@ provides functions for building + up @Pandoc@ structures programmatically. + . + @Text.Pandoc.Generic@ provides generic functions for + manipulating Pandoc documents. + . + @Text.Pandoc.Walk@ provides faster, nongeneric functions + for manipulating Pandoc documents. + . + @Text.Pandoc.JSON@ provides functions for serializing + and deserializing a @Pandoc@ structure to and from JSON. + +Homepage: http://johnmacfarlane.net/pandoc +License: BSD3 +License-file: LICENSE +Author: John MacFarlane +Maintainer: jgm@berkeley.edu +Bug-Reports: https://github.com/jgm/pandoc-types/issues +Copyright: (c) 2006-2015 John MacFarlane +Category: Text +Build-type: Simple +Cabal-version: >=1.8 +Tested-With: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1 +Extra-Source-Files: changelog +Source-repository head + type: git + location: git://github.com/jgm/pandoc-types.git + +Library + Exposed-modules: Text.Pandoc.Definition + Text.Pandoc.Generic + Text.Pandoc.Walk + Text.Pandoc.Builder + Text.Pandoc.JSON + Text.Pandoc.Arbitrary + Other-modules: Paths_pandoc_types + Build-depends: base >= 4 && < 5, + containers >= 0.3, + syb >= 0.1 && < 0.8, + ghc-prim >= 0.2, + bytestring >= 0.9 && < 0.11, + aeson >= 0.6.2 && < 1.2, + QuickCheck >= 2 + if impl(ghc < 7.10) + Build-depends: deepseq-generics >= 0.1 && < 0.2 + else + Build-depends: deepseq >= 1.4.1 && < 1.5 + +test-suite test-pandoc-types + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: test-pandoc-types.hs + build-depends: base, + pandoc-types, + syb, + aeson >= 0.6.2 && < 1.2, + containers >= 0.3, + bytestring >= 0.9 && < 0.11, + test-framework >= 0.3 && < 0.9, + test-framework-hunit >= 0.2 && < 0.4, + test-framework-quickcheck2 >= 0.2.9 && < 0.4, + QuickCheck >= 2.4 && < 2.10, + HUnit >= 1.2 && < 1.6, + string-qq == 0.0.2 + ghc-options: -threaded -rtsopts -with-rtsopts=-N