From 44950ff83e8780abf9a80cf07888ffc868876a3e70e2298fdab6ebec78060020 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 6 Oct 2022 14:46:23 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-gridtables revision:5, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-gridtables?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + ghc-gridtables.changes | 26 +++++++++++++ ghc-gridtables.spec | 82 +++++++++++++++++++++++++++++++++++++++ gridtables-0.0.3.0.tar.gz | 3 ++ gridtables.cabal | 80 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 215 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-gridtables.changes create mode 100644 ghc-gridtables.spec create mode 100644 gridtables-0.0.3.0.tar.gz create mode 100644 gridtables.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-gridtables.changes b/ghc-gridtables.changes new file mode 100644 index 0000000..b34cf8b --- /dev/null +++ b/ghc-gridtables.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Wed Aug 31 11:28:11 UTC 2022 - Peter Simons + +- Update gridtables to version 0.0.3.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Aug 18 21:24:44 UTC 2022 - Peter Simons + +- Update gridtables to version 0.0.3.0. + ## gridtables-0.0.3.0 + + Released 2022-08-18. + + - Missing cells no longer cause an error, but are replaced with + empty cells. + + - The borders of the last cell in a row are allowed to be + shorter than the cell. Previously the last column was + discarded in that case. + +------------------------------------------------------------------- +Sat Jul 30 09:02:54 UTC 2022 - Peter Simons + +- Add gridtables at version 0.0.2.0. + diff --git a/ghc-gridtables.spec b/ghc-gridtables.spec new file mode 100644 index 0000000..8eb3520 --- /dev/null +++ b/ghc-gridtables.spec @@ -0,0 +1,82 @@ +# +# spec file for package ghc-gridtables +# +# Copyright (c) 2022 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 gridtables +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.0.3.0 +Release: 0 +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-containers-devel +BuildRequires: ghc-doclayout-devel +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +%endif + +%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. + +%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. + +%prep +%autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%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 LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md README.md + +%changelog diff --git a/gridtables-0.0.3.0.tar.gz b/gridtables-0.0.3.0.tar.gz new file mode 100644 index 0000000..d5272d7 --- /dev/null +++ b/gridtables-0.0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bea762be9a545e38fcf913c09a911f81db14d6f7feb0a4476fa62b4b5dea71aa +size 11689 diff --git a/gridtables.cabal b/gridtables.cabal new file mode 100644 index 0000000..9569838 --- /dev/null +++ b/gridtables.cabal @@ -0,0 +1,80 @@ +cabal-version: 2.4 +name: gridtables +version: 0.0.3.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.1 + 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