diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-30 07:26:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-30 07:26:06 +0000 |
commit | 29b9fccacbaddf5d0a380959a5830420cad856a5 (patch) | |
tree | 869aea4971df435b871496996b00da6099d1e221 | |
parent | 065c6a5132348556229facde1b660ee493d05bc5 (diff) |
automatic import of ghc-cabal-doctestopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | cabal-doctest.cabal | 61 | ||||
-rw-r--r-- | ghc-cabal-doctest.spec | 82 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 145 insertions, 0 deletions
@@ -0,0 +1 @@ +/cabal-doctest-1.0.9.tar.gz diff --git a/cabal-doctest.cabal b/cabal-doctest.cabal new file mode 100755 index 0000000..da74a18 --- /dev/null +++ b/cabal-doctest.cabal @@ -0,0 +1,61 @@ +name: cabal-doctest +version: 1.0.9 +x-revision: 3 +synopsis: A Setup.hs helper for running doctests +description: + As of now (end of 2021), there isn't @cabal doctest@ + command. Yet, to properly work, @doctest@ needs plenty of configuration. + This library provides the common bits for writing a custom @Setup.hs@. + +homepage: https://github.com/haskellari/cabal-doctest +license: BSD3 +license-file: LICENSE +author: Oleg Grenrus <oleg.grenrus@iki.fi> +maintainer: Andreas Abel +copyright: (c) 2017 Oleg Grenrus +category: Distribution +build-type: Simple +cabal-version: >=1.10 +extra-source-files: + ChangeLog.md + README.md + +tested-with: + GHC == 9.6.0 + GHC == 9.4.4 + GHC == 9.2.6 + GHC == 9.0.2 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + GHC == 7.10.3 + GHC == 7.8.4 + GHC == 7.6.3 + GHC == 7.4.2 + GHC == 7.2.2 + GHC == 7.0.4 + +source-repository head + type: git + location: https://github.com/haskellari/cabal-doctest + +library + exposed-modules: Distribution.Extra.Doctest + other-modules: + other-extensions: + build-depends: + base >=4.3 && <5 + , Cabal >=1.10 && <3.12 + , directory + , filepath + + hs-source-dirs: src + default-language: Haskell2010 + ghc-options: -Wall + + if !impl(ghc >=7.2) + -- Work around a pattern-match coverage checking bug in GHC 7.0 + ghc-options: -fno-warn-overlapping-patterns diff --git a/ghc-cabal-doctest.spec b/ghc-cabal-doctest.spec new file mode 100644 index 0000000..1a18b65 --- /dev/null +++ b/ghc-cabal-doctest.spec @@ -0,0 +1,82 @@ +%global pkg_name cabal-doctest +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 1.0.9 +Release: 1 +Summary: A Setup.hs helper for running doctests +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/3.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-Cabal-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} + +%description +As of now (end of 2021), there isn't 'cabal doctest' command. Yet, to properly +work, 'doctest' needs plenty of configuration. This library provides the common +bits for writing a custom 'Setup.hs'. + +%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> 1.0.9-1 +- Initial packaging (Version 1.0.9) @@ -0,0 +1 @@ +b8dbcdc7598858afc449d8230aea5c35 cabal-doctest-1.0.9.tar.gz |