summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 03:14:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 03:14:26 +0000
commit4320dd586b60a33ecf7dffb5b26f9cb32ec919fe (patch)
tree4b75bbb6ebb595a51d4cfc2b76f9c568d06d1816
parenta1e6314ad912bf58cb5be347c06c14b626f032d7 (diff)
automatic import of ghc-ansi-terminal-typesopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xansi-terminal-types.cabal34
-rw-r--r--ghc-ansi-terminal-types.spec82
-rw-r--r--sources1
4 files changed, 118 insertions, 0 deletions
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 <public@pilgrem.com>, Roman Cheplyaka <roma@ro-che.info>
+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 <lrzlin@163.com> 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