From 4fdd670877fba5fdd448277d9e96a7935c0ba497 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 10 Jun 2014 17:29:00 +0900 Subject: [PATCH] update to cblrpm-0.8.11 --- ghc-simple-sendfile.spec | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/ghc-simple-sendfile.spec b/ghc-simple-sendfile.spec index 9f85501..0a47611 100644 --- a/ghc-simple-sendfile.spec +++ b/ghc-simple-sendfile.spec @@ -2,14 +2,19 @@ %global pkg_name simple-sendfile +%bcond_with tests + +# no useful debuginfo for Haskell packages without C sources +%global debug_package %{nil} + Name: ghc-%{pkg_name} Version: 0.2.11 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Cross-platform sendfile system call License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -17,6 +22,14 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-bytestring-devel BuildRequires: ghc-network-devel BuildRequires: ghc-unix-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-conduit-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-network-conduit-devel +BuildRequires: ghc-process-devel +%endif # End cabal-rpm deps %description @@ -27,13 +40,15 @@ since they are a bottleneck for web servers. %package devel Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel -This package provides the Haskell %{pkg_name} library development files. +This package provides the Haskell %{pkg_name} library development +files. %prep @@ -48,6 +63,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 @@ -64,6 +85,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Tue Jun 10 2014 Jens Petersen - 0.2.11-5 +- update to cblrpm-0.8.11 + * Sat Jun 07 2014 Fedora Release Engineering - 0.2.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild