summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 01:40:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 01:40:51 +0000
commitc4f25229954936dab85966e5aae938d0e5dd478d (patch)
treecbac51679ad87209c049e8db32cb04c379ad2522
parentede3b017db49c72bebcd60a9dcf37b2dea776bbf (diff)
automatic import of ghc-base-orphansopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-base-orphans.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3527345 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/base-orphans-0.8.8.2.tar.gz
diff --git a/ghc-base-orphans.spec b/ghc-base-orphans.spec
new file mode 100644
index 0000000..41e0f25
--- /dev/null
+++ b/ghc-base-orphans.spec
@@ -0,0 +1,91 @@
+%global pkg_name base-orphans
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.8.8.2
+Release: 1
+Summary: Backwards-compatible orphan instances for base
+License: MIT
+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-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-hspec-devel
+BuildRequires: ghc-hspec-prof
+%endif
+
+%description
+'base-orphans' defines orphan instances that mimic instances available in later
+versions of 'base' to a wider (older) range of compilers.
+'base-orphans' does not export anything except the orphan instances themselves
+and complements '<http://hackage.haskell.org/package/base-compat base-compat>'.
+
+See the README for what instances are covered:
+<https://github.com/haskell-compat/base-orphans#readme>. See also the
+<https://github.com/haskell-compat/base-orphans#what-is-not-covered what is not
+covered> section.
+
+%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
+
+%check
+%cabal_test
+
+%post devel
+%ghc_pkg_recache
+
+%postun devel
+%ghc_pkg_recache
+
+%files -f %{name}.files
+%license LICENSE
+
+%files devel -f %{name}-devel.files
+%doc CHANGES.markdown README.markdown
+
+%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> 0.8.8.2-1
+- Initial packaging (Version 0.8.8.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..f3132e8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ab2f271f562ca65d2b40d2c3d7d60db0 base-orphans-0.8.8.2.tar.gz