- set cache_dir directory, own /var/cache/php-pear
This commit is contained in:
parent
cc0d7442cf
commit
49ab520b9d
@ -6,7 +6,7 @@
|
|||||||
Summary: PHP Extension and Application Repository framework
|
Summary: PHP Extension and Application Repository framework
|
||||||
Name: php-pear
|
Name: php-pear
|
||||||
Version: 1.4.6
|
Version: 1.4.6
|
||||||
Release: 1
|
Release: 2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: PHP
|
License: PHP
|
||||||
Group: System
|
Group: System
|
||||||
@ -43,6 +43,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
export PHP_PEAR_SYSCONF_DIR=`pwd`
|
export PHP_PEAR_SYSCONF_DIR=`pwd`
|
||||||
export PHP_PEAR_SIG_KEYDIR=/etc/pearkeys
|
export PHP_PEAR_SIG_KEYDIR=/etc/pearkeys
|
||||||
|
export PHP_PEAR_CACHE_DIR=%{_localstatedir}/cache/php-pear
|
||||||
|
|
||||||
%{_bindir}/php -n -dshort_open_tag=0 -dsafe_mode=0 \
|
%{_bindir}/php -n -dshort_open_tag=0 -dsafe_mode=0 \
|
||||||
-derror_reporting=E_ALL -ddetect_unicode=0 \
|
-derror_reporting=E_ALL -ddetect_unicode=0 \
|
||||||
@ -62,7 +63,8 @@ for f in pecl pear peardev; do
|
|||||||
install -m 755 $RPM_SOURCE_DIR/${f}.sh $RPM_BUILD_ROOT%{_bindir}/${f}
|
install -m 755 $RPM_SOURCE_DIR/${f}.sh $RPM_BUILD_ROOT%{_bindir}/${f}
|
||||||
done
|
done
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}
|
install -d $RPM_BUILD_ROOT%{_sysconfdir} \
|
||||||
|
$RPM_BUILD_ROOT%{_localstatedir}/cache/php-pear
|
||||||
|
|
||||||
# Relocate everything:
|
# Relocate everything:
|
||||||
sed -si "s,$RPM_BUILD_ROOT,,g" \
|
sed -si "s,$RPM_BUILD_ROOT,,g" \
|
||||||
@ -83,6 +85,7 @@ done
|
|||||||
# Check that no buildroot-relative or arch-specific paths are left in the pear.conf
|
# Check that no buildroot-relative or arch-specific paths are left in the pear.conf
|
||||||
grep $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf && exit 1
|
grep $RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf && exit 1
|
||||||
grep %{_libdir} $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf && exit 1
|
grep %{_libdir} $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf && exit 1
|
||||||
|
grep /tmp $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf && exit 1
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -93,8 +96,12 @@ rm pear.conf
|
|||||||
%{peardir}
|
%{peardir}
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%config %{_sysconfdir}/pear.conf
|
%config %{_sysconfdir}/pear.conf
|
||||||
|
%dir %{_localstatedir}/cache/php-pear
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 1:1.4.6-2
|
||||||
|
- set cache_dir directory, own /var/cache/php-pear
|
||||||
|
|
||||||
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1:1.4.6-1
|
* Mon Jan 30 2006 Joe Orton <jorton@redhat.com> 1:1.4.6-1
|
||||||
- update to 1.4.6
|
- update to 1.4.6
|
||||||
- require php >= 5.1.0 (#178821)
|
- require php >= 5.1.0 (#178821)
|
||||||
|
Loading…
Reference in New Issue
Block a user