diff --git a/.gitignore b/.gitignore index 30eb0ca..9890158 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /primitive-0.6.1.0.tar.gz /primitive-0.6.2.0.tar.gz /primitive-0.6.4.0.tar.gz +/primitive-0.7.0.1.tar.gz diff --git a/ghc-primitive.spec b/ghc-primitive.spec index 1c81138..a50435c 100644 --- a/ghc-primitive.spec +++ b/ghc-primitive.spec @@ -4,16 +4,17 @@ %global pkg_name primitive %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} -Version: 0.6.4.0 -Release: 6%{?dist} +Version: 0.7.0.1 +Release: 1%{?dist} Summary: Primitive memory-related operations License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -21,6 +22,15 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-transformers-prof +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-base-orphans-devel +BuildRequires: ghc-semigroups-devel +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-transformers-compat-devel +%endif # End cabal-rpm deps %description @@ -64,7 +74,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -80,6 +89,10 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm install +%check +%cabal_test + + %if 0%{?fedora} < 31 || 0%{?rhel} < 8 %post devel %ghc_pkg_recache @@ -112,6 +125,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Wed Jun 10 2020 Jens Petersen - 0.7.0.1-1 +- update to 0.7.0.1 + * Tue Jan 28 2020 Fedora Release Engineering - 0.6.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/primitive-0.6.4.0.cabal b/primitive-0.6.4.0.cabal deleted file mode 100644 index fbf74be..0000000 --- a/primitive-0.6.4.0.cabal +++ /dev/null @@ -1,74 +0,0 @@ -Name: primitive -Version: 0.6.4.0 -x-revision: 1 -License: BSD3 -License-File: LICENSE - -Author: Roman Leshchinskiy -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 -Cabal-Version: >= 1.10 -Build-Type: Simple -Description: This package provides various primitive memory-related operations. - -Extra-Source-Files: changelog.md - test/*.hs - test/LICENSE - test/primitive-tests.cabal - -Tested-With: - 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.2 - -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.UnliftedArray - Data.Primitive.Addr - Data.Primitive.Ptr - Data.Primitive.MutVar - Data.Primitive.MVar - - Other-Modules: - Data.Primitive.Internal.Compat - Data.Primitive.Internal.Operations - - Build-Depends: base >= 4.5 && < 4.13 - , ghc-prim >= 0.2 && < 0.6 - , transformers >= 0.2 && < 0.6 - - 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 - -source-repository head - type: git - location: https://github.com/haskell/primitive diff --git a/sources b/sources index fe8ddcb..3ea3ab3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (primitive-0.6.4.0.tar.gz) = a9d31b386c41abd4a5e601883b6f4d230c9669d1eda840a3491fc2e5961e8bce0c2bc1026426b92a36790cd372db954b3003499c540605289540e26543e12b80 +SHA512 (primitive-0.7.0.1.tar.gz) = bb9be965ff22bc3184962ce35f3b0ff3ad6a5bb42735ea0ea7e33d4a122a2833381b8f04950b3cc8a6ccd792f72f2b06a291c462c381b87044dd8e06240d093c