diff --git a/ghc-streaming-commons.spec b/ghc-streaming-commons.spec
index 0283c16..172eb44 100644
--- a/ghc-streaming-commons.spec
+++ b/ghc-streaming-commons.spec
@@ -1,4 +1,4 @@
-# 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 streaming-commons
@@ -63,6 +63,7 @@ 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.
@@ -103,7 +104,9 @@ mv text_cbits.h include/
 
 
 %check
+%if %{with tests}
 %cabal_test
+%endif
 
 
 %files -f %{name}.files