diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-07-31 11:44:49 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-07-31 11:44:49 +0200 |
commit | 87cd36e9b3191ea483c315feb60eac4ce5421be8 (patch) | |
tree | ce589a3374e12600b6f531f75bebbfe845766e6e | |
parent | 9a7dac7854b47f9bfebbc47e9b2ba28fb8047326 (diff) |
php-pear: mising php_version macro
-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 |