turn on tests

epel9
Jens Petersen 11 years ago
parent ddac671d85
commit b49b046ac9

@ -1,12 +1,14 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
%bcond_without tests
# no useful debuginfo for Haskell packages without C sources
%global debug_package %{nil}
Name: alex
# part of haskell-platform
Version: 3.1.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Tool for generating lexical analysers in Haskell
License: BSD
@ -20,6 +22,9 @@ BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
%if %{with tests}
BuildRequires: ghc-process-devel
%endif
# End cabal-rpm deps
BuildRequires: autoconf
BuildRequires: docbook-style-xsl
@ -50,6 +55,12 @@ cd ..
%ghc_bin_install
%check
%if %{with tests}
%cabal test
%endif
%files
%doc ANNOUNCE LICENSE README TODO doc/alex examples
%{_bindir}/%{name}
@ -57,6 +68,9 @@ cd ..
%changelog
* Sat May 17 2014 Jens Petersen <petersen@redhat.com> - 3.1.3-2
- turn on tests with bcond
* Wed May 14 2014 Jens Petersen <petersen@redhat.com> - 3.1.3-1
- update to 3.1.3

Loading…
Cancel
Save