summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 02:53:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 02:53:10 +0000
commitb9c1ba8401dc7660da7be54f93a845e1ce66026b (patch)
tree309e22eaac1855958af47a4c46dfb1823a0f6266
parentea3410a8dbe07bfa22fec0ddf49b28803ecfc80a (diff)
automatic import of ghc-digestopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xdigest.cabal51
-rw-r--r--ghc-digest.spec83
-rw-r--r--sources1
4 files changed, 136 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..91cec38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/digest-0.0.1.7.tar.gz
diff --git a/digest.cabal b/digest.cabal
new file mode 100755
index 0000000..b651753
--- /dev/null
+++ b/digest.cabal
@@ -0,0 +1,51 @@
+name: digest
+version: 0.0.1.7
+x-revision: 1
+copyright: (c) 2009 Eugene Kirpichov
+license: BSD2
+license-file: LICENSE
+author: Eugene Kirpichov <ekirpichov@gmail.com>
+maintainer: Eugene Kirpichov <ekirpichov@gmail.com>
+category: Cryptography
+synopsis: Various hashes for bytestrings; CRC32 and Adler32 for now.
+description: This package provides efficient hash implementations for
+ strict and lazy bytestrings. For now, CRC32 and Adler32 are supported;
+ they are implemented as FFI bindings to efficient code from zlib.
+stability: provisional
+build-type: Simple
+cabal-version: >= 1.10
+tested-with:
+ GHC==8.10.7
+ , GHC==9.0.2
+ , GHC==9.2.5
+ , GHC==9.4.3
+
+extra-source-files:
+ testing/trivial-reference.c
+ testing/trivial.expected
+ testing/trivial.hs
+ CHANGELOG.md
+
+flag pkg-config
+ default: True
+ manual: True
+ description: Use @pkg-config(1)@ to locate @zlib@ library.
+
+source-repository head
+ type: git
+ location: https://github.com/TeofilC/digest
+
+library
+ exposed-modules: Data.Digest.CRC32,
+ Data.Digest.Adler32
+ default-extensions: CPP, ForeignFunctionInterface
+ default-language: Haskell2010
+ build-depends:
+ base < 5
+ , bytestring >= 0.9 && < 0.13
+ includes: zlib.h
+ ghc-options: -Wall
+ if flag(pkg-config) && !os(windows) && !os(freebsd)
+ pkgconfig-depends: zlib
+ else
+ build-depends: zlib
diff --git a/ghc-digest.spec b/ghc-digest.spec
new file mode 100644
index 0000000..3c1dd47
--- /dev/null
+++ b/ghc-digest.spec
@@ -0,0 +1,83 @@
+%global pkg_name digest
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.0.1.7
+Release: 1
+Summary: Various hashes for bytestrings; CRC32 and Adler32 for now
+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-prof
+BuildRequires: ghc-bytestring-devel
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: pkgconfig
+BuildRequires: pkgconfig(zlib)
+ExcludeArch: %{ix86}
+
+%description
+This package provides efficient hash implementations for strict and lazy
+bytestrings. For now, CRC32 and Adler32 are supported; they are implemented as
+FFI bindings to efficient code from zlib.
+
+%package devel
+Summary: Haskell %{pkg_name} library development files
+Requires: %{name} = %{version}-%{release}
+Requires: ghc-compiler = %{ghc_version}
+Requires: pkgconfig
+Requires: pkgconfig(zlib)
+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
+
+%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
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 0.0.1.7-1
+- Initial packaging (Version 0.0.1.7)
diff --git a/sources b/sources
new file mode 100644
index 0000000..f2e7c9e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+333c1639ae8137b5ee41250a440fcde2 digest-0.0.1.7.tar.gz