[alex] turn on tests
Jens Petersen
petersen at fedoraproject.org
Sat May 17 02:26:25 UTC 2014
commit b49b046ac930766ede976212c72317fee050d6fd
Author: Jens Petersen <petersen at redhat.com>
Date: Sat May 17 11:26:18 2014 +0900
turn on tests
alex.spec | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
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 <petersen at redhat.com> - 3.1.3-2
+- turn on tests with bcond
+
* Wed May 14 2014 Jens Petersen <petersen at redhat.com> - 3.1.3-1
- update to 3.1.3
More information about the scm-commits
mailing list