summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pear-dev.spec1
1 files changed, 1 insertions, 0 deletions
diff --git a/php-pear-dev.spec b/php-pear-dev.spec
index e3e37a4..b9c0321 100644
--- a/php-pear-dev.spec
+++ b/php-pear-dev.spec
@@ -11,6 +11,7 @@
%{?scl:%scl_package php-pear}
%{!?scl:%global pkg_name %{name}}
%{!?scl:%global _root_sysconfdir %{_sysconfdir}}
+%{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)}
%global peardir %{_datadir}/pear
%global metadir %{_localstatedir}/lib/pear