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