diff --git a/ghc-HUnit.spec b/ghc-HUnit.spec index 1d8c75b..5c90bb8 100644 --- a/ghc-HUnit.spec +++ b/ghc-HUnit.spec @@ -2,8 +2,7 @@ %global pkg_name HUnit -# hunit-test-optimize0 assert failing -%bcond_with tests +%bcond_without tests # no useful debuginfo for Haskell packages without C sources %global debug_package %{nil} @@ -62,7 +61,8 @@ rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,example %if %{with tests} mv HUnit.cabal HUnit.cabal.orig mv HUnit.cabal.tests HUnit.cabal -%ghc_bin_build +%cabal configure --enable-tests +%cabal build %cabal test mv HUnit.cabal HUnit.cabal.tests mv HUnit.cabal.orig HUnit.cabal @@ -87,7 +87,7 @@ mv HUnit.cabal.orig HUnit.cabal %changelog * Wed Jun 4 2014 Jens Petersen - 1.2.5.2-32 -- disable tests for now +- enable tests * Mon Feb 24 2014 Jens Petersen - 1.2.5.2-31 - split out of haskell-platform