- add pecl_{un,}install macros to macros.pear (from Remi)

This commit is contained in:
jorton 2007-07-16 12:55:26 +00:00
parent 582fcefcb1
commit 5bb29cad26
2 changed files with 14 additions and 5 deletions

View File

@ -1,11 +1,11 @@
# #
# Define full path to pear/pecl commands to be used in post/postun scriptlets # Define full path to pear/pecl commands to be used in scriptlets:
# #
%__pear %{_bindir}/pear %__pear %{_bindir}/pear
%__pecl %{_bindir}/pecl %__pecl %{_bindir}/pecl
# #
# Define pear directories used in php-pear-* spec files # Define PEAR directories used in php-pear-* spec files
# #
%pear_phpdir %(%{__pear} config-get php_dir 2> /dev/null || echo undefined) %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_docdir %(%{__pear} config-get doc_dir 2> /dev/null || echo undefined)
@ -13,7 +13,7 @@
%pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined) %pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined)
# #
# Define pecl directories used in php-pecl-* spec files # Define PECL directories used in php-pecl-* spec files:
# #
%pecl_phpdir %(%{__pecl} config-get php_dir 2> /dev/null || echo undefined) %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_docdir %(%{__pecl} config-get doc_dir 2> /dev/null || echo undefined)
@ -21,7 +21,13 @@
%pecl_datadir %(%{__pecl} config-get data_dir 2> /dev/null || echo undefined) %pecl_datadir %(%{__pecl} config-get data_dir 2> /dev/null || echo undefined)
# #
# Define XML directories to store package registration information # Define XML directories to store package registration information:
# #
%pear_xmldir %{pear_phpdir}/.pkgxml %pear_xmldir %{pear_phpdir}/.pkgxml
%pecl_xmldir %{pecl_phpdir}/.pkgxml %pecl_xmldir %{pecl_phpdir}/.pkgxml
#
# 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

View File

@ -10,7 +10,7 @@
Summary: PHP Extension and Application Repository framework Summary: PHP Extension and Application Repository framework
Name: php-pear Name: php-pear
Version: 1.5.4 Version: 1.5.4
Release: 2 Release: 3
Epoch: 1 Epoch: 1
License: The PHP License v3.0 License: The PHP License v3.0
Group: Development/Languages Group: Development/Languages
@ -117,6 +117,9 @@ rm pear.conf
%doc LICENSE %doc LICENSE
%changelog %changelog
* Mon Jul 16 2007 Joe Orton <jorton@redhat.com> 1:1.5.4-3
- add pecl_{un,}install macros to macros.pear (from Remi)
* Fri May 11 2007 Joe Orton <jorton@redhat.com> 1:1.5.4-2 * Fri May 11 2007 Joe Orton <jorton@redhat.com> 1:1.5.4-2
- update to 1.5.4 - update to 1.5.4