summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 08:46:54 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 08:46:54 +0000
commitd8f7265f92aac5edc434cb132f2bca2bd257fd24 (patch)
tree85146b6e2c01f1eccdc35459797a0522ed6b25c9
parentf6614fb343b9f2278c3ddd4f5da9eedf89c496fc (diff)
automatic import of ghc-tastyopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-tasty.spec91
-rwxr-xr-xriscv64-unbounded-delays.patch25
-rw-r--r--sources1
4 files changed, 118 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6ce4ec1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tasty-1.4.3.tar.gz
diff --git a/ghc-tasty.spec b/ghc-tasty.spec
new file mode 100644
index 0000000..87e41a4
--- /dev/null
+++ b/ghc-tasty.spec
@@ -0,0 +1,91 @@
+%global pkg_name tasty
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 1.4.3
+Release: 1
+Summary: Modern and extensible testing framework
+License: MIT
+URL: https://hackage.haskell.org/package/%{pkg_name}
+Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+# https://github.com/UnkindPartition/tasty/pull/371
+Patch0: riscv64-unbounded-delays.patch
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-ansi-terminal-devel
+BuildRequires: ghc-ansi-terminal-prof
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-containers-devel
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-optparse-applicative-devel
+BuildRequires: ghc-optparse-applicative-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-stm-devel
+BuildRequires: ghc-stm-prof
+BuildRequires: ghc-tagged-devel
+BuildRequires: ghc-tagged-prof
+BuildRequires: ghc-transformers-devel
+BuildRequires: ghc-transformers-prof
+BuildRequires: ghc-unix-devel
+BuildRequires: ghc-unix-prof
+ExcludeArch: %{ix86}
+
+%description
+Tasty is a modern testing framework for Haskell. It lets you combine your unit
+tests, golden tests, QuickCheck/SmallCheck properties, and any other types of
+tests into a single test suite.
+
+%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} -p1
+
+%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
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 1.4.3-1
+- Initial packaging (Version 1.4.3)
diff --git a/riscv64-unbounded-delays.patch b/riscv64-unbounded-delays.patch
new file mode 100755
index 0000000..5ca7fc8
--- /dev/null
+++ b/riscv64-unbounded-delays.patch
@@ -0,0 +1,25 @@
+From 65da3d6512ee2f8c53d2bbde840456749c5038c8 Mon Sep 17 00:00:00 2001
+From: Felix Yan <felixonmars@archlinux.org>
+Date: Thu, 22 Jun 2023 08:21:17 +0300
+Subject: [PATCH] Don't depend on unbounded-delays for riscv64
+
+64-bit RISC-V should fall into the same case in
+https://github.com/UnkindPartition/tasty/pull/344 and should be added
+here. Tested locally.
+---
+ core/tasty.cabal | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: tasty-1.4.3/tasty.cabal
+===================================================================
+--- tasty-1.4.3.orig/tasty.cabal
++++ tasty-1.4.3/tasty.cabal
+@@ -68,7 +68,7 @@ library
+ ansi-terminal >= 0.9
+
+ -- No reason to depend on unbounded-delays on 64-bit architecture
+- if(!arch(x86_64) && !arch(aarch64))
++ if(!arch(x86_64) && !arch(aarch64) && !arch(riscv64))
+ build-depends:
+ unbounded-delays >= 0.1
+
diff --git a/sources b/sources
new file mode 100644
index 0000000..61384e8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9cd052a416ce0602b98e521c7c731def tasty-1.4.3.tar.gz