From 7f53bfff42b926f49db1565284cae8064f9ffc840a7ac334b40bd3761bc11ac4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 26 Dec 2023 22:00:58 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-gridtables revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-gridtables?expand=0&rev=9 --- ghc-gridtables.changes | 6 ++++ ghc-gridtables.spec | 2 ++ gridtables.cabal | 80 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 gridtables.cabal diff --git a/ghc-gridtables.changes b/ghc-gridtables.changes index 2e8d48a..cc46fde 100644 --- a/ghc-gridtables.changes +++ b/ghc-gridtables.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 25 15:37:59 UTC 2023 - Peter Simons + +- Update gridtables to version 0.1.0.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Mar 30 17:06:54 UTC 2023 - Peter Simons diff --git a/ghc-gridtables.spec b/ghc-gridtables.spec index 39d065b..1aee18d 100644 --- a/ghc-gridtables.spec +++ b/ghc-gridtables.spec @@ -26,6 +26,7 @@ Summary: Parser for reStructuredText-style grid tables License: MIT 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-array-devel BuildRequires: ghc-array-prof @@ -81,6 +82,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/gridtables.cabal b/gridtables.cabal new file mode 100644 index 0000000..4157d82 --- /dev/null +++ b/gridtables.cabal @@ -0,0 +1,80 @@ +cabal-version: 2.4 +name: gridtables +version: 0.1.0.0 +x-revision: 1 +synopsis: Parser for reStructuredText-style grid tables. +description: Provides a parser for plain-text representations of + tables. This package supports table headers, cells + spanning multiple columns or rows, as well as a way + to specfiy column alignments. +homepage: https://github.com/tarleb/gridtables +bug-reports: https://github.com/tarleb/gridtables/issues +license: MIT +license-file: LICENSE +author: Albert Krewinkel +maintainer: Albert Krewinkel +copyright: © 2022 RStudio, PBC +category: Text +extra-doc-files: README.md + , CHANGELOG.md +tested-with: GHC == 8.6.5 + GHC == 8.8.4 + GHC == 8.10.7 + GHC == 9.0.2 + GHC == 9.2.2 + +source-repository head + type: git + location: https://github.com/tarleb/gridtables.git + +common common-options + build-depends: base >= 4.12 && < 5 + , array + , parsec >= 3.1 && < 3.2 + , text >= 1.1.1.0 && < 1.3 || >= 2.0 && < 2.2 + default-language: Haskell2010 + default-extensions: OverloadedStrings + other-extensions: FlexibleContexts + , LambdaCase + ghc-options: -Wall + -Wcompat + -Widentities + -Wincomplete-record-updates + -Wincomplete-uni-patterns + -Wmissing-export-lists + -Wpartial-fields + -Wredundant-constraints + -fhide-source-paths + if impl(ghc >= 8.8) + ghc-options: -Wmissing-deriving-strategies + + 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 + build-depends: containers + , doclayout + exposed-modules: Text.GridTable + , Text.GridTable.ArrayTable + , Text.GridTable.Parse + , Text.GridTable.Trace + other-extensions: DeriveFunctor + , DerivingStrategies + , GeneralizedNewtypeDeriving + +test-suite test-gridtables + import: common-options + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: test-gridtables.hs + build-depends: gridtables + , tasty >= 0.11 + , tasty-hunit >= 0.9 + ghc-options: -threaded + -rtsopts + -with-rtsopts=-N