From a8c3d7a7c46a30644b1e687fd89ed6904a006a30 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 28 Aug 2014 10:40:25 +0900 Subject: [PATCH] update to 0.1.4 --- .gitignore | 1 + ghc-path-pieces.spec | 27 ++++++++++++++++++++++++--- sources | 2 +- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5349877..f999fb4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /path-pieces-0.1.2.tar.gz +/path-pieces-0.1.4.tar.gz diff --git a/ghc-path-pieces.spec b/ghc-path-pieces.spec index 430c07b..dfc5e2d 100644 --- a/ghc-path-pieces.spec +++ b/ghc-path-pieces.spec @@ -2,20 +2,30 @@ %global pkg_name path-pieces +%bcond_with tests + +# no useful debuginfo for Haskell packages without C sources +%global debug_package %{nil} + Name: ghc-%{pkg_name} -Version: 0.1.2 -Release: 4%{?dist} +Version: 0.1.4 +Release: 1%{?dist} Summary: Components of paths 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 # Begin cabal-rpm deps: BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-hspec-devel +%endif # End cabal-rpm deps %description @@ -24,6 +34,7 @@ Library for components of paths. %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} @@ -45,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 +78,10 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Thu Aug 28 2014 Jens Petersen - 0.1.4-1 +- update to 0.1.4 +- refresh to cblrpm-0.8.11 + * Sat Aug 16 2014 Fedora Release Engineering - 0.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index 6625ff4..a4161f0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6a25209d642d70ff7803ce450b9da176 path-pieces-0.1.2.tar.gz +fcaf0f649cf67d0cdf880ef0387f673e path-pieces-0.1.4.tar.gz