diff --git a/ghc-zlib.spec b/ghc-zlib.spec
index ecc2165..2d2fa49 100644
--- a/ghc-zlib.spec
+++ b/ghc-zlib.spec
@@ -1,4 +1,4 @@
-# generated by cabal-rpm-2.0.8
+# generated by cabal-rpm-2.0.9
 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
 
 %global pkg_name zlib
@@ -62,6 +62,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.
@@ -100,7 +101,9 @@ rm -r cbits
 
 
 %check
+%if %{with tests}
 %cabal_test
+%endif
 
 
 %files -f %{name}.files