2006-07-13 12:15:27 +00:00
|
|
|
#
|
2007-07-16 12:55:26 +00:00
|
|
|
# Define full path to pear/pecl commands to be used in scriptlets:
|
2006-07-13 12:15:27 +00:00
|
|
|
#
|
|
|
|
%__pear %{_bindir}/pear
|
|
|
|
%__pecl %{_bindir}/pecl
|
|
|
|
|
|
|
|
#
|
2007-07-16 12:55:26 +00:00
|
|
|
# Define PEAR directories used in php-pear-* spec files
|
2006-07-13 12:15:27 +00:00
|
|
|
#
|
|
|
|
%pear_phpdir %(%{__pear} config-get php_dir 2> /dev/null || echo undefined)
|
|
|
|
%pear_docdir %(%{__pear} config-get doc_dir 2> /dev/null || echo undefined)
|
|
|
|
%pear_testdir %(%{__pear} config-get test_dir 2> /dev/null || echo undefined)
|
|
|
|
%pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined)
|
|
|
|
|
|
|
|
#
|
2007-07-16 12:55:26 +00:00
|
|
|
# Define PECL directories used in php-pecl-* spec files:
|
2006-07-13 12:15:27 +00:00
|
|
|
#
|
|
|
|
%pecl_phpdir %(%{__pecl} config-get php_dir 2> /dev/null || echo undefined)
|
|
|
|
%pecl_docdir %(%{__pecl} config-get doc_dir 2> /dev/null || echo undefined)
|
|
|
|
%pecl_testdir %(%{__pecl} config-get test_dir 2> /dev/null || echo undefined)
|
|
|
|
%pecl_datadir %(%{__pecl} config-get data_dir 2> /dev/null || echo undefined)
|
|
|
|
|
|
|
|
#
|
2007-07-16 12:55:26 +00:00
|
|
|
# Define XML directories to store package registration information:
|
2006-07-13 12:15:27 +00:00
|
|
|
#
|
|
|
|
%pear_xmldir %{pear_phpdir}/.pkgxml
|
|
|
|
%pecl_xmldir %{pecl_phpdir}/.pkgxml
|
2007-07-16 12:55:26 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Define macros to be used in scriplets for php-pecl-* spec files:
|
|
|
|
#
|
|
|
|
%define pecl_install %{__pecl} install --nodeps --soft --force --register-only --nobuild
|
|
|
|
%define pecl_uninstall %{__pecl} uninstall --nodeps --ignore-errors --register-only
|