From 2218e1057a3ce0d2938c3a2787bf1d38474caaa0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 27 Jan 2015 23:11:49 +0900 Subject: [PATCH] cblrpm refresh --- ghc-conduit.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/ghc-conduit.spec b/ghc-conduit.spec index 8194d0e..fea0cb6 100644 --- a/ghc-conduit.spec +++ b/ghc-conduit.spec @@ -2,14 +2,16 @@ %global pkg_name conduit +%bcond_with tests + Name: ghc-%{pkg_name} Version: 1.0.13.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Streaming data processing library License: MIT -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 @@ -26,10 +28,14 @@ BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-base-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-void-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-hspec-devel +%endif # End cabal-rpm deps %description -Conduit is a solution to the streaming data problem, allowing for production, +'conduit' is a solution to the streaming data problem, allowing for production, transformation, and consumption of streams of data in constant memory. It is an alternative to lazy I/O which guarantees deterministic resource handling, and fits in the same general solution space as enumerator, iteratee, @@ -61,6 +67,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 @@ -77,6 +89,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Tue Jan 27 2015 Jens Petersen - 1.0.13.1-4 +- cblrpm refresh + * Sat Aug 16 2014 Fedora Release Engineering - 1.0.13.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild