X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=blobdiff_plain;f=macros.php;h=31a0b1452d71e787eda68ee87be4d03a41ea3713;hp=f2a83a35e525963b9e11d862463c28a50c9f07fd;hb=41a8035cb2cd12eae13a5d6ed282559894274ed6;hpb=77d8583b546d2c368b3c4f6b8e12ba9649066d1d diff --git a/macros.php b/macros.php index f2a83a3..31a0b14 100644 --- a/macros.php +++ b/macros.php @@ -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