osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-text-ansi revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-text-ansi?expand=0&rev=10
This commit is contained in:
commit
480f145021
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
46
ghc-text-ansi.changes
Normal file
46
ghc-text-ansi.changes
Normal file
@ -0,0 +1,46 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 2 12:00:28 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update text-ansi to version 0.3.0.1 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 16 02:18:16 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- 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 <psimons@suse.com>
|
||||
|
||||
- Update text-ansi to version 0.3.0.1.
|
||||
Upstream has edited the change log file since the last release in
|
||||
a non-trivial way, i.e. they did more than just add a new entry
|
||||
at the top. You can review the file at:
|
||||
http://hackage.haskell.org/package/text-ansi-0.3.0.1/src/CHANGELOG.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 11 01:14:52 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update text-ansi to version 0.3.0 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 24 15:55:44 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update text-ansi to version 0.3.0.
|
||||
## [0.3.0] - 2023-09-24
|
||||
|
||||
- Switch the underlying text builder from `text-builder` to `text-builder-linear`. This also affects the API provided by
|
||||
`Text.Builder.ANSI`; users that were relying on the `Buidler` type from `text-builder` specificially are encouraged
|
||||
to simply use older versions of this package until they are able to update their own code to use `text-builder-linear`
|
||||
instead.
|
||||
|
||||
The motivation for this change is performance and encoraging the ecosystem to move in the right direction. See the
|
||||
`text-builder-linear` project for more details. In a nutshell, it is the superior builder type ;)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 11 14:37:45 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Add text-ansi at version 0.2.1.1.
|
||||
|
104
ghc-text-ansi.spec
Normal file
104
ghc-text-ansi.spec
Normal file
@ -0,0 +1,104 @@
|
||||
#
|
||||
# spec file for package ghc-text-ansi
|
||||
#
|
||||
# Copyright (c) 2025 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 text-ansi
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.3.0.1
|
||||
Release: 0
|
||||
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/2.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-text-builder-linear-devel
|
||||
BuildRequires: ghc-text-builder-linear-prof
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-text-prof
|
||||
ExcludeArch: %{ix86}
|
||||
|
||||
%description
|
||||
Text styling for ANSI terminals using SGR codes, as defined by the
|
||||
<https://www.ecma-international.org/publications-and-standards/standards/ecma-48
|
||||
ECMA-48> 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.
|
||||
|
||||
%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}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
||||
%install
|
||||
%ghc_lib_install
|
||||
|
||||
%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
|
||||
|
||||
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||
%license LICENSE
|
||||
|
||||
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||
|
||||
%changelog
|
3
text-ansi-0.3.0.1.tar.gz
Normal file
3
text-ansi-0.3.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0078b6e1adfb3fbbb4e241e20116829c3ede02f3906eb292ab4540c9e82f3846
|
||||
size 6149
|
61
text-ansi.cabal
Normal file
61
text-ansi.cabal
Normal file
@ -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-2025 Mitchell Dalvi Rosen, Travis Staton
|
||||
homepage: https://github.com/awkward-squad/text-ansi
|
||||
license-file: LICENSE
|
||||
license: BSD-3-Clause
|
||||
maintainer: Mitchell Dalvi Rosen <mitchellwrosen@gmail.com>, Travis Staton <hello@travisstaton.com>
|
||||
name: text-ansi
|
||||
synopsis: Text styling for ANSI terminals.
|
||||
tested-with: GHC == 9.8.4, GHC == 9.10.1, GHC == 9.12.1
|
||||
version: 0.3.0.1
|
||||
x-revision: 2
|
||||
|
||||
description:
|
||||
Text styling for ANSI terminals using SGR codes, as defined by the
|
||||
<https://www.ecma-international.org/publications-and-standards/standards/ecma-48 ECMA-48>
|
||||
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 || ^>= 4.21,
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user