diff --git a/rocblas.spec b/rocblas.spec
index 05dbdd657f047ec6740c70dfbe12a74a3c90a822..14992d1e7772dfbf00c984d0c4698c366a05aa35 100644
--- a/rocblas.spec
+++ b/rocblas.spec
@@ -143,7 +143,7 @@ for gpu in %{rocm_gpu_list}
 do
     module load rocm/$gpu
     # We can't compile all the targets at once
-    export ROCM_GPUS=gfx1030;gfx1100;gfx1101;gfx1102
+    export ROCM_GPUS='gfx1030;gfx1100;gfx1101;gfx1102'
     mkdir %{_target_platform}
     pushd %{_target_platform}
     %cmake .. -G Ninja \