From 9c577d32a4b1af9f32bd8f135a471c674ff7ba6d Mon Sep 17 00:00:00 2001 From: Alexey Lyubimov Date: Fri, 25 Aug 2023 15:19:32 +0300 Subject: [PATCH] import ghc-hspec-core-2.7.10-3.el9 --- .ghc-hspec-core.metadata | 1 + .gitignore | 1 + SOURCES/hspec-core-2.7.10.cabal | 173 +++++++++++++++++++++++++++++ SPECS/ghc-hspec-core.spec | 186 ++++++++++++++++++++++++++++++++ 4 files changed, 361 insertions(+) create mode 100644 .ghc-hspec-core.metadata create mode 100644 .gitignore create mode 100644 SOURCES/hspec-core-2.7.10.cabal create mode 100644 SPECS/ghc-hspec-core.spec diff --git a/.ghc-hspec-core.metadata b/.ghc-hspec-core.metadata new file mode 100644 index 0000000..879d0df --- /dev/null +++ b/.ghc-hspec-core.metadata @@ -0,0 +1 @@ +30af69bc3209c8be85ef6eb464a6618f7bfe6bfc SOURCES/hspec-core-2.7.10.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b56ec78 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/hspec-core-2.7.10.tar.gz diff --git a/SOURCES/hspec-core-2.7.10.cabal b/SOURCES/hspec-core-2.7.10.cabal new file mode 100644 index 0000000..aa4c223 --- /dev/null +++ b/SOURCES/hspec-core-2.7.10.cabal @@ -0,0 +1,173 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.34.4. +-- +-- see: https://github.com/sol/hpack + +name: hspec-core +version: 2.7.10 +x-revision: 1 +license: MIT +license-file: LICENSE +copyright: (c) 2011-2021 Simon Hengel, + (c) 2011-2012 Trystan Spangler, + (c) 2011 Greg Weber +maintainer: Simon Hengel +build-type: Simple +extra-source-files: + version.yaml +category: Testing +stability: experimental +bug-reports: https://github.com/hspec/hspec/issues +homepage: http://hspec.github.io/ +synopsis: A Testing Framework for Haskell +description: This package exposes internal types and functions that can be used to extend Hspec's functionality. + +source-repository head + type: git + location: https://github.com/hspec/hspec + subdir: hspec-core + +library + -- issue #677: build failure with GHC 9.4; type of fork# changed + build-depends: base <4.17 + + hs-source-dirs: + src + vendor + ghc-options: -Wall + build-depends: + HUnit ==1.6.* + , QuickCheck >=2.13.1 + , ansi-terminal >=0.5 + , array + , base >=4.5.0.0 && <5 + , call-stack + , clock >=0.7.1 + , deepseq + , directory + , filepath + , hspec-expectations ==0.8.2.* + , quickcheck-io >=0.2.0 + , random + , setenv + , stm >=2.2 + , tf-random + , transformers >=0.2.2.0 + exposed-modules: + Test.Hspec.Core.Spec + Test.Hspec.Core.Hooks + Test.Hspec.Core.Runner + Test.Hspec.Core.Formatters + Test.Hspec.Core.QuickCheck + Test.Hspec.Core.Util + other-modules: + Test.Hspec.Core.Clock + Test.Hspec.Core.Compat + Test.Hspec.Core.Config + Test.Hspec.Core.Config.Options + Test.Hspec.Core.Config.Util + Test.Hspec.Core.Example + Test.Hspec.Core.Example.Location + Test.Hspec.Core.FailureReport + Test.Hspec.Core.Format + Test.Hspec.Core.Formatters.Diff + Test.Hspec.Core.Formatters.Free + Test.Hspec.Core.Formatters.Internal + Test.Hspec.Core.Formatters.Monad + Test.Hspec.Core.QuickCheckUtil + Test.Hspec.Core.Runner.Eval + Test.Hspec.Core.Shuffle + Test.Hspec.Core.Spec.Monad + Test.Hspec.Core.Timer + Test.Hspec.Core.Tree + Control.Concurrent.Async + Data.Algorithm.Diff + Paths_hspec_core + default-language: Haskell2010 + +test-suite spec + type: exitcode-stdio-1.0 + main-is: Spec.hs + hs-source-dirs: + src + vendor + test + ghc-options: -Wall + cpp-options: -DTEST + build-depends: + HUnit ==1.6.* + , QuickCheck >=2.14 + , ansi-terminal >=0.5 + , array + , base >=4.5.0.0 && <5 + , call-stack + , clock >=0.7.1 + , deepseq + , directory + , filepath + , hspec-expectations ==0.8.2.* + , hspec-meta ==2.7.8 + , process + , quickcheck-io >=0.2.0 + , random + , setenv + , silently >=1.2.4 + , stm >=2.2 + , temporary + , tf-random + , transformers >=0.2.2.0 + build-tool-depends: + hspec-meta:hspec-meta-discover + other-modules: + Test.Hspec.Core.Clock + Test.Hspec.Core.Compat + Test.Hspec.Core.Config + Test.Hspec.Core.Config.Options + Test.Hspec.Core.Config.Util + Test.Hspec.Core.Example + Test.Hspec.Core.Example.Location + Test.Hspec.Core.FailureReport + Test.Hspec.Core.Format + Test.Hspec.Core.Formatters + Test.Hspec.Core.Formatters.Diff + Test.Hspec.Core.Formatters.Free + Test.Hspec.Core.Formatters.Internal + Test.Hspec.Core.Formatters.Monad + Test.Hspec.Core.Hooks + Test.Hspec.Core.QuickCheck + Test.Hspec.Core.QuickCheckUtil + Test.Hspec.Core.Runner + Test.Hspec.Core.Runner.Eval + Test.Hspec.Core.Shuffle + Test.Hspec.Core.Spec + Test.Hspec.Core.Spec.Monad + Test.Hspec.Core.Timer + Test.Hspec.Core.Tree + Test.Hspec.Core.Util + Control.Concurrent.Async + Data.Algorithm.Diff + All + Helper + Mock + Test.Hspec.Core.ClockSpec + Test.Hspec.Core.CompatSpec + Test.Hspec.Core.Config.OptionsSpec + Test.Hspec.Core.Config.UtilSpec + Test.Hspec.Core.ConfigSpec + Test.Hspec.Core.Example.LocationSpec + Test.Hspec.Core.ExampleSpec + Test.Hspec.Core.FailureReportSpec + Test.Hspec.Core.Formatters.DiffSpec + Test.Hspec.Core.Formatters.InternalSpec + Test.Hspec.Core.FormattersSpec + Test.Hspec.Core.HooksSpec + Test.Hspec.Core.QuickCheckUtilSpec + Test.Hspec.Core.Runner.EvalSpec + Test.Hspec.Core.RunnerSpec + Test.Hspec.Core.ShuffleSpec + Test.Hspec.Core.SpecSpec + Test.Hspec.Core.TimerSpec + Test.Hspec.Core.UtilSpec + Paths_hspec_core + default-language: Haskell2010 diff --git a/SPECS/ghc-hspec-core.spec b/SPECS/ghc-hspec-core.spec new file mode 100644 index 0000000..45bfefd --- /dev/null +++ b/SPECS/ghc-hspec-core.spec @@ -0,0 +1,186 @@ +# generated by cabal-rpm-2.0.9 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name hspec-core +%global pkgver %{pkg_name}-%{version} + +# testsuite missing deps: hspec-meta + +Name: ghc-%{pkg_name} +Version: 2.7.10 +Release: 3%{?dist} +Summary: A Testing Framework for Haskell + +License: MIT +Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources + +# Begin cabal-rpm deps: +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-ansi-terminal-prof +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-call-stack-prof +BuildRequires: ghc-clock-prof +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-hspec-expectations-prof +BuildRequires: ghc-quickcheck-io-prof +BuildRequires: ghc-random-prof +BuildRequires: ghc-setenv-prof +BuildRequires: ghc-stm-prof +BuildRequires: ghc-tf-random-prof +BuildRequires: ghc-transformers-prof +# End cabal-rpm deps + +%description +This package exposes internal types and functions that can be used to extend +Hspec's functionality. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch +Requires: ghc-filesystem +Obsoletes: %{name}-devel-doc < %{version}-%{release} + +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Fri Aug 25 2023 Alexey Lyubimov - 2.7.10-3 +- Rebuilt for MSVSphere 9.2 + +* Thu Mar 10 2022 Jens Petersen - 2.7.10-3 +- rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 2.7.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Aug 5 2021 Jens Petersen - 2.7.10-1 +- update to 2.7.10 + +* Thu Aug 5 2021 Jens Petersen - 2.7.8-1 +- update to 2.7.8 + +* Thu Jul 22 2021 Fedora Release Engineering - 2.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 2.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 Jens Petersen - 2.7.1-2 +- refresh to cabal-rpm-2.0.6 + +* Fri Feb 14 2020 Jens Petersen - 2.7.1-1 +- update to 2.7.1 + +* Tue Jan 28 2020 Fedora Release Engineering - 2.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Jens Petersen - 2.6.1-1 +- update to 2.6.1 + +* Thu Jul 25 2019 Fedora Release Engineering - 2.5.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Feb 21 2019 Jens Petersen - 2.5.5-1 +- update to 2.5.5 + +* Sun Feb 17 2019 Jens Petersen - 2.4.8-3 +- refresh to cabal-rpm-0.13 + +* Thu Jan 31 2019 Fedora Release Engineering - 2.4.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Jul 22 2018 Jens Petersen - 2.4.8-1 +- update to 2.4.8 + +* Fri Jul 13 2018 Fedora Release Engineering - 2.4.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 2.4.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 26 2018 Jens Petersen - 2.4.4-2 +- rebuild + +* Fri Nov 10 2017 David Shea - 2.4.4-2 +- spec file generated by cabal-rpm-0.11.1 +- Split API docs into a separate package