diff options
-rw-r--r-- | php-pear.spec | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/php-pear.spec b/php-pear.spec index b509f0f..0301a6e 100644 --- a/php-pear.spec +++ b/php-pear.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 |