From da0727afda4e8bd6fd09fd1766eb22c860c069a1 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 27 Jan 2015 23:43:33 +0900 Subject: [PATCH] cblrpm refresh --- ghc-cryptohash.spec | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/ghc-cryptohash.spec b/ghc-cryptohash.spec index cc651d9..41c5ede 100644 --- a/ghc-cryptohash.spec +++ b/ghc-cryptohash.spec @@ -2,14 +2,16 @@ %global pkg_name cryptohash +%bcond_with tests + Name: ghc-%{pkg_name} Version: 0.9.0 -Release: 5%{?dist} -Summary: Crypto hashes, fast, pure and practical +Release: 6%{?dist} +Summary: Collection of crypto hashes, fast, pure and practical 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 @@ -18,6 +20,13 @@ BuildRequires: ghc-bytestring-devel BuildRequires: ghc-cereal-devel BuildRequires: ghc-crypto-api-devel BuildRequires: ghc-tagged-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif # End cabal-rpm deps %description @@ -29,10 +38,11 @@ a Haskell FFI wrapper that hide the C implementation. %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. @@ -52,6 +62,12 @@ This package provides the Haskell %{pkg_name} library development files. rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/README.md +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache @@ -69,6 +85,9 @@ rm %{buildroot}%{_datadir}/%{pkg_name}-%{version}/README.md %changelog +* Tue Jan 27 2015 Jens Petersen - 0.9.0-6 +- cblrpm refresh + * Sat Aug 16 2014 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild