summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 01:59:36 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 01:59:36 +0000
commitc1692cd4578fac121c3460806f9310443f4b3c88 (patch)
tree21aae65cff8a007f07ba3ac8d07dc68e89b50fb7
parent06484756a1fc253972a025d6ee15611e70621039 (diff)
automatic import of ghc-dlistopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xdlist.cabal108
-rw-r--r--ghc-dlist.spec85
-rw-r--r--sources1
4 files changed, 195 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f8efac5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dlist-1.0.tar.gz
diff --git a/dlist.cabal b/dlist.cabal
new file mode 100755
index 0000000..bfafb72
--- /dev/null
+++ b/dlist.cabal
@@ -0,0 +1,108 @@
+cabal-version: >= 1.10
+
+name: dlist
+version: 1.0
+x-revision: 1
+
+synopsis: Difference lists
+description:
+ List-like types supporting O(1) append and snoc operations.
+category: Data
+license: BSD3
+license-file: license.md
+author: Don Stewart
+maintainer: Sean Leather <sean.leather@gmail.com>
+copyright: 2006-2009 Don Stewart, 2013-2020 Sean Leather, 2017-2020 Oleg Grenrus, contributors
+homepage: https://github.com/spl/dlist
+bug-reports: https://github.com/spl/dlist/issues
+extra-source-files: readme.md,
+ changelog.md
+ tests/ImportUnsafe.hs
+build-type: Simple
+
+tested-with:
+ GHC == 9.8.0
+ GHC == 9.6.2
+ GHC == 9.4.7
+ GHC == 9.2.8
+ GHC == 9.0.2
+ GHC == 8.10.7
+ GHC == 8.8.4
+ GHC == 8.6.5
+ GHC == 8.4.4
+ GHC == 8.2.2
+ GHC == 8.0.2
+ GHC == 7.10.3
+ GHC == 7.8.4
+ GHC == 7.6.3
+ GHC == 7.4.2
+ GHC == 7.2.2
+ GHC == 7.0.4
+
+source-repository head
+ type: git
+ location: https://github.com/spl/dlist.git
+
+flag Werror
+ description: Enable -Werror
+ default: False
+ manual: True
+
+library
+ build-depends:
+ base >= 4 && < 5,
+ deepseq >= 1.1 && < 1.6
+ exposed-modules: Data.DList
+ Data.DList.Unsafe
+ other-modules: Data.DList.Internal
+ if impl(ghc >= 8.0)
+ exposed-modules: Data.DList.DNonEmpty
+ other-modules: Data.DList.DNonEmpty.Internal
+ default-language: Haskell2010
+ ghc-options: -Wall
+ if impl(ghc >= 8.0)
+ ghc-options: -Wcompat
+ -Wincomplete-record-updates
+ -Wincomplete-uni-patterns
+ -Wnoncanonical-monad-instances
+ if impl(ghc >= 8.2)
+ ghc-options: -Wmissing-home-modules
+ if impl(ghc >= 8.4)
+ ghc-options: -Wpartial-fields
+ if impl(ghc >= 8.10)
+ ghc-options: -Wmissing-safe-haskell-mode
+ -Wtrustworthy-safe
+ if flag(Werror)
+ ghc-options: -Werror
+
+test-suite test
+ type: exitcode-stdio-1.0
+ main-is: Main.hs
+ other-modules: DListProperties
+ OverloadedStrings
+ QuickCheckUtil
+ if impl(ghc >= 8.0)
+ other-modules: DNonEmptyProperties
+ hs-source-dirs: tests
+ build-depends: dlist,
+ base,
+ -- QuickCheck-2.10 is the first version supporting
+ -- base-4.9 (ghc-8) without the Arbitrary NonEmpty
+ -- instance, which we include ourselves.
+ QuickCheck >= 2.10 && < 2.15
+ default-language: Haskell2010
+ ghc-options: -Wall
+ if impl(ghc >= 8.0)
+ ghc-options: -Wcompat
+ -Wincomplete-record-updates
+ -Wincomplete-uni-patterns
+ -Wnoncanonical-monad-instances
+ if impl(ghc >= 8.2)
+ ghc-options: -Wmissing-home-modules
+ if impl(ghc >= 8.4)
+ ghc-options: -Wpartial-fields
+ if impl(ghc >= 8.10)
+ ghc-options: -Wmissing-safe-haskell-mode
+ -Wtrustworthy-safe
+ if flag(Werror)
+ ghc-options: -Werror
diff --git a/ghc-dlist.spec b/ghc-dlist.spec
new file mode 100644
index 0000000..487e085
--- /dev/null
+++ b/ghc-dlist.spec
@@ -0,0 +1,85 @@
+%global pkg_name dlist
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 1.0
+Release: 1
+Summary: Difference lists
+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/1.cabal#/%{pkg_name}.cabal
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-deepseq-devel
+BuildRequires: ghc-deepseq-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+%endif
+
+%description
+List-like types supporting O(1) append and snoc operations.
+
+%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.md
+
+%files devel -f %{name}-devel.files
+%doc changelog.md readme.md
+
+%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files
+%license license.md
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
+%changelog
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 1.0-1
+- Initial packaging (Version 1.0)
diff --git a/sources b/sources
new file mode 100644
index 0000000..d81b227
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cc59a51209b73dea54031b058e9696a7 dlist-1.0.tar.gz