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