diff --git a/.gitignore b/.gitignore index 45a7221..87cb3fe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /syb-0.3.3.tar.gz /syb-0.3.6.tar.gz /syb-0.4.0.tar.gz +/syb-0.4.1.tar.gz diff --git a/ghc-syb.spec b/ghc-syb.spec index 5077a39..539bff0 100644 --- a/ghc-syb.spec +++ b/ghc-syb.spec @@ -2,24 +2,35 @@ %global pkg_name syb +%bcond_without tests + +# no useful debuginfo for Haskell packages without C sources +%global debug_package %{nil} + Name: ghc-%{pkg_name} # part of haskell-platform -Version: 0.4.0 -Release: 35%{?dist} +Version: 0.4.1 +Release: 1%{?dist} Summary: Scrap Your Boilerplate License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -BuildRequires: dos2unix +# Begin cabal-rpm deps: +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-mtl-devel +%endif +# End cabal-rpm deps %description This package contains the generics system described in the "Scrap Your Boilerplate" papers (see ). -It defines the Data class of types permitting folding and unfolding of +It defines the 'Data' class of types permitting folding and unfolding of constructor applications, instances of this class for primitive types, and a variety of traversals. @@ -49,6 +60,12 @@ dos2unix LICENSE README %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache @@ -66,6 +83,9 @@ dos2unix LICENSE README %changelog +* Wed Jun 04 2014 Jens Petersen - 0.4.1-1 +- update to 0.4.1 with cblrpm-0.8.11 + * Fri Apr 18 2014 Jens Petersen - 0.4.0-35 - bump over haskell-platform diff --git a/sources b/sources index 1b31d80..a63a77d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ec2719d444a6561b2424dcef10b4fe34 syb-0.4.0.tar.gz +28df3b70cef652fa6c04e6353c580a7a syb-0.4.1.tar.gz