]> TLD Linux GIT Repositories - packages/rpm-tld-macros.git/blobdiff - macros.php
- fix PHP macros to use proper version of php-config
[packages/rpm-tld-macros.git] / macros.php
index f2a83a35e525963b9e11d862463c28a50c9f07fd..31a0b1452d71e787eda68ee87be4d03a41ea3713 100644 (file)
@@ -15,9 +15,9 @@
 
 %php_pear_dir          /usr/share/pear
 %php_data_dir          /usr/share/php
-%php_extensiondir      %{expand:%%global php_extensiondir %(php-config --extension-dir 2>/dev/null || echo ERROR)}%php_extensiondir
-%php_sysconfdir                %{expand:%%global php_sysconfdir %(php-config --sysconfdir 2>/dev/null || echo ERROR)}%php_sysconfdir
-%php_includedir                %{expand:%%global php_includedir %(php-config --include-dir 2>/dev/null || echo ERROR)}%php_includedir
+%php_extensiondir      %{expand:%%global php_extensiondir %(php-config%{?php_suffix} --extension-dir 2>/dev/null || echo ERROR)}%php_extensiondir
+%php_sysconfdir                %{expand:%%global php_sysconfdir %(php-config%{?php_suffix} --sysconfdir 2>/dev/null || echo ERROR)}%php_sysconfdir
+%php_includedir                %{expand:%%global php_includedir %(php-config%{?php_suffix} --include-dir 2>/dev/null || echo ERROR)}%php_includedir
 
 # extract php/zend api versions
 %php_major_version     %{expand:%%global php_major_version %(awk '/#define PHP_MAJOR_VERSION/{print $3}' %{php_includedir}/main/php_version.h 2>/dev/null || echo ERROR)}%php_major_version