From c249a93763ce3c2944e35ce021f4264d2e3dec3910547184dcf35f54033e76a5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Jul 2024 12:40:34 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-pandoc-lua-engine revision:9, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-pandoc-lua-engine?expand=0&rev=19 --- .gitattributes | 23 +++++ .gitignore | 1 + ghc-pandoc-lua-engine.changes | 52 +++++++++++ ghc-pandoc-lua-engine.spec | 156 +++++++++++++++++++++++++++++++ pandoc-lua-engine-0.2.1.5.tar.gz | 3 + pandoc-lua-engine-0.3.tar.gz | 3 + pandoc-lua-engine.cabal | 154 ++++++++++++++++++++++++++++++ 7 files changed, 392 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-pandoc-lua-engine.changes create mode 100644 ghc-pandoc-lua-engine.spec create mode 100644 pandoc-lua-engine-0.2.1.5.tar.gz create mode 100644 pandoc-lua-engine-0.3.tar.gz create mode 100644 pandoc-lua-engine.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-pandoc-lua-engine.changes b/ghc-pandoc-lua-engine.changes new file mode 100644 index 0000000..4c54c2d --- /dev/null +++ b/ghc-pandoc-lua-engine.changes @@ -0,0 +1,52 @@ +------------------------------------------------------------------- +Mon Jun 24 21:18:37 UTC 2024 - Peter Simons + +- Update pandoc-lua-engine to version 0.3. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Mon May 13 15:04:38 UTC 2024 - Peter Simons + +- Update pandoc-lua-engine to version 0.2.1.5 revision 1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Sun Apr 7 15:41:09 UTC 2024 - Peter Simons + +- Update pandoc-lua-engine to version 0.2.1.4. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Thu Feb 15 18:11:14 UTC 2024 - Peter Simons + +- Update pandoc-lua-engine to version 0.2.1.3. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Fri Sep 1 19:14:27 UTC 2023 - Peter Simons + +- Update pandoc-lua-engine to version 0.2.1.2 revision 1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Fri Jun 9 17:03:36 UTC 2023 - Peter Simons + +- Update pandoc-lua-engine to version 0.2.0.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Thu Apr 13 23:56:19 UTC 2023 - Peter Simons + +- Update pandoc-lua-engine to version 0.2. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Thu Mar 30 17:07:47 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Wed Jan 18 21:22:41 UTC 2023 - Peter Simons + +- Add pandoc-lua-engine at version 0.1. + diff --git a/ghc-pandoc-lua-engine.spec b/ghc-pandoc-lua-engine.spec new file mode 100644 index 0000000..d9db1bd --- /dev/null +++ b/ghc-pandoc-lua-engine.spec @@ -0,0 +1,156 @@ +# +# spec file for package ghc-pandoc-lua-engine +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name pandoc-lua-engine +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.3 +Release: 0 +Summary: Lua engine to power custom pandoc conversions +License: GPL-2.0-or-later +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-SHA-devel +BuildRequires: ghc-SHA-prof +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-aeson-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-citeproc-devel +BuildRequires: ghc-citeproc-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-data-default-devel +BuildRequires: ghc-data-default-prof +BuildRequires: ghc-doclayout-devel +BuildRequires: ghc-doclayout-prof +BuildRequires: ghc-doctemplates-devel +BuildRequires: ghc-doctemplates-prof +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-exceptions-prof +BuildRequires: ghc-hslua-devel +BuildRequires: ghc-hslua-module-doclayout-devel +BuildRequires: ghc-hslua-module-doclayout-prof +BuildRequires: ghc-hslua-module-path-devel +BuildRequires: ghc-hslua-module-path-prof +BuildRequires: ghc-hslua-module-system-devel +BuildRequires: ghc-hslua-module-system-prof +BuildRequires: ghc-hslua-module-text-devel +BuildRequires: ghc-hslua-module-text-prof +BuildRequires: ghc-hslua-module-version-devel +BuildRequires: ghc-hslua-module-version-prof +BuildRequires: ghc-hslua-module-zip-devel +BuildRequires: ghc-hslua-module-zip-prof +BuildRequires: ghc-hslua-prof +BuildRequires: ghc-hslua-repl-devel +BuildRequires: ghc-hslua-repl-prof +BuildRequires: ghc-lpeg-devel +BuildRequires: ghc-lpeg-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-pandoc-devel +BuildRequires: ghc-pandoc-lua-marshal-devel +BuildRequires: ghc-pandoc-lua-marshal-prof +BuildRequires: ghc-pandoc-prof +BuildRequires: ghc-pandoc-types-devel +BuildRequires: ghc-pandoc-types-prof +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-parsec-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-golden-devel +BuildRequires: ghc-tasty-golden-prof +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-hunit-prof +BuildRequires: ghc-tasty-lua-devel +BuildRequires: ghc-tasty-lua-prof +BuildRequires: ghc-tasty-prof +%endif + +%description +This package provides a pandoc scripting engine based on Lua. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development +files. + +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -n %{pkg_name}-%{version} + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license COPYING.md + +%files devel -f %{name}-devel.files +%doc README.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license COPYING.md + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/pandoc-lua-engine-0.2.1.5.tar.gz b/pandoc-lua-engine-0.2.1.5.tar.gz new file mode 100644 index 0000000..2e29dce --- /dev/null +++ b/pandoc-lua-engine-0.2.1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5b24af299c28ff4af42a4c94a50ae27582bbeff1d482100618ae68410095434 +size 84963 diff --git a/pandoc-lua-engine-0.3.tar.gz b/pandoc-lua-engine-0.3.tar.gz new file mode 100644 index 0000000..ef403dd --- /dev/null +++ b/pandoc-lua-engine-0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7f87444c19f4a478ae28312ee0ab421ccdc5e20fe472601f0e8dfd21e41373e +size 87166 diff --git a/pandoc-lua-engine.cabal b/pandoc-lua-engine.cabal new file mode 100644 index 0000000..a5637d7 --- /dev/null +++ b/pandoc-lua-engine.cabal @@ -0,0 +1,154 @@ +cabal-version: 2.4 +name: pandoc-lua-engine +version: 0.2.1.5 +x-revision: 1 +build-type: Simple +license: GPL-2.0-or-later +license-file: COPYING.md +copyright: © 2006-2022 John MacFarlane, 2017-2022 Albert Krewinkel +author: John MacFarlane, Albert Krewinkel +maintainer: Albert Krewinkel +bug-reports: https://github.com/jgm/pandoc/issues +homepage: https://pandoc.org +category: Text +tested-with: GHC == 8.6.5 + , GHC == 8.8.4 + , GHC == 8.10.7 + , GHC == 9.0.2 + , GHC == 9.2.5 + , GHC == 9.4.4 +synopsis: Lua engine to power custom pandoc conversions +description: This package provides a pandoc scripting engine based on + Lua. +extra-source-files: README.md + , test/bytestring.bin + , test/bytestring.lua + , test/bytestring-reader.lua + , test/extensions.lua + , test/lua/*.lua + , test/lua/module/*.lua + , test/lua/module/partial.test + , test/lua/module/sample.svg + , test/lua/module/tiny.epub + , test/sample.lua + , test/tables.custom + , test/tables.native + , test/testsuite.native + , test/writer.custom + , test/writer-template.lua + , test/writer-template.out.txt + +source-repository head + type: git + location: https://github.com/jgm/pandoc.git + subdir: pandoc-lua-engine + +common common-options + default-language: Haskell2010 + build-depends: base >= 4.12 && < 5 + ghc-options: -Wall -fno-warn-unused-do-bind + -Wincomplete-record-updates + -Wnoncanonical-monad-instances + -Wcpp-undef + -Wincomplete-uni-patterns + -Widentities + -Wpartial-fields + -Wmissing-export-lists + -Wmissing-signatures + -fhide-source-paths + + if impl(ghc >= 8.10) + ghc-options: -Wunused-packages + + if impl(ghc >= 9.0) + ghc-options: -Winvalid-haddock + +library + import: common-options + hs-source-dirs: src + exposed-modules: Text.Pandoc.Lua + other-modules: Text.Pandoc.Lua.Custom + , Text.Pandoc.Lua.Filter + , Text.Pandoc.Lua.Global + , Text.Pandoc.Lua.Init + , Text.Pandoc.Lua.Marshal.Chunks + , Text.Pandoc.Lua.Marshal.CommonState + , Text.Pandoc.Lua.Marshal.Context + , Text.Pandoc.Lua.Marshal.Format + , Text.Pandoc.Lua.Marshal.ImageSize + , Text.Pandoc.Lua.Marshal.LogMessage + , Text.Pandoc.Lua.Marshal.PandocError + , Text.Pandoc.Lua.Marshal.ReaderOptions + , Text.Pandoc.Lua.Marshal.Reference + , Text.Pandoc.Lua.Marshal.Sources + , Text.Pandoc.Lua.Marshal.Template + , Text.Pandoc.Lua.Marshal.WriterOptions + , Text.Pandoc.Lua.Module.CLI + , Text.Pandoc.Lua.Module.Format + , Text.Pandoc.Lua.Module.Image + , Text.Pandoc.Lua.Module.JSON + , Text.Pandoc.Lua.Module.Log + , Text.Pandoc.Lua.Module.MediaBag + , Text.Pandoc.Lua.Module.Pandoc + , Text.Pandoc.Lua.Module.Scaffolding + , Text.Pandoc.Lua.Module.Structure + , Text.Pandoc.Lua.Module.System + , Text.Pandoc.Lua.Module.Template + , Text.Pandoc.Lua.Module.Text + , Text.Pandoc.Lua.Module.Types + , Text.Pandoc.Lua.Module.Utils + , Text.Pandoc.Lua.Orphans + , Text.Pandoc.Lua.PandocLua + , Text.Pandoc.Lua.SourcePos + , Text.Pandoc.Lua.Writer.Classic + , Text.Pandoc.Lua.Writer.Scaffolding + + build-depends: SHA >= 1.6 && < 1.7 + , aeson + , bytestring >= 0.9 && < 0.13 + , citeproc >= 0.8 && < 0.9 + , containers >= 0.6.0.1 && < 0.8 + , data-default >= 0.4 && < 0.8 + , doclayout >= 0.4 && < 0.5 + , doctemplates >= 0.11 && < 0.12 + , exceptions >= 0.8 && < 0.11 + , hslua >= 2.3 && < 2.4 + , hslua-module-doclayout>= 1.1 && < 1.2 + , hslua-module-path >= 1.1 && < 1.2 + , hslua-module-system >= 1.1 && < 1.2 + , hslua-module-text >= 1.1 && < 1.2 + , hslua-module-version >= 1.1 && < 1.2 + , hslua-module-zip >= 1.1.3 && < 1.2 + , hslua-repl >= 0.1.1 && < 0.2 + , lpeg >= 1.1 && < 1.2 + , mtl >= 2.2 && < 2.4 + , pandoc >= 3.2 && < 3.3 + , pandoc-lua-marshal >= 0.2.7 && < 0.3 + , pandoc-types >= 1.22 && < 1.24 + , parsec >= 3.1 && < 3.2 + , text >= 1.1.1 && < 2.2 + + +test-suite test-pandoc-lua-engine + import: common-options + type: exitcode-stdio-1.0 + main-is: test-pandoc-lua-engine.hs + hs-source-dirs: test + build-depends: pandoc-lua-engine + , bytestring + , directory + , data-default + , exceptions >= 0.8 && < 0.11 + , filepath + , hslua >= 2.3 && < 2.4 + , pandoc + , pandoc-types >= 1.22 && < 1.24 + , tasty + , tasty-golden + , tasty-hunit + , tasty-lua >= 1.1 && < 1.2 + , text >= 1.1.1 && < 2.2 + other-modules: Tests.Lua + , Tests.Lua.Module + , Tests.Lua.Reader + , Tests.Lua.Writer