4c171b
#
4c171b
# Define full path to pear/pecl commands to be used in scriptlets:
4c171b
#
4c171b
%__pear @BINDIR@/pear
4c171b
%__pecl @BINDIR@/pecl
4c171b
4c171b
#
4c171b
# Define PEAR directories used in php-pear-* spec files
4c171b
#
4c171b
%pear_phpdir  %(%{__pear} config-get php_dir  2> /dev/null || echo undefined)
4c171b
%pear_docdir  %(%{__pear} config-get doc_dir  2> /dev/null || echo undefined)
4c171b
%pear_testdir %(%{__pear} config-get test_dir 2> /dev/null || echo undefined)
4c171b
%pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined)
4c171b
%pear_cfgdir  %(%{__pear} config-get cfg_dir  2> /dev/null || echo undefined)
4c171b
%pear_wwwdir  %(%{__pear} config-get www_dir  2> /dev/null || echo undefined)
4c171b
%pear_metadir %(%{__pear} config-get metadata_dir 2> /dev/null || echo undefined)
4c171b
4c171b
#
4c171b
# Define PECL directories used in php-pecl-* spec files:
4c171b
#
4c171b
%pecl_phpdir  %(%{__pecl} config-get php_dir  2> /dev/null || echo undefined)
4c171b
%pecl_docdir  %(%{__pecl} config-get doc_dir  2> /dev/null || echo undefined)
4c171b
%pecl_testdir %(%{__pecl} config-get test_dir 2> /dev/null || echo undefined)
4c171b
%pecl_datadir %(%{__pecl} config-get data_dir 2> /dev/null || echo undefined)
4c171b
4c171b
#
4c171b
# Define XML directories to store PEAR package registration information:
4c171b
# pecl_xmldir is now defined in macros.php (from php-devel)
4c171b
#
4c171b
%pear_xmldir @LIBDIR@/pear/pkgxml
4c171b
4c171b
#
4c171b
# Define noop macros for old scriplets used in php-pecl-* spec files:
4c171b
#
4c171b
%pecl_install   :
4c171b
%pecl_uninstall :