From b49b046ac930766ede976212c72317fee050d6fd Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 17 May 2014 11:26:18 +0900 Subject: [PATCH] turn on tests --- alex.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/alex.spec b/alex.spec index 3aa5aba..a2d5662 100644 --- a/alex.spec +++ b/alex.spec @@ -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 - 3.1.3-2 +- turn on tests with bcond + * Wed May 14 2014 Jens Petersen - 3.1.3-1 - update to 3.1.3