summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-31 11:45:24 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-31 11:45:24 +0200
commite7479033131a4bfc16f8f68b371fe414cf5bb71d (patch)
treed78f8877bf59c5766f2155525afc75ba31d8f188
parent87cd36e9b3191ea483c315feb60eac4ce5421be8 (diff)
php-pear: mising php_version macro
-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