From 4320dd586b60a33ecf7dffb5b26f9cb32ec919fe Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 30 Oct 2023 03:14:26 +0000 Subject: automatic import of ghc-ansi-terminal-types --- .gitignore | 1 + ansi-terminal-types.cabal | 34 ++++++++++++++++++ ghc-ansi-terminal-types.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 118 insertions(+) create mode 100755 ansi-terminal-types.cabal create mode 100644 ghc-ansi-terminal-types.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..c344388 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ansi-terminal-types-0.11.5.tar.gz diff --git a/ansi-terminal-types.cabal b/ansi-terminal-types.cabal new file mode 100755 index 0000000..5f9342f --- /dev/null +++ b/ansi-terminal-types.cabal @@ -0,0 +1,34 @@ +Name: ansi-terminal-types +Version: 0.11.5 +x-revision: 1 +Cabal-Version: >= 1.10 +Category: User Interfaces +Synopsis: Types and functions used to represent SGR aspects +Description: The \'ANSI\' standards refer to the visual style of + displaying characters as their \'graphic rendition\'. The + \'ANSI\' codes to establish the graphic rendition for + subsequent text are referred to as SELECT GRAPHIC RENDITION + (SGR). This package exposes modules that export types and + functions used to represent SGR aspects. +License: BSD3 +License-File: LICENSE +Author: Max Bolingbroke +Maintainer: Mike Pilgrem , Roman Cheplyaka +Homepage: https://github.com/UnkindPartition/ansi-terminal +Build-Type: Simple + +Extra-Source-Files: CHANGELOG.md + README.md + +Source-repository head + type: git + location: git://github.com/UnkindPartition/ansi-terminal.git + +Library + Hs-Source-Dirs: src + Exposed-Modules: System.Console.ANSI.Types + Build-Depends: base >= 4.8.0.0 && < 5 + , colour >=2.1.0 + Default-Extensions: CPP + Ghc-Options: -Wall + Default-Language: Haskell2010 diff --git a/ghc-ansi-terminal-types.spec b/ghc-ansi-terminal-types.spec new file mode 100644 index 0000000..cb8b9d0 --- /dev/null +++ b/ghc-ansi-terminal-types.spec @@ -0,0 +1,82 @@ +%global pkg_name ansi-terminal-types +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 0.11.5 +Release: 1 +Summary: Types and functions used to represent SGR aspects +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 +BuildRequires: ghc-colour-devel +BuildRequires: ghc-colour-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} + +%description +The 'ANSI' standards refer to the visual style of displaying characters as +their 'graphic rendition'. The 'ANSI' codes to establish the graphic rendition +for subsequent text are referred to as SELECT GRAPHIC RENDITION (SGR). +This package exposes modules that export types and functions used to represent +SGR aspects. + +%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}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +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}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Thu Sep 28 2023 Lin Runze 0.11.5-1 +- Initial packaging (Version 0.11.5) diff --git a/sources b/sources new file mode 100644 index 0000000..2493d7f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +72cacc27a0402ab9562558a170654da3 ansi-terminal-types-0.11.5.tar.gz -- cgit v1.2.3