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