diff --git a/packages.yaml b/packages.yaml
index 15e62d307a3bec143aa35eeeab6a6e28f4d99fa0..b79c476b8053ba39a88acc5a72d9ee26ddb711e7 100644
--- a/packages.yaml
+++ b/packages.yaml
@@ -23,20 +23,6 @@ packages:
   # ----------------------------------------------------------------------------
   # Requirements
   # ----------------------------------------------------------------------------
-  ucx:
-    require:
-      - spec: "+rdmacm +rc +dc +ud +cma +mlx5_dv +parameter_checking +thread_multiple +verbs"
-      - spec: "+cuda cuda_arch=70 +gdrcopy"
-        when: 'env.get("environment", "") == "izar"'
-
-  openmpi:
-    require:
-      - spec: "fabrics=ofi,ucx,verbs schedulers=slurm ~rsh"
-      - spec: "+gpfs"
-        when: "env['environment'] == 'helvetios'"
-      - spec: "+cuda cuda_arch=70"
-        when: "env['environment'] == 'izar'"
-
   libfabric:
     require:
       - spec: "fabrics=mlx,tcp,udp,verbs,sockets,psm3,shm"
diff --git a/spack.yaml b/spack.yaml
index 64417b6b4ad8994f1dd6c244e6f7201453640bbb..c60942975cafa4b41dbdd34c872a085741b12eaf 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -9,17 +9,25 @@ spack:
         - gcc
     - mpi_codes:
         - osu-micro-benchmarks
-    - mpis:
-        - openmpi
+
+    - when: env['environment'] == 'helvetios'
+      mpis:
+        - openmpi fabrics=ofi,ucx,verbs schedulers=slurm ~rsh +gpfs
+          ^ucx +rdmacm +rc +dc +ud +cma +mlx5_dv +parameter_checking +thread_multiple +verbs
+    - when: env['environment'] == 'izar'
+      mpis:
+        - openmpi fabrics=ofi,ucx,verbs schedulers=slurm ~rsh +gpfs +cuda cuda_arch=70
+          ^ucx +rdmacm +rc +dc +ud +cma +mlx5_dv +parameter_checking +thread_multiple +verbs +cuda cuda_arch=70 +gdrcopy
+
   specs:
-    - $compilers
-    - matrix:
-        - [$mpis]
-        - [$%compilers]
-    - matrix:
-        - [$mpi_codes]
-        - [$^mpis]
-        - [$%compilers]
+  - $compilers
+  - matrix:
+    - [$mpis]
+    - [$%compilers]
+  - matrix:
+    - [$mpi_codes]
+    - [$^mpis]
+    - [$%compilers]
 
   view:
     default: