diff --git a/ghc-cabal-file-th.spec b/ghc-cabal-file-th.spec index 6862340..9fa4b6d 100644 --- a/ghc-cabal-file-th.spec +++ b/ghc-cabal-file-th.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 cabal-file-th %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} Version: 0.2.7 Release: 4%{?dist} @@ -45,6 +47,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. @@ -65,7 +68,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -chmod a-x README.md # End cabal-rpm setup @@ -81,6 +83,12 @@ chmod a-x README.md # End cabal-rpm install +%check +%if %{with tests} +%cabal_test +%endif + + %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE