From f9323fa10a49d5ba61c0d2a02bcd8d215c81310b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 1 Jun 2014 23:20:41 +0900 Subject: [PATCH] update to 1.1.0.3 --- .gitignore | 1 + ghc-case-insensitive.spec | 40 +++++++++++++++++++++++++++++---------- sources | 2 +- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index b74af1f..592b1aa 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /case-insensitive-0.4.0.3.tar.gz /case-insensitive-1.0.tar.gz /case-insensitive-1.0.0.1.tar.gz +/case-insensitive-1.1.0.3.tar.gz diff --git a/ghc-case-insensitive.spec b/ghc-case-insensitive.spec index d557c1f..516deda 100644 --- a/ghc-case-insensitive.spec +++ b/ghc-case-insensitive.spec @@ -2,15 +2,20 @@ %global pkg_name case-insensitive +%bcond_with tests + +# no useful debuginfo for Haskell packages without C sources +%global debug_package %{nil} + Name: ghc-%{pkg_name} -# part of haskell-platform-2013.2+ -Version: 1.0.0.1 -Release: 2%{?dist} +# part of haskell-platform +Version: 1.1.0.3 +Release: 1%{?dist} Summary: Case insensitive string comparison 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 @@ -19,24 +24,30 @@ BuildRequires: ghc-bytestring-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-text-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +%endif # End cabal-rpm deps %description -The module Data.CaseInsensitive provides the 'CI' type constructor -which can be parameterised by a string-like type like: 'String', -'ByteString', 'Text', etc. Comparisons of values of the resulting -type will be insensitive to cases. +The module 'Data.CaseInsensitive' provides the 'CI' type constructor which can +be parameterised by a string-like type like: 'String', 'ByteString', 'Text', +etc.. Comparisons of values of the resulting type will be insensitive to cases. %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 @@ -51,6 +62,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 @@ -68,6 +85,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Jun 01 2014 Jens Petersen - 1.1.0.3-1 +- update to 1.1.0.3 + * Sat Aug 03 2013 Fedora Release Engineering - 1.0.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 0f49494..5b14f47 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dd1c75729ef2b88a81cfea63f86fb160 case-insensitive-1.0.0.1.tar.gz +5072b2d078bdaabbe1c9cb3551d866aa case-insensitive-1.1.0.3.tar.gz