summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-26 22:59:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-26 22:59:43 +0000
commit8397ed02eb7978a32ca0277159c80c1848160dcc (patch)
treedc98124ed8dcbddf2a7741af7d98f59c337d998e
parent2a76b4bf6f032cbf6112b8be01323218e45c9227 (diff)
automatic import of ghc-distributiveopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xdistributive.cabal108
-rw-r--r--ghc-distributive.spec91
-rw-r--r--sources1
4 files changed, 201 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..42a70ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/distributive-0.6.2.1.tar.gz
diff --git a/distributive.cabal b/distributive.cabal
new file mode 100755
index 0000000..3255013
--- /dev/null
+++ b/distributive.cabal
@@ -0,0 +1,108 @@
+name: distributive
+category: Data Structures
+version: 0.6.2.1
+x-revision: 1
+license: BSD3
+cabal-version: >= 1.10
+license-file: LICENSE
+author: Edward A. Kmett
+maintainer: Edward A. Kmett <ekmett@gmail.com>
+stability: provisional
+homepage: http://github.com/ekmett/distributive/
+bug-reports: http://github.com/ekmett/distributive/issues
+copyright: Copyright (C) 2011-2016 Edward A. Kmett
+synopsis: Distributive functors -- Dual to Traversable
+description: Distributive functors -- Dual to @Traversable@
+build-type: Simple
+tested-with: GHC == 7.0.4
+ , GHC == 7.2.2
+ , GHC == 7.4.2
+ , GHC == 7.6.3
+ , GHC == 7.8.4
+ , GHC == 7.10.3
+ , GHC == 8.0.2
+ , GHC == 8.2.2
+ , GHC == 8.4.4
+ , GHC == 8.6.5
+ , GHC == 8.8.4
+ , GHC == 8.10.3
+extra-source-files:
+ .hlint.yaml
+ .vim.custom
+ config
+ CHANGELOG.markdown
+ README.markdown
+
+source-repository head
+ type: git
+ location: git://github.com/ekmett/distributive.git
+
+flag semigroups
+ manual: True
+ default: True
+ description:
+ You can disable the use of the `semigroups` package using `-f-semigroups`.
+ .
+ Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
+
+flag tagged
+ manual: True
+ default: True
+ 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.
+
+library
+ build-depends:
+ base >= 4 && < 5,
+ base-orphans >= 0.5.2 && < 1,
+ transformers >= 0.3 && < 0.7
+
+ hs-source-dirs: src
+ exposed-modules:
+ Data.Distributive
+
+ if impl(ghc>=7.2)
+ exposed-modules: Data.Distributive.Generic
+
+ if flag(tagged)
+ build-depends: tagged >= 0.7 && < 1
+
+ if impl(ghc>=7.2 && < 7.6)
+ build-depends: ghc-prim
+
+ if impl(ghc < 8.0)
+ if flag(semigroups)
+ build-depends: semigroups >= 0.13 && < 1
+
+ if impl(ghc < 7.8)
+ hs-source-dirs: src-compat
+ other-modules: Data.Coerce
+
+ ghc-options: -Wall
+
+ if impl(ghc >= 9.0)
+ -- these flags may abort compilation with GHC-8.10
+ -- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295
+ ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode
+
+ default-language: Haskell2010
+
+test-suite spec
+ type: exitcode-stdio-1.0
+ hs-source-dirs: tests
+ build-tool-depends:
+ hspec-discover:hspec-discover
+
+ build-depends:
+ base >= 4 && < 5,
+ distributive,
+ generic-deriving >= 1.11 && < 2,
+ hspec >= 2 && < 3
+
+ main-is: Spec.hs
+ other-modules: GenericsSpec
+
+ ghc-options: -Wall -threaded -rtsopts
+ default-language: Haskell2010
diff --git a/ghc-distributive.spec b/ghc-distributive.spec
new file mode 100644
index 0000000..19a28af
--- /dev/null
+++ b/ghc-distributive.spec
@@ -0,0 +1,91 @@
+%global pkg_name distributive
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.6.2.1
+Release: 1
+Summary: Distributive functors -- Dual to Traversable
+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-base-devel
+BuildRequires: ghc-base-orphans-devel
+BuildRequires: ghc-base-orphans-prof
+BuildRequires: ghc-base-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-generic-deriving-devel
+BuildRequires: ghc-generic-deriving-prof
+BuildRequires: ghc-hspec-devel
+BuildRequires: ghc-hspec-prof
+%endif
+
+%description
+Distributive functors -- Dual to 'Traversable'.
+
+%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
+* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 0.6.2.1-1
+- Initial packaging (Version 0.6.2.1)
diff --git a/sources b/sources
new file mode 100644
index 0000000..61ab0e1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f4a48b3d918dec64cdabc3e6f1678ad0 distributive-0.6.2.1.tar.gz