From 4ffa027b80dd2996347771624656501e21c27148d90691923f75d66da296e63e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 27 May 2024 13:00:25 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-text-ansi revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-text-ansi?expand=0&rev=8 --- ghc-text-ansi.changes | 6 +++++ ghc-text-ansi.spec | 4 ++- text-ansi.cabal | 61 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 text-ansi.cabal diff --git a/ghc-text-ansi.changes b/ghc-text-ansi.changes index b8e0c07..ea7e7f5 100644 --- a/ghc-text-ansi.changes +++ b/ghc-text-ansi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 16 02:18:16 UTC 2024 - Peter Simons + +- Update text-ansi to version 0.3.0.1 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Oct 12 16:00:38 UTC 2023 - Peter Simons diff --git a/ghc-text-ansi.spec b/ghc-text-ansi.spec index ee42c0e..909a60a 100644 --- a/ghc-text-ansi.spec +++ b/ghc-text-ansi.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-text-ansi # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -25,6 +25,7 @@ Summary: Text styling for ANSI terminals License: BSD-3-Clause 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-base-devel BuildRequires: ghc-base-prof @@ -75,6 +76,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/text-ansi.cabal b/text-ansi.cabal new file mode 100644 index 0000000..ab2de5b --- /dev/null +++ b/text-ansi.cabal @@ -0,0 +1,61 @@ +cabal-version: 2.2 + +author: Mitchell Dalvi Rosen, Travis Staton +bug-reports: https://github.com/awkward-squad/text-ansi/issues +build-type: Simple +category: Data +copyright: (c) 2018-2024 Mitchell Dalvi Rosen, Travis Staton +homepage: https://github.com/awkward-squad/text-ansi +license-file: LICENSE +license: BSD-3-Clause +maintainer: Mitchell Dalvi Rosen , Travis Staton +name: text-ansi +synopsis: Text styling for ANSI terminals. +tested-with: GHC == 9.6.5, GHC == 9.8.2, GHC == 9.10.1 +version: 0.3.0.1 +x-revision: 1 + +description: + Text styling for ANSI terminals using SGR codes, as defined by the + + standard. + . + Supports foreground\/background color, bold\/faint intensity, italic, + single\/double underline, strikethrough, frame, encircle, and overline escape + sequences. Some styles may not work on your terminal. + . + Also features terminal detection, so redirecting styled output to a file will + automatically strip the ANSI escape sequences. + +extra-source-files: + CHANGELOG.md + README.md + +source-repository head + type: git + location: git://github.com/awkward-squad/text-ansi.git + +library + build-depends: + base ^>= 4.16 || ^>= 4.17 || ^>= 4.18 || ^>= 4.19 || ^>= 4.20, + text >= 1.0 && < 2.2, + text-builder-linear ^>= 0.1.1, + default-language: + Haskell2010 + exposed-modules: + String.ANSI + Text.ANSI + Text.Builder.ANSI + Text.Lazy.Builder.ANSI + ghc-options: + -Weverything + -Wno-implicit-prelude + -Wno-missing-import-lists + -Wno-missing-local-signatures + -Wno-unsafe + if impl(ghc >= 8.10) + ghc-options: + -Wno-missing-safe-haskell-mode + -Wno-prepositive-qualified-module + hs-source-dirs: + src