summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 02:38:24 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 02:38:24 +0000
commit3874270c05472892e8590ff7ee0d4702f10f5d98 (patch)
tree73b9248cec3f9c8cb33ade3dea62a9a39e5824ec
parent3bf0b80e11b6a12f52e6bfe29d64d66db910c792 (diff)
automatic import of ghc-primitiveopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-primitive.spec101
-rwxr-xr-xprimitive.cabal111
-rw-r--r--sources1
4 files changed, 214 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7338e6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/primitive-0.7.4.0.tar.gz
diff --git a/ghc-primitive.spec b/ghc-primitive.spec
new file mode 100644
index 0000000..ebb834a
--- /dev/null
+++ b/ghc-primitive.spec
@@ -0,0 +1,101 @@
+%global pkg_name primitive
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.7.4.0
+Release: 1
+Summary: Primitive memory-related operations
+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
+BuildRequires: ghc-template-haskell-devel
+BuildRequires: ghc-template-haskell-prof
+BuildRequires: ghc-transformers-devel
+BuildRequires: ghc-transformers-prof
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-base-orphans-devel
+BuildRequires: ghc-base-orphans-prof
+BuildRequires: ghc-quickcheck-classes-base-devel
+BuildRequires: ghc-quickcheck-classes-base-prof
+BuildRequires: ghc-tagged-devel
+BuildRequires: ghc-tagged-prof
+BuildRequires: ghc-tasty-devel
+BuildRequires: ghc-tasty-prof
+BuildRequires: ghc-tasty-quickcheck-devel
+BuildRequires: ghc-tasty-quickcheck-prof
+BuildRequires: ghc-transformers-compat-devel
+BuildRequires: ghc-transformers-compat-prof
+%endif
+
+%description
+This package provides various primitive memory-related 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
+
+%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.7.4.0-1
+- Initial packaging (Version 0.7.4.0)
diff --git a/primitive.cabal b/primitive.cabal
new file mode 100755
index 0000000..0a9dd23
--- /dev/null
+++ b/primitive.cabal
@@ -0,0 +1,111 @@
+Cabal-Version: 2.0
+Name: primitive
+Version: 0.7.4.0
+x-revision: 1
+License: BSD3
+License-File: LICENSE
+
+Author: Roman Leshchinskiy <rl@cse.unsw.edu.au>
+Maintainer: libraries@haskell.org
+Copyright: (c) Roman Leshchinskiy 2009-2012
+Homepage: https://github.com/haskell/primitive
+Bug-Reports: https://github.com/haskell/primitive/issues
+Category: Data
+Synopsis: Primitive memory-related operations
+Build-Type: Simple
+Description: This package provides various primitive memory-related operations.
+
+Extra-Source-Files: changelog.md
+ test/*.hs
+ test/LICENSE
+
+Tested-With:
+ GHC == 8.0.2,
+ GHC == 8.2.2,
+ GHC == 8.4.4,
+ GHC == 8.6.5,
+ GHC == 8.8.4,
+ GHC == 8.10.7
+
+Library
+ Default-Language: Haskell2010
+ Other-Extensions:
+ BangPatterns, CPP, DeriveDataTypeable,
+ MagicHash, TypeFamilies, UnboxedTuples, UnliftedFFITypes
+
+ Exposed-Modules:
+ Control.Monad.Primitive
+ Data.Primitive
+ Data.Primitive.MachDeps
+ Data.Primitive.Types
+ Data.Primitive.Array
+ Data.Primitive.ByteArray
+ Data.Primitive.PrimArray
+ Data.Primitive.SmallArray
+ Data.Primitive.Ptr
+ Data.Primitive.MutVar
+ Data.Primitive.MVar
+
+ Other-Modules:
+ Data.Primitive.Internal.Operations
+
+ Build-Depends: base >= 4.9 && < 4.19
+ , deepseq >= 1.1 && < 1.5
+ , transformers >= 0.5 && < 0.7
+ , template-haskell >= 2.11
+
+ Ghc-Options: -O2
+
+ Include-Dirs: cbits
+ Install-Includes: primitive-memops.h
+ includes: primitive-memops.h
+ c-sources: cbits/primitive-memops.c
+ if !os(solaris)
+ cc-options: -ftree-vectorize
+ if arch(i386) || arch(x86_64)
+ cc-options: -msse2
+
+test-suite test-qc
+ Default-Language: Haskell2010
+ hs-source-dirs: test
+ test/src
+ main-is: main.hs
+ Other-Modules: PrimLaws
+ type: exitcode-stdio-1.0
+ build-depends: base
+ , base-orphans
+ , ghc-prim
+ , primitive
+ , quickcheck-classes-base >= 0.6 && <0.7
+ , QuickCheck >= 2.13 && < 2.15
+ , tasty ^>= 1.2 || ^>= 1.3 || ^>= 1.4
+ , tasty-quickcheck
+ , tagged
+ , transformers >= 0.5
+ , transformers-compat
+
+ cpp-options: -DHAVE_UNARY_LAWS
+ ghc-options: -O2
+
+benchmark bench
+ Default-Language: Haskell2010
+ hs-source-dirs: bench
+ main-is: main.hs
+ type: exitcode-stdio-1.0
+ ghc-options: -O2
+ other-modules:
+ Array.Traverse.Closure
+ Array.Traverse.Unsafe
+ ByteArray.Compare
+ PrimArray.Compare
+ PrimArray.Traverse
+ build-depends:
+ base
+ , primitive
+ , deepseq
+ , tasty-bench
+ , transformers >= 0.5
+
+source-repository head
+ type: git
+ location: https://github.com/haskell/primitive
diff --git a/sources b/sources
new file mode 100644
index 0000000..0956903
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+395db1c6b4798fe4c01daa1a28fa8fdd primitive-0.7.4.0.tar.gz