diff --git a/mariadb.spec b/mariadb.spec
index 71b65c3..e75403b 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -80,7 +80,7 @@
 
 # MariaDB 10.0 and later requires pcre >= 8.35, otherwise we need to use
 # the bundled library, since the package cannot be build with older version
-%if 0%{?fedora} >= 21
+%if 0%{?fedora} >= 21 || 0%{?rhel} > 7
 %bcond_without bundled_pcre
 %else
 %bcond_with bundled_pcre