# generated by cabal-rpm-0.11.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name deepseq-generics %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} Version: 0.2.0.0 Release: 1%{?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 BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-deepseq-devel %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel %endif # End cabal-rpm deps %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. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkgver} %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 %changelog * Wed Feb 22 2017 Jens Petersen - 0.2.0.0-1 - update to 0.2.0.0 * Fri Feb 10 2017 Fedora Release Engineering - 0.1.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 0.1.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Sep 17 2015 Jens Petersen - 0.1.1.2-2 - use license macro - allow ghc-prim 0.4 * Wed Jun 17 2015 Fedora Release Engineering - 0.1.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jan 15 2015 Fedora Haskell SIG - 0.1.1.2-1 - spec file generated by cabal-rpm-0.9.2