diff --git a/templates/common/build_icon.sh b/templates/common/build_icon.sh
index 0761921ac49098482e894704b2ff4f3d86e1990d..78d386a14ac0805c2f8c5ac7b5fd807fbcdb6701 100644
--- a/templates/common/build_icon.sh
+++ b/templates/common/build_icon.sh
@@ -42,6 +42,11 @@ if [ ! -f "${definitions_tar_file}" ]; then
   defs_url=https://opendata.dwd.de/weather/lib/grib/${definitions_tar_file}
   wget "${defs_url}"
 
+  if [ ! $(rpm -qa | grep bzip2) ]; then
+    spack install bzip2
+    spack load bzip2
+  fi
+
   # Decompress definitions file
   tar -xf "${definitions_tar_file}"
   # Create a file containing the environment variable that needs to be set in order to use DWD's definitions: