From 63e00977f20db7218f4ea85a9e9592de9badc220 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 28 Jan 2015 14:49:28 +0900 Subject: [PATCH] cblrpm refresh --- ghc-base64-bytestring.spec | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/ghc-base64-bytestring.spec b/ghc-base64-bytestring.spec index b105d5e..c405d6c 100644 --- a/ghc-base64-bytestring.spec +++ b/ghc-base64-bytestring.spec @@ -2,19 +2,29 @@ %global pkg_name base64-bytestring +%bcond_with tests + Name: ghc-%{pkg_name} Version: 1.0.0.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Fast base64 encoding and decoding for ByteStrings 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 +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-bytestring-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif # End cabal-rpm deps %description @@ -23,13 +33,15 @@ Fast base64 encoding and decoding for ByteStrings. %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 @@ -44,6 +56,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 @@ -61,6 +79,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Wed Jan 28 2015 Jens Petersen - 1.0.0.1-6 +- cblrpm refresh + * Sat Aug 16 2014 Fedora Release Engineering - 1.0.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild