diff --git a/ghc-resourcet.spec b/ghc-resourcet.spec index 42d6420..36c44e5 100644 --- a/ghc-resourcet.spec +++ b/ghc-resourcet.spec @@ -2,20 +2,21 @@ %global pkg_name resourcet +%bcond_with tests + Name: ghc-%{pkg_name} Version: 0.4.10.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Deterministic allocation and freeing of scarce resources License: BSD -URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-containers-devel -BuildRequires: ghc-exceptions-devel BuildRequires: ghc-lifted-base-devel BuildRequires: ghc-mmorph-devel BuildRequires: ghc-monad-control-devel @@ -57,6 +58,12 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache @@ -73,6 +80,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Tue Jan 27 2015 Jens Petersen - 0.4.10.2-4 +- cblrpm refresh + * Sat Aug 16 2014 Fedora Release Engineering - 0.4.10.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild