- fix /usr/bin/{pecl,peardev} (#174882)

This commit is contained in:
jorton 2005-12-04 16:12:18 +00:00
parent b5bac4b2f4
commit c4b9d17417
3 changed files with 16 additions and 3 deletions

3
peardev.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/php -d memory_limit="-1" -C -q -d include_path=/usr/share/pear \
-d output_buffering=1 /usr/share/pear/pearcmd.php "$@"

3
pecl.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/php -C -n -q -d include_path=/usr/share/pear \
-d output_buffering=1 /usr/share/pear/peclcmd.php "$@"

View File

@ -6,15 +6,17 @@
Summary: PHP Extension and Application Repository framework Summary: PHP Extension and Application Repository framework
Name: php-pear Name: php-pear
Version: 1.4.5 Version: 1.4.5
Release: 2 Release: 3
Epoch: 1 Epoch: 1
License: PHP License: PHP
Group: System Group: System
URL: http://pear.php.net/package/PEAR URL: http://pear.php.net/package/PEAR
Source0: install-pear-nozlib-%{version}.phar Source0: install-pear-nozlib-%{version}.phar
Source1: pear.sh
Source2: relocate.php Source2: relocate.php
Source3: XML_RPC-%{xmlrpcver}.tgz Source3: XML_RPC-%{xmlrpcver}.tgz
Source10: pear.sh
Source11: pecl.sh
Source12: peardev.sh
BuildArchitectures: noarch BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: php >= 5.1.0-1 BuildRequires: php >= 5.1.0-1
@ -42,7 +44,9 @@ export PHP_PEAR_SYSCONF_DIR=`pwd`
%{SOURCE3} %{SOURCE3}
# Replace /usr/bin/pear with something simple: # Replace /usr/bin/pear with something simple:
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/pear for f in pecl pear peardev; do
install -m 755 $RPM_SOURCE_DIR/${f}.sh $RPM_BUILD_ROOT%{_bindir}/${f}
done
install -d $RPM_BUILD_ROOT%{_sysconfdir} install -d $RPM_BUILD_ROOT%{_sysconfdir}
@ -74,6 +78,9 @@ rm pear.conf
%config %{_sysconfdir}/pear.conf %config %{_sysconfdir}/pear.conf
%changelog %changelog
* Sun Dec 4 2005 Joe Orton <jorton@redhat.com> 1:1.4.5-3
- fix /usr/bin/{pecl,peardev} (#174882)
* Thu Dec 1 2005 Joe Orton <jorton@redhat.com> 1:1.4.5-2 * Thu Dec 1 2005 Joe Orton <jorton@redhat.com> 1:1.4.5-2
- add virtual provides (#173806) - add virtual provides (#173806)