From 19d9c759492a873c063bb5d74029f6a3431a801a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:09 +0800 Subject: [PATCH] refresh to cabal-rpm-2.0.9 --- ghc-auto-update.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ghc-auto-update.spec b/ghc-auto-update.spec index 532e46e..41f86c3 100644 --- a/ghc-auto-update.spec +++ b/ghc-auto-update.spec @@ -1,9 +1,11 @@ -# generated by cabal-rpm-2.0.6 +# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name auto-update %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} Version: 0.1.6 Release: 5%{?dist} @@ -19,6 +21,12 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-retry-devel +%endif # End cabal-rpm deps %description @@ -51,6 +59,7 @@ This package provides the Haskell %{pkg_name} library development files. %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch +Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. @@ -86,6 +95,12 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install +%check +%if %{with tests} +%cabal_test +%endif + + %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE