diff --git a/SPECS/batik.spec b/SPECS/batik.spec
index 9eaec62..6e6f195 100644
--- a/SPECS/batik.spec
+++ b/SPECS/batik.spec
@@ -1,6 +1,7 @@
 # Allow conditionally building without deps on scripting libs rhino and jython
-%bcond_with jp_minimal
-
+%global _with_jp_minimal 1
+%global _without_contrib_tools 1
+%global _without_junit5 1
 %global classpath batik:rhino:xml-commons-apis:xml-commons-apis-ext:xmlgraphics-commons:jai_imageio
 
 Name:           batik