enable testsuites
This commit is contained in:
parent
823d05db51
commit
e1e98f251c
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
%global pkg_name HUnit
|
%global pkg_name HUnit
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
# part of haskell-platform
|
# part of haskell-platform
|
||||||
Version: 1.2.5.2
|
Version: 1.2.5.2
|
||||||
Release: 31%{?dist}
|
Release: 32%{?dist}
|
||||||
Summary: Unit testing framework for Haskell
|
Summary: Unit testing framework for Haskell
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -42,10 +44,6 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
|
||||||
|
|
||||||
%check
|
|
||||||
%cabal test
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
|
||||||
@ -53,6 +51,18 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,examples/Example.hs,prologue.txt}
|
rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,examples/Example.hs,prologue.txt}
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with tests}
|
||||||
|
mv HUnit.cabal HUnit.cabal.orig
|
||||||
|
mv HUnit.cabal.tests HUnit.cabal
|
||||||
|
cabal_configure_extra_options=--enable-tests
|
||||||
|
%ghc_bin_build
|
||||||
|
%cabal test
|
||||||
|
mv HUnit.cabal HUnit.cabal.tests
|
||||||
|
mv HUnit.cabal.orig HUnit.cabal
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
|
|
||||||
@ -70,6 +80,9 @@ rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{README,doc/Guide.html,example
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 16 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-32
|
||||||
|
- enable tests
|
||||||
|
|
||||||
* Mon Feb 24 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-31
|
* Mon Feb 24 2014 Jens Petersen <petersen@redhat.com> - 1.2.5.2-31
|
||||||
- split out of haskell-platform
|
- split out of haskell-platform
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user