1 |
slords |
1.1 |
Summary: SME server eAccelerator |
2 |
|
|
%define name smeserver-eaccelerator |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 0.9.5 |
5 |
|
|
%define release 1 |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: Freely distributable |
9 |
|
|
Group: Apache/php/caching |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
12 |
|
|
BuildRoot: /var/tmp/e-smith-buildroot |
13 |
|
|
BuildRequires: e-smith-devtools |
14 |
|
|
Requires: smeserver-release >= 7, php >= 4.3.9, php < 4.3.10 |
15 |
|
|
AutoReqProv: no |
16 |
|
|
|
17 |
|
|
%changelog |
18 |
|
|
* Mon Oct 23 2006 Michel Van hees <michel@vanhees.cc> |
19 |
|
|
- use of version 0.9.5 of eaccelerator |
20 |
|
|
- remove admin interface and activate eaccelerator for whole http |
21 |
|
|
|
22 |
|
|
* Mon Jul 17 2006 Michel Van hees <michel@vanhees.cc> |
23 |
|
|
- Adding multi langage, made by FredB, thanks to him |
24 |
|
|
|
25 |
|
|
* Wed Dec 30 2005 Michel Van hees <michel@vanhees.cc> |
26 |
|
|
- start developpement |
27 |
|
|
|
28 |
|
|
%description |
29 |
|
|
Add eaccelerator(php optimizer) to your SME box |
30 |
|
|
|
31 |
|
|
%prep |
32 |
|
|
%setup |
33 |
|
|
#%patch0 -p1 |
34 |
|
|
#%patch1 -p1 |
35 |
|
|
|
36 |
|
|
%build |
37 |
|
|
perl createlinks |
38 |
|
|
|
39 |
|
|
%install |
40 |
|
|
rm -rf $RPM_BUILD_ROOT |
41 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
42 |
|
|
rm -f %{name}-%{version}-filelist |
43 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
44 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
45 |
|
|
|
46 |
|
|
%clean |
47 |
|
|
rm -rf $RPM_BUILD_ROOT |
48 |
|
|
|
49 |
|
|
%pre |
50 |
|
|
%preun |
51 |
|
|
%post |
52 |
|
|
chown -R www:www /var/cache/eaccelerator |
53 |
|
|
/sbin/e-smith/expand-template /etc/php.ini |
54 |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
55 |
|
|
|
56 |
|
|
%postun |
57 |
|
|
/sbin/e-smith/expand-template /etc/php.ini |
58 |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
59 |
|
|
|
60 |
|
|
%files -f %{name}-%{version}-filelist |
61 |
|
|
%defattr(-,root,root) |