diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-30 02:56:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-30 02:56:10 +0000 |
commit | ca2a0ac9e7add6fe9bc4be6c8fad82426dc234b1 (patch) | |
tree | 1f804c80df79599617a560da02ac022eab7f0e66 | |
parent | 45eb330f4901fa1ecf724aac9252354e6943ea0c (diff) |
automatic import of ghc-foldable1-classes-compatopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | foldable1-classes-compat.cabal | 149 | ||||
-rw-r--r-- | ghc-foldable1-classes-compat.spec | 102 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 253 insertions, 0 deletions
@@ -0,0 +1 @@ +/foldable1-classes-compat-0.1.tar.gz diff --git a/foldable1-classes-compat.cabal b/foldable1-classes-compat.cabal new file mode 100755 index 0000000..414f2c3 --- /dev/null +++ b/foldable1-classes-compat.cabal @@ -0,0 +1,149 @@ +cabal-version: >=1.10
+name: foldable1-classes-compat
+version: 0.1
+x-revision: 3
+synopsis:
+ Compatibility package for the Foldable1 and Bifoldable1 type classes
+
+description:
+ A compatibility package for the @Foldable1@ and @Bifoldable1@ type classes,
+ which were introduced in @base-4.18.0.0@ (GHC 9.6.1). For more information,
+ see <https://github.com/haskell/core-libraries-committee/issues/9 this Core
+ Libraries Committee proposal>.
+ .
+ @Foldable1@ and @Bifoldable1@ classify non-empty data structures that can be
+ folded to a summary value.
+
+license: BSD3
+maintainer: Ryan Scott <ryan.gl.scott@gmail.com>
+author: Edward Kmett, Oleg Grenrus
+homepage: https://github.com/haskell-compat/foldable1-classes-compat
+bug-reports: https://github.com/haskell-compat/foldable1-classes-compat/issues
+category: Data, Compatibility
+license-file: LICENSE
+build-type: Simple
+extra-source-files:
+ CHANGELOG.markdown
+ README.markdown
+tested-with:
+ GHC ==7.0.4
+ || ==7.2.2
+ || ==7.4.2
+ || ==7.6.3
+ || ==7.8.4
+ || ==7.10.3
+ || ==8.0.2
+ || ==8.2.2
+ || ==8.4.4
+ || ==8.6.5
+ || ==8.8.4
+ || ==8.10.7
+ || ==9.0.2
+ || ==9.2.5
+ || ==9.4.4
+ || ==9.6.1
+
+-- , GHCJS ==8.4
+
+source-repository head
+ type: git
+ location: https://github.com/haskell-compat/foldable1-classes-compat.git
+
+flag tagged
+ description:
+ You can disable the use of the `tagged` package using `-f-tagged`.
+ .
+ Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
+
+ default: True
+ manual: True
+
+library
+ default-language: Haskell2010
+ ghc-options: -Wall
+ build-depends: base >=4.3 && <4.20
+
+ if !impl(ghc >= 9.6)
+ hs-source-dirs: src
+ build-depends:
+ containers >=0.4 && <0.7
+ , transformers >=0.3 && <0.7
+ exposed-modules:
+ Data.Foldable1
+ Data.Bifoldable1
+
+ if !impl(ghc >=8.6)
+ build-depends: base-orphans >=0.8.1 && <0.10
+
+ if !impl(ghc >=8.2)
+ build-depends: bifunctor-classes-compat >=0.1 && <0.2
+
+ if !impl(ghc >=8.0)
+ build-depends:
+ semigroups >=0.18.5 && <0.21
+ , transformers-compat >=0.6 && <0.8
+
+ if !impl(ghc >= 7.2)
+ build-depends: generic-deriving >=1.14 && <1.15
+
+ if flag(tagged)
+ build-depends: tagged >=0.4.4 && <1
+
+ if impl(ghc >= 9.0)
+ build-depends: ghc-prim >= 0.7 && <0.12
+ else
+ if !impl(ghc >=7.6)
+ build-depends: ghc-prim
+
+test-suite test
+ default-language: Haskell2010
+ type: exitcode-stdio-1.0
+ ghc-options: -Wall
+ hs-source-dirs: test
+ main-is: Tests.hs
+
+ -- because of quickcheck-instances
+ if !impl(ghc >=7.4)
+ buildable: False
+
+ build-depends:
+ base
+ , containers
+ , foldable1-classes-compat
+ , transformers
+
+ if !impl(ghc >=8.0)
+ build-depends:
+ semigroups
+ , transformers-compat
+
+ build-depends:
+ QuickCheck >=2.13.2 && <2.15
+ , quickcheck-instances >=0.3.27 && <0.4
+ , test-framework >=0.8.2.0 && <0.9
+ , test-framework-quickcheck2 >=0.3.0.5 && <0.4
+
+benchmark bench
+ default-language: Haskell2010
+ type: exitcode-stdio-1.0
+ ghc-options: -Wall
+ hs-source-dirs: bench
+ main-is: Bench.hs
+
+ if !impl(ghc >=7.6)
+ buildable: False
+
+ build-depends:
+ base
+ , containers
+ , foldable1-classes-compat
+ , transformers
+
+ if !impl(ghc >=8.0)
+ build-depends:
+ semigroups
+ , transformers-compat
+
+ build-depends:
+ criterion >=1.5.6.1 && <1.7
+ , deepseq >=1.3 && <1.6
diff --git a/ghc-foldable1-classes-compat.spec b/ghc-foldable1-classes-compat.spec new file mode 100644 index 0000000..e9f26e3 --- /dev/null +++ b/ghc-foldable1-classes-compat.spec @@ -0,0 +1,102 @@ +%global pkg_name foldable1-classes-compat +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.1 +Release: 1 +Summary: Compatibility package for the Foldable1 and Bifoldable1 type classes +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-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tagged-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-quickcheck-instances-devel +BuildRequires: ghc-quickcheck-instances-prof +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-prof +BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-test-framework-quickcheck2-prof +%endif + +%description +A compatibility package for the 'Foldable1' and 'Bifoldable1' type classes, +which were introduced in 'base-4.18.0.0' (GHC 9.6.1). For more information, see +<https://github.com/haskell/core-libraries-committee/issues/9 this Core +Libraries Committee proposal>. + +'Foldable1' and 'Bifoldable1' classify non-empty data structures that can be +folded to a summary value. + +%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 + +%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 CHANGELOG.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.1-1 +- Initial packaging (Version 0.1) @@ -0,0 +1 @@ +75def97eeffa78f368d78c45c6d62626 foldable1-classes-compat-0.1.tar.gz |