4 |
- |
1 |
#
|
|
|
2 |
# Define full path to pear/pecl commands to be used in scriptlets:
|
|
|
3 |
#
|
179 |
- |
4 |
%__pear /usr/bin/pear
|
|
|
5 |
%__pecl /usr/bin/pecl
|
4 |
- |
6 |
|
|
|
7 |
#
|
|
|
8 |
# Define PEAR directories used in php-pear-* spec files
|
|
|
9 |
#
|
179 |
- |
10 |
%pear_phpdir %(%{__pear} config-get php_dir 2> /dev/null || echo /usr/share/pear)
|
|
|
11 |
%pear_docdir %(%{__pear} config-get doc_dir 2> /dev/null || echo /usr/share/doc/pear)
|
|
|
12 |
%pear_testdir %(%{__pear} config-get test_dir 2> /dev/null || echo /usr/share/tests/pear)
|
|
|
13 |
%pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo /usr/share/pear-data)
|
|
|
14 |
%pear_cfgdir %(%{__pear} config-get cfg_dir 2> /dev/null || echo /etc/pear)
|
|
|
15 |
%pear_wwwdir %(%{__pear} config-get www_dir 2> /dev/null || echo /var/www/html)
|
|
|
16 |
%pear_metadir %(%{__pear} config-get metadata_dir 2> /dev/null || echo /var/lib/pear)
|
4 |
- |
17 |
|
|
|
18 |
#
|
|
|
19 |
# Define PECL directories used in php-pecl-* spec files:
|
|
|
20 |
#
|
179 |
- |
21 |
%pecl_phpdir %(%{__pecl} config-get php_dir 2> /dev/null || echo /usr/share/pear)
|
|
|
22 |
%pecl_docdir %(%{__pecl} config-get doc_dir 2> /dev/null || echo /usr/share/doc/pecl)
|
|
|
23 |
%pecl_testdir %(%{__pecl} config-get test_dir 2> /dev/null || echo /usr/share/tests/pecl)
|
|
|
24 |
%pecl_datadir %(%{__pecl} config-get data_dir 2> /dev/null || echo /usr/share/pear-data)
|
4 |
- |
25 |
|
|
|
26 |
#
|
|
|
27 |
# Define XML directories to store package registration information:
|
|
|
28 |
#
|
179 |
- |
29 |
%pear_xmldir /var/lib/pear/pkgxml
|
|
|
30 |
%pecl_xmldir /var/lib/pear/pkgxml
|
4 |
- |
31 |
|
|
|
32 |
#
|
|
|
33 |
# Define macros to be used in scriplets for php-pecl-* spec files:
|
|
|
34 |
#
|
|
|
35 |
%pecl_install %{__pecl} install --nodeps --soft --force --register-only --nobuild
|
|
|
36 |
%pecl_uninstall %{__pecl} uninstall --nodeps --ignore-errors --register-only
|