summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-26 22:49:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-26 22:49:57 +0000
commitd6d5bbfb109184b5b1e92e6f5d4821b72d8db06f (patch)
treeb036191625a2904b8fa47e68f9e3d7b68c118870
parent352512049ecf1cf9bd39d0927b25f9f3a458a25c (diff)
automatic import of ghc-ansi-terminalopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-ansi-terminal.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e6db50d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ansi-terminal-0.11.5.tar.gz
diff --git a/ghc-ansi-terminal.spec b/ghc-ansi-terminal.spec
new file mode 100644
index 0000000..db832b0
--- /dev/null
+++ b/ghc-ansi-terminal.spec
@@ -0,0 +1,79 @@
+%global pkg_name ansi-terminal
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.11.5
+Release: 1
+Summary: Simple ANSI terminal support, with Windows compatibility
+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
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-ansi-terminal-types-devel
+BuildRequires: ghc-ansi-terminal-types-prof
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-colour-devel
+BuildRequires: ghc-colour-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+
+%description
+ANSI terminal support for Haskell: allows cursor movement, screen clearing,
+color output, showing or hiding the cursor, and changing the title.
+Works on UNIX and Windows.
+
+%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}
+
+%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..65ee03e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+46dd2eaba89f60ed5d02345021f692ae ansi-terminal-0.11.5.tar.gz