diff --git a/.gitignore b/.gitignore index b900d8d..9babc35 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /vector-0.12.0.1.tar.gz /vector-0.12.0.2.tar.gz /vector-0.12.0.3.tar.gz +/vector-0.12.1.2.tar.gz diff --git a/ghc-vector.spec b/ghc-vector.spec index 73f900f..2d05f57 100644 --- a/ghc-vector.spec +++ b/ghc-vector.spec @@ -4,16 +4,17 @@ %global pkg_name vector %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} -Version: 0.12.0.3 -Release: 2%{?dist} +Version: 0.12.1.2 +Release: 1%{?dist} Summary: Efficient Arrays 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: @@ -22,6 +23,18 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-deepseq-prof BuildRequires: ghc-primitive-prof +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-base-orphans-devel +BuildRequires: ghc-random-devel +BuildRequires: ghc-semigroups-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-transformers-devel +%endif # End cabal-rpm deps %description @@ -66,7 +79,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 @@ -82,6 +94,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 @@ -99,7 +115,7 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %files devel -f %{name}-devel.files -%doc README.md changelog +%doc README.md changelog.md %if %{with haddock} @@ -114,6 +130,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Fri Feb 14 2020 Jens Petersen - 0.12.1.2-1 +- update to 0.12.1.2 + * Tue Jan 28 2020 Fedora Release Engineering - 0.12.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index f5f3ba4..ba98078 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vector-0.12.0.3.tar.gz) = 176646ae612866064303cd200e9d940fec1645bb88176a89adb00df3b9a6df96200e3c9cf85a57af3a1481d6633b353da8e03d7a6c467c40e926275fe8d36853 +SHA512 (vector-0.12.1.2.tar.gz) = 36d0237cf7c5a6b78f88b33ff09ea8b19baeaf85609efdeba9ab802ca588956457d4607304b73e8d58e9e802a9101c23da62caee71508f069047a6d531e50170 diff --git a/vector-0.12.0.3.cabal b/vector-0.12.0.3.cabal deleted file mode 100644 index 630572f..0000000 --- a/vector-0.12.0.3.cabal +++ /dev/null @@ -1,252 +0,0 @@ -Name: vector -Version: 0.12.0.3 -x-revision: 2 --- don't forget to update the changelog file! -License: BSD3 -License-File: LICENSE -Author: Roman Leshchinskiy -Maintainer: Haskell Libraries Team -Copyright: (c) Roman Leshchinskiy 2008-2012 -Homepage: https://github.com/haskell/vector -Bug-Reports: https://github.com/haskell/vector/issues -Category: Data, Data Structures -Synopsis: Efficient Arrays -Description: - . - An efficient implementation of Int-indexed arrays (both mutable - and immutable), with a powerful loop optimisation framework . - . - It is structured as follows: - . - ["Data.Vector"] Boxed vectors of arbitrary types. - . - ["Data.Vector.Unboxed"] Unboxed vectors with an adaptive - representation based on data type families. - . - ["Data.Vector.Storable"] Unboxed vectors of 'Storable' types. - . - ["Data.Vector.Primitive"] Unboxed vectors of primitive types as - defined by the @primitive@ package. "Data.Vector.Unboxed" is more - flexible at no performance cost. - . - ["Data.Vector.Generic"] Generic interface to the vector types. - . - There is also a (draft) tutorial on common uses of vector. - . - * - -Tested-With: - GHC == 7.4.2, - GHC == 7.6.3, - GHC == 7.8.4, - GHC == 7.10.3, - GHC == 8.0.1 - -Cabal-Version: >=1.10 -Build-Type: Simple - -Extra-Source-Files: - changelog - README.md - tests/LICENSE - tests/Setup.hs - tests/Main.hs - benchmarks/vector-benchmarks.cabal - benchmarks/LICENSE - benchmarks/Setup.hs - benchmarks/Main.hs - benchmarks/Algo/AwShCC.hs - benchmarks/Algo/HybCC.hs - benchmarks/Algo/Leaffix.hs - benchmarks/Algo/ListRank.hs - benchmarks/Algo/Quickhull.hs - benchmarks/Algo/Rootfix.hs - benchmarks/Algo/Spectral.hs - benchmarks/Algo/Tridiag.hs - benchmarks/TestData/Graph.hs - benchmarks/TestData/ParenTree.hs - benchmarks/TestData/Random.hs - changelog - internal/GenUnboxTuple.hs - internal/unbox-tuple-instances - -Flag BoundsChecks - Description: Enable bounds checking - Default: True - Manual: True - -Flag UnsafeChecks - Description: Enable bounds checking in unsafe operations at the cost of a - significant performance penalty - Default: False - Manual: True - -Flag InternalChecks - Description: Enable internal consistency checks at the cost of a - significant performance penalty - Default: False - Manual: True - -Flag Wall - Description: Enable all -Wall warnings - Default: False - Manual: True - -Library - Default-Language: Haskell2010 - Other-Extensions: - BangPatterns - CPP - DeriveDataTypeable - ExistentialQuantification - FlexibleContexts - FlexibleInstances - GADTs - KindSignatures - MagicHash - MultiParamTypeClasses - Rank2Types - ScopedTypeVariables - StandaloneDeriving - TypeFamilies - - Exposed-Modules: - Data.Vector.Internal.Check - - Data.Vector.Fusion.Util - Data.Vector.Fusion.Stream.Monadic - Data.Vector.Fusion.Bundle.Size - Data.Vector.Fusion.Bundle.Monadic - Data.Vector.Fusion.Bundle - - Data.Vector.Generic.Mutable.Base - Data.Vector.Generic.Mutable - Data.Vector.Generic.Base - Data.Vector.Generic.New - Data.Vector.Generic - - Data.Vector.Primitive.Mutable - Data.Vector.Primitive - - Data.Vector.Storable.Internal - Data.Vector.Storable.Mutable - Data.Vector.Storable - - Data.Vector.Unboxed.Base - Data.Vector.Unboxed.Mutable - Data.Vector.Unboxed - - Data.Vector.Mutable - Data.Vector - - Include-Dirs: - include, internal - - Install-Includes: - vector.h - - Build-Depends: base >= 4.5 && < 4.14 - , primitive >= 0.5.0.1 && < 0.8 - , ghc-prim >= 0.2 && < 0.6 - , deepseq >= 1.1 && < 1.5 - if !impl(ghc > 8.0) - Build-Depends: fail == 4.9.* - , semigroups >= 0.18 && < 0.20 - - Ghc-Options: -O2 -Wall - - if !flag(Wall) - Ghc-Options: -fno-warn-orphans - - if impl(ghc >= 8.0) && impl(ghc < 8.1) - Ghc-Options: -Wno-redundant-constraints - - if flag(BoundsChecks) - cpp-options: -DVECTOR_BOUNDS_CHECKS - - if flag(UnsafeChecks) - cpp-options: -DVECTOR_UNSAFE_CHECKS - - if flag(InternalChecks) - cpp-options: -DVECTOR_INTERNAL_CHECKS - -source-repository head - type: git - location: https://github.com/haskell/vector.git - - - -test-suite vector-tests-O0 - Default-Language: Haskell2010 - type: exitcode-stdio-1.0 - Main-Is: Main.hs - - other-modules: Boilerplater - Tests.Bundle - Tests.Move - Tests.Vector - Tests.Vector.UnitTests - Utilities - - hs-source-dirs: tests - Build-Depends: base >= 4.5 && < 5, template-haskell, base-orphans >= 0.6, vector, - random, primitive, - QuickCheck >= 2.9 && < 2.10 , HUnit, test-framework, - test-framework-hunit, test-framework-quickcheck2, - transformers >= 0.2.0.0 - - default-extensions: CPP, - ScopedTypeVariables, - PatternGuards, - MultiParamTypeClasses, - FlexibleContexts, - Rank2Types, - TypeSynonymInstances, - TypeFamilies, - TemplateHaskell - - Ghc-Options: -O0 - Ghc-Options: -Wall - - if !flag(Wall) - Ghc-Options: -fno-warn-orphans -fno-warn-missing-signatures - if impl(ghc >= 8.0) && impl( ghc < 8.1) - Ghc-Options: -Wno-redundant-constraints - - -test-suite vector-tests-O2 - Default-Language: Haskell2010 - type: exitcode-stdio-1.0 - Main-Is: Main.hs - - other-modules: Boilerplater - Tests.Bundle - Tests.Move - Tests.Vector - Tests.Vector.UnitTests - Utilities - - hs-source-dirs: tests - Build-Depends: base >= 4.5 && < 5, template-haskell, base-orphans >= 0.6, vector, - random, primitive, - QuickCheck >= 2.9 && < 2.10 , HUnit, test-framework, - test-framework-hunit, test-framework-quickcheck2, - transformers >= 0.2.0.0 - - default-extensions: CPP, - ScopedTypeVariables, - PatternGuards, - MultiParamTypeClasses, - FlexibleContexts, - Rank2Types, - TypeSynonymInstances, - TypeFamilies, - TemplateHaskell - - Ghc-Options: -O2 -Wall - - if !flag(Wall) - Ghc-Options: -fno-warn-orphans -fno-warn-missing-signatures - if impl(ghc >= 8.0) && impl(ghc < 8.1) - Ghc-Options: -Wno-redundant-constraints -