]> git.pld-linux.org Git - packages/ZendGuardLoader.git/blame - ZendGuardLoader.spec
- not distributable, new %%doc
[packages/ZendGuardLoader.git] / ZendGuardLoader.spec
CommitLineData
ef055b0a 1%define _srcname ZendOptimizer-Beta4-Linux-glibc2.1
2Summary: Zend Optimizer - php4 code optimizer
3Summary(pl): Zend Optimizer - optymalizator kodu php4
4Name: ZendOptimizer
5Version: 0.98beta4
6Release: 1
4e1793b5 7License: Trial, not distributable
ef055b0a 8Group: Libraries
ef055b0a 9Source0: %{_srcname}.tar.gz
10URL: http://www.zend.com/zend/optimizer.php
11Requires: php >= 4.0.0
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
69133cfa 15Zend Optimizer - php4 code optimizer.
ef055b0a 16
17%description -l pl
69133cfa 18Zend Optimizer - optymalizator kodu php4.
ef055b0a 19
20%prep
21%setup -q -n %{_srcname}
22
23%install
24rm -rf $RPM_BUILD_ROOT
25install -d $RPM_BUILD_ROOT/%{_libdir}/apache/php/
26install ZendOptimizer.so $RPM_BUILD_ROOT/%{_libdir}/apache/php/
27
69133cfa
JB
28%clean
29rm -rf $RPM_BUILD_ROOT
30
ef055b0a 31%preun
32if [ -f /etc/httpd/php.ini ]; then
33 echo "deactivating module 'ZendOptimizer.so' in php.ini" 1>&2
34 perl -pi -e 's|^zend_optimizer.optimization_level|;zend_optimizer.optimization_level|g' \
35 /etc/httpd/php.ini
36 perl -pi -e 's|^zend_extension=/usr/lib/apache/php/ZendOptimizer.so"|;zend_extension="/usr/lib/apache/php/ZendOptimizer.so"|g' \
37 /etc/httpd/php.ini
38
39fi
40
41%post
42if [ -f /etc/httpd/php.ini ]; then
43 echo "activating module 'ZendOptimizer.so' in php.ini" 1>&2
44 perl -pi -e 's|^;zend_optimizer.optimization_level|zend_optimizer.optimization_level|g' \
45 /etc/httpd/php.ini
46 perl -pi -e 's|^;zend_extension="/usr/lib/apache/php/ZendOptimizer.so"|zend_extension="/usr/lib/apache/php/ZendOptimizer.so"|g' \
47 /etc/httpd/php.ini
48fi
49if [ -f /var/lock/subsys/httpd ]; then
50 /etc/rc.d/init.d/httpd restart 1>&2
51fi
52echo "Remember:Read the /usr/share/doc/ZendOptimizer-%{version}/LICENSE.gz!"
53
ef055b0a 54%files
55%defattr(644,root,root,755)
4e1793b5 56%doc FAQ.txt LICENSE acceleratedbyoptimizer.gif
ef055b0a 57%{_libdir}/apache/php/ZendOptimizer.so
This page took 0.06955 seconds and 4 git commands to generate.