From 63755334f2ce9d4a291962e0aa3cb6ede2f63589 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 27 Jan 2015 00:04:51 +0900 Subject: [PATCH] cblrpm refresh --- ghc-split.spec | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/ghc-split.spec b/ghc-split.spec index 2cf7ae7..9b11a03 100644 --- a/ghc-split.spec +++ b/ghc-split.spec @@ -2,18 +2,25 @@ %global pkg_name split +%bcond_without tests + Name: ghc-%{pkg_name} # part of haskell-platform-2012.4+ Version: 0.2.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Combinator library for splitting lists 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: +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +%endif +# End cabal-rpm deps %description A collection of various methods for splitting @@ -43,10 +50,11 @@ To get started, see the "Data.List.Split" module. %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. @@ -64,6 +72,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,10 +91,13 @@ This package provides the Haskell %{pkg_name} library development files. %files devel -f %{name}-devel.files -%doc CHANGES +%doc CHANGES README %changelog +* Mon Jan 26 2015 Jens Petersen - 0.2.2-5 +- cblrpm refresh + * Sat Aug 16 2014 Fedora Release Engineering - 0.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild