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