commit 715f501db6e2aadcf737eeaec4498e7d46e4dbd141945eeea1c02031619d504e Author: Peter Simons Date: Tue Jul 30 21:00:54 2024 +0000 osc copypac from project:devel:languages:haskell:ghc-9.8.x package:pandoc-cli revision:11, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/pandoc-cli?expand=0&rev=23 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/pandoc-cli-3.2.1.tar.gz b/pandoc-cli-3.2.1.tar.gz new file mode 100644 index 0000000..37b28d2 --- /dev/null +++ b/pandoc-cli-3.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c43f47096674985711c10c4b798f1930e0687a4f15491574f6f753916d484de +size 94755 diff --git a/pandoc-cli-3.2.tar.gz b/pandoc-cli-3.2.tar.gz new file mode 100644 index 0000000..67ee314 --- /dev/null +++ b/pandoc-cli-3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4571d9a857a88e7b26fd071db531397f417cf838724fe3120c69db54cd5dd10e +size 94489 diff --git a/pandoc-cli-3.3.tar.gz b/pandoc-cli-3.3.tar.gz new file mode 100644 index 0000000..a599d90 --- /dev/null +++ b/pandoc-cli-3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a665b885ffb9259a29423d9021c7ce59878eca000515c0b58ea19795cd554d9 +size 94839 diff --git a/pandoc-cli.cabal b/pandoc-cli.cabal new file mode 100644 index 0000000..8b1b055 --- /dev/null +++ b/pandoc-cli.cabal @@ -0,0 +1,97 @@ +cabal-version: 2.4 +name: pandoc-cli +version: 3.2 +x-revision: 1 +build-type: Simple +license: GPL-2.0-or-later +license-file: COPYING.md +copyright: (c) 2006-2022 John MacFarlane +author: John MacFarlane +maintainer: John MacFarlane +bug-reports: https://github.com/jgm/pandoc/issues +stability: alpha +homepage: https://pandoc.org +category: Text +synopsis: Conversion between documentation formats +description: Pandoc-cli provides a command-line executable that uses the + pandoc library to convert between markup formats. +-- data-files: +extra-source-files: + man/pandoc.1 + man/pandoc-lua.1 + man/pandoc-server.1 +source-repository head + type: git + location: git://github.com/jgm/pandoc.git + +flag lua + description: Support custom modifications and conversions with the + pandoc Lua scripting engine. + default: True + +flag server + Description: Include support for running pandoc as an HTTP server. + Default: True + +flag nightly + Description: Add '-nightly-COMPILEDATE' to the output of '--version'. + Default: False + +common common-options + default-language: Haskell2010 + other-extensions: OverloadedStrings + 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-signatures + -fhide-source-paths + + if impl(ghc >= 8.10) + ghc-options: -Wunused-packages + + if impl(ghc >= 9.0) + ghc-options: -Winvalid-haddock + + if os(windows) + cpp-options: -D_WINDOWS + +common common-executable + import: common-options + ghc-options: -rtsopts -with-rtsopts=-A8m -threaded + +executable pandoc + import: common-executable + hs-source-dirs: src + main-is: pandoc.hs + buildable: True + -- Note: we always link to an exact version of pandoc, with the + -- same version as this package: + build-depends: pandoc == 3.2, + text + other-modules: PandocCLI.Lua + , PandocCLI.Server + if flag(nightly) + cpp-options: -DNIGHTLY + build-depends: template-haskell, + time + if flag(server) + build-depends: pandoc-server >= 0.1.0.6 && < 0.2, + wai-extra >= 3.0.24, + warp, + safe + hs-source-dirs: server + else + hs-source-dirs: no-server + + if flag(lua) + build-depends: hslua-cli >= 1.4.1 && < 1.5, + pandoc-lua-engine >= 0.2.1 && < 0.3, + temporary >= 1.1 && < 1.4 + hs-source-dirs: lua + else + hs-source-dirs: no-lua diff --git a/pandoc-cli.changes b/pandoc-cli.changes new file mode 100644 index 0000000..ae7a26b --- /dev/null +++ b/pandoc-cli.changes @@ -0,0 +1,82 @@ +------------------------------------------------------------------- +Mon Jul 29 00:07:15 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.3. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Mon Jun 24 21:19:11 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.2.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Wed May 15 15:27:11 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.2 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sat May 11 20:57:52 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.2. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Sun Apr 7 15:38:48 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.1.13. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Mon Mar 18 05:21:26 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.1.12.3. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Fri Mar 1 05:49:44 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.1.12.2. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Sun Feb 18 01:35:33 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.1.12.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Sat Jan 6 02:22:05 UTC 2024 - Peter Simons + +- Update pandoc-cli to version 3.1.11.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Fri Jul 21 15:26:55 UTC 2023 - Peter Simons + +- Update pandoc-cli to version 0.1.1.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Thu Apr 13 09:36:11 UTC 2023 - Peter Simons + +- Enable LUA support. [bsc#1210268] +- Update the underlying library to ghc-pandoc-3.1.2. + +------------------------------------------------------------------- +Thu Mar 30 17:09:20 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Mon Mar 27 23:56:52 UTC 2023 - Peter Simons + +- Update pandoc-cli to version 0.1.1. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Wed Jan 18 21:22:59 UTC 2023 - Peter Simons + +- Add pandoc-cli at version 0.1. + diff --git a/pandoc-cli.spec b/pandoc-cli.spec new file mode 100644 index 0000000..56b4517 --- /dev/null +++ b/pandoc-cli.spec @@ -0,0 +1,71 @@ +# +# spec file for package pandoc-cli +# +# 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/ +# + + +Name: pandoc-cli +Version: 3.3 +Release: 0 +Summary: Conversion between documentation formats +License: GPL-2.0-or-later +URL: https://hackage.haskell.org/package/%{name} +Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-hslua-cli-devel +BuildRequires: ghc-hslua-cli-prof +BuildRequires: ghc-pandoc-devel +BuildRequires: ghc-pandoc-lua-engine-devel +BuildRequires: ghc-pandoc-lua-engine-prof +BuildRequires: ghc-pandoc-prof +BuildRequires: ghc-pandoc-server-devel +BuildRequires: ghc-pandoc-server-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-safe-devel +BuildRequires: ghc-safe-prof +BuildRequires: ghc-temporary-devel +BuildRequires: ghc-temporary-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-wai-extra-devel +BuildRequires: ghc-wai-extra-prof +BuildRequires: ghc-warp-devel +BuildRequires: ghc-warp-prof +Requires: ghc-pandoc = %{version} +Provides: pandoc = %{version} +Obsoletes: pandoc < 3 +ExcludeArch: %{ix86} + +%description +Pandoc-cli provides a command-line executable that uses the pandoc library to +convert between markup formats. + +%prep +%autosetup + +%build +%define cabal_configure_options -f+lua -f+server +%ghc_bin_build + +%install +%ghc_bin_install + +%files +%license COPYING.md +%{_bindir}/pandoc + +%changelog