diff --git a/cta.spec.in b/cta.spec.in
index 57e4f488ca64ea7bcee8e2a7fb19bfd7cff18f4d..33da6cb5c814e0d8a7bb5262375ce0ba6838635c 100644
--- a/cta.spec.in
+++ b/cta.spec.in
@@ -31,7 +31,7 @@ BuildRequires: xrootd-client-devel >= 4.2.3 xrootd-devel >= 4.2
 BuildRequires: xrootd-server-devel >= 4.2 xrootd-private-devel >= 4.2
 BuildRequires: ceph-devel >= 0.87
 BuildRequires: protobuf-compiler >= 2.3.0 protobuf-devel >= 2.3.0
-BuildRequires: gmock >= 1.5.0 gtest >= 1.5.0
+BuildRequires: gmock-devel >= 1.5.0 gtest-devel >= 1.5.0
 BuildRequires: sqlite-devel >= 3.6
 # only build debug info if you're building the whole code