diff --git a/deepseq-generics-0.2.0.0.cabal b/deepseq-generics-0.2.0.0.cabal new file mode 100644 index 0000000..bad8c86 --- /dev/null +++ b/deepseq-generics-0.2.0.0.cabal @@ -0,0 +1,66 @@ +name: deepseq-generics +version: 0.2.0.0 +x-revision: 2 +synopsis: GHC.Generics-based Control.DeepSeq.rnf implementation +homepage: https://github.com/hvr/deepseq-generics +bug-reports: https://github.com/hvr/deepseq-generics/issues +license: BSD3 +license-file: LICENSE +author: Herbert Valerio Riedel +maintainer: hvr@gnu.org +copyright: 2012, Herbert Valerio Riedel +category: Control +build-type: Simple +cabal-version: >=1.10 +tested-with: GHC==8.4.*, GHC==8.2.*, GHC==8.0.*, GHC==7.10.*, GHC==7.8.*, GHC==7.6.*, GHC==7.4.* +description: + This package provides a "GHC.Generics"-based + 'Control.DeepSeq.Generics.genericRnf' function which can be used + for providing a 'rnf' implementation. See the documentation for + the 'genericRnf' function in the "Control.DeepSeq.Generics" module + to get started. + . + The original idea was pioneered in the @generic-deepseq@ package + (see + for more information). + . + This package differs from the @generic-deepseq@ package by working + in combination with the existing @deepseq@ package as opposed to + defining a conflicting drop-in replacement for @deepseq@'s + @Control.DeepSeq@ module. + . + __Note__: The ability to auto-derive via "GHC.Generics" has been + merged into @deepseq-1.4.0.0@. This package is now still useful + for writing code that's also compatible with older @deepseq@ + versions not yet providing "GHC.Generics"-support. + +extra-source-files: changelog.md + +source-repository head + type: git + location: https://github.com/hvr/deepseq-generics.git + +library + default-language: Haskell2010 + exposed-modules: Control.DeepSeq.Generics + build-depends: base >= 4.5 && < 4.12, ghc-prim >= 0.2 && < 0.6, deepseq >= 1.2.0.1 && < 1.5 + other-extensions: BangPatterns, FlexibleContexts, TypeOperators + ghc-options: -Wall + +test-suite deepseq-generics-tests + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Suite.hs + other-extensions: CPP, DeriveDataTypeable, DeriveGeneric, TupleSections + ghc-options: -Wall + + build-depends: + base, + deepseq, + deepseq-generics, + ghc-prim, + -- end of packages with inherited version constraints + test-framework >= 0.6.1 && < 0.9, + test-framework-hunit >= 0.2.2 && < 0.9, + HUnit >= 1.2.5 && < 1.7 diff --git a/ghc-deepseq-generics.spec b/ghc-deepseq-generics.spec index 438be2b..a40cf3d 100644 --- a/ghc-deepseq-generics.spec +++ b/ghc-deepseq-generics.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name deepseq-generics @@ -8,12 +8,13 @@ Name: ghc-%{pkg_name} Version: 0.2.0.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Generics-based normal form reduction for deepseq License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -64,7 +65,7 @@ files. %prep %setup -q -n %{pkgver} -cabal-tweak-dep-ver base '< 4.10' '<4.11' +cp -p %{SOURCE1} %{pkg_name}.cabal %build @@ -96,6 +97,9 @@ cabal-tweak-dep-ver base '< 4.10' '<4.11' %changelog +* Sat Feb 16 2019 Jens Petersen - 0.2.0.0-8 +- use revised .cabal file + * Thu Jan 31 2019 Fedora Release Engineering - 0.2.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild