summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 03:30:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 03:30:58 +0000
commitfdd610c35fbc928f0e00c520830d19fdb1583899 (patch)
tree5c472504d83e511d9ea17163c6c27da6203b9259
parent40f691b2e0f95a1082432acb3fcb03b09e5ae877 (diff)
automatic import of ghc-witherableopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-witherable.spec106
-rw-r--r--sources1
-rwxr-xr-xwitherable.cabal56
4 files changed, 164 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6a59bd4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/witherable-0.4.2.tar.gz
diff --git a/ghc-witherable.spec b/ghc-witherable.spec
new file mode 100644
index 0000000..d4f1ad3
--- /dev/null
+++ b/ghc-witherable.spec
@@ -0,0 +1,106 @@
+%global pkg_name witherable
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.4.2
+Release: 1
+Summary: Filterable traversable
+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/4.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-containers-devel
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-hashable-devel
+BuildRequires: ghc-hashable-prof
+BuildRequires: ghc-indexed-traversable-devel
+BuildRequires: ghc-indexed-traversable-instances-devel
+BuildRequires: ghc-indexed-traversable-instances-prof
+BuildRequires: ghc-indexed-traversable-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-transformers-devel
+BuildRequires: ghc-transformers-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-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
+%endif
+
+%description
+A stronger variant of `traverse` which can remove elements and generalised
+mapMaybe, catMaybes, filter.
+
+%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.4.2-1
+- Initial packaging (Version 0.4.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..b0292d0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c5f0d20fe135ab5fd081401080aa82f8 witherable-0.4.2.tar.gz
diff --git a/witherable.cabal b/witherable.cabal
new file mode 100755
index 0000000..7ab90ed
--- /dev/null
+++ b/witherable.cabal
@@ -0,0 +1,56 @@
+cabal-version: 2.4
+name: witherable
+version: 0.4.2
+x-revision: 4
+synopsis: filterable traversable
+description: A stronger variant of `traverse` which can remove elements and generalised mapMaybe, catMaybes, filter
+homepage: https://github.com/fumieval/witherable
+license: BSD-3-Clause
+license-file: LICENSE
+author: Fumiaki Kinoshita
+maintainer: Fumiaki Kinoshita <fumiexcel@gmail.com>
+copyright: Copyright (c) 2014 Fumiaki Kinoshita
+category: Data
+build-type: Simple
+extra-source-files: CHANGELOG.md
+tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.1 || ==9.2.1
+
+source-repository head
+ type: git
+ location: https://github.com/fumieval/witherable.git
+ subdir: witherable
+
+library
+ exposed-modules:
+ Witherable
+ Data.Witherable
+ build-depends: base >=4.9 && <5,
+ base-orphans >=0.8.4 && <0.10,
+ containers >=0.5.7.1 && <0.7,
+ hashable >=1.2.7.0 && <1.5,
+ transformers >=0.5.2.0 && <0.7,
+ unordered-containers >=0.2.12.0 && <0.3,
+ vector >=0.12.2.0 && <0.14,
+ indexed-traversable >=0.1.1 && <0.2,
+ indexed-traversable-instances >=0.1 && <0.2
+ hs-source-dirs: src
+ ghc-options: -Wall -Wcompat
+ default-language: Haskell2010
+
+test-suite witherable-tests
+ type: exitcode-stdio-1.0
+ main-is: tests.hs
+ hs-source-dirs: tests
+ ghc-options: -Wall -Wcompat
+ default-language: Haskell2010
+ build-depends: base,
+ witherable,
+ containers,
+ hashable,
+ QuickCheck >=2.14.2,
+ quickcheck-instances,
+ tasty,
+ tasty-quickcheck,
+ transformers,
+ unordered-containers,
+ vector