diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-30 03:19:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-30 03:19:26 +0000 |
commit | 6067db55b1314515644ea3462f735a0aaf8ffbb4 (patch) | |
tree | 1a0ef42d0f50db5baa8ed914d66c79e489e4ed7f | |
parent | 964a9ac8aedb0e8763364967df08478d40917f27 (diff) |
automatic import of ghc-indexed-traversable-instancesopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ghc-indexed-traversable-instances.spec | 111 | ||||
-rwxr-xr-x | indexed-traversable-instances.cabal | 90 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 203 insertions, 0 deletions
@@ -0,0 +1 @@ +/indexed-traversable-instances-0.1.1.2.tar.gz diff --git a/ghc-indexed-traversable-instances.spec b/ghc-indexed-traversable-instances.spec new file mode 100644 index 0000000..87c726c --- /dev/null +++ b/ghc-indexed-traversable-instances.spec @@ -0,0 +1,111 @@ +%global pkg_name indexed-traversable-instances +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.1.1.2 +Release: 1 +Summary: More instances of FunctorWithIndex, FoldableWithIndex, TraversableWithIndex +License: BSD-2-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/1.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-OneTuple-devel +BuildRequires: ghc-OneTuple-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-indexed-traversable-devel +BuildRequires: ghc-indexed-traversable-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tagged-prof +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-unordered-containers-prof +BuildRequires: ghc-vector-devel +BuildRequires: ghc-vector-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-quickcheck-instances-devel +BuildRequires: ghc-quickcheck-instances-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-prof +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-quickcheck-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +%endif + +%description +This package provides extra instances for type-classes in the +[indexed-traversable](https://hackage.haskell.org/package/indexed-traversable) +package. + +The intention is to keep this package minimal; it provides instances that +formely existed in 'lens' or 'optics-extra'. We recommend putting other +instances directly into their defining packages. The 'indexed-traversable' +package is light, having only GHC boot libraries as its dependencies. + +%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.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> 0.1.1.2-1 +- Initial packaging (Version 0.1.1.2) diff --git a/indexed-traversable-instances.cabal b/indexed-traversable-instances.cabal new file mode 100755 index 0000000..ab86cd8 --- /dev/null +++ b/indexed-traversable-instances.cabal @@ -0,0 +1,90 @@ +cabal-version: 1.12 +name: indexed-traversable-instances +version: 0.1.1.2 +x-revision: 1 +build-type: Simple +license: BSD2 +license-file: LICENSE +category: Data +maintainer: Oleg Grenrus <oleg.grenrus@iki.fi> +author: Edward Kmett +synopsis: + More instances of FunctorWithIndex, FoldableWithIndex, TraversableWithIndex + +description: + This package provides extra instances for type-classes in the [indexed-traversable](https://hackage.haskell.org/package/indexed-traversable) package. + . + The intention is to keep this package minimal; + it provides instances that formely existed in @lens@ or @optics-extra@. + We recommend putting other instances directly into their defining packages. + The @indexed-traversable@ package is light, having only GHC boot libraries + as its dependencies. + +extra-source-files: Changelog.md +tested-with: + GHC ==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.7 + || ==9.4.4 + || ==9.6.1 + +source-repository head + type: git + location: https://github.com/haskellari/indexed-traversable + subdir: indexed-traversable-instances + +library + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: src + build-depends: + base >=4.5 && <4.19 + , indexed-traversable >=0.1 && <0.2 + , OneTuple >=0.3 && <0.5 + , tagged >=0.8.6 && <0.9 + , unordered-containers >=0.2.8.0 && <0.3 + , vector >=0.12.1.2 && <0.14 + + exposed-modules: Data.Functor.WithIndex.Instances + +test-suite safe + type: exitcode-stdio-1.0 + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: tests + main-is: safe.hs + build-depends: + base + , indexed-traversable + , indexed-traversable-instances + +test-suite indexed-tests + type: exitcode-stdio-1.0 + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: tests + main-is: main.hs + build-depends: + base + , containers + , indexed-traversable + , indexed-traversable-instances + , OneTuple + , transformers + , unordered-containers + , vector + + build-depends: + QuickCheck >=2.14.2 && <2.15 + , quickcheck-instances >=0.3.29 && <0.4 + , tasty >=1.2.3 && <1.5 + , tasty-quickcheck >=0.10.1.1 && <0.11 @@ -0,0 +1 @@ +aec8bfc56716dab44c3473d8c17f960f indexed-traversable-instances-0.1.1.2.tar.gz |