Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37791529
en ru br
ALT Linux repos
5.0: 0.9.5.3-alt2
4.1: 0.9.5.2-alt1
4.0: 0.9.5.2-alt0.M40.1

Group :: System/Servers
RPM: php5-eaccelerator

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define php5_extension eaccelerator

Name: php5-eaccelerator
Version: 0.9.5.3
Release: alt2

Summary: PHP accelerator, optimizer, encoder and dynamic content cache
License: GPL
Group: System/Servers

Url: http://eaccelerator.net
Source0: http://bart.eaccelerator.net/source/%version/%php5_extension-%version.tar.bz2
Source1: php-%php5_extension.ini
Source2: php-%php5_extension-params.sh
Packager: Michael Shigorin <mike at altlinux.org>

# Automatically added by buildreq on Wed Nov 22 2006

BuildRequires(pre): rpm-build-php5 >= %php5_version-%php5_release
BuildRequires: php5-devel = %php5_version-%php5_release

%description
eAccelerator is a free open source PHP accelerator, optimizer, encoder and
dynamic content cache for PHP. It increases performance of PHP scripts by
caching them in compiled state, so that the overhead of compiling is almost
completely eliminated. It also optimises the script to speed up execution
of PHP scripts. eAccelerator typically reduces server load and increases the
speed of your PHP code by 1-10 times.  Works with PHP FastCGI as well.

%prep
%setup -c

%build
%add_optflags -fPIC
pushd %php5_extension-%version
phpize
%configure \
--enable-eaccelerator=shared \
--without-eaccelerator-encoder \
--without-eaccelerator-loader \
--with-eaccelerator-shared-memory \
--with-eaccelerator-content-caching
%php5_make
popd

%install
pushd %php5_extension-%version
%php5_make_install
mkdir -p %buildroot/%_cachedir/%php5_extension
install -D -m644 %SOURCE1 %buildroot/%php5_extconf/%php5_extension/config
install -D -m644 %SOURCE2 %buildroot/%php5_extconf/%php5_extension/params
popd

%files
%php5_extconf/%php5_extension
%php5_extdir/*
%_cachedir/%php5_extension
#doc AUTHORS ChangeLog NEWS README
#doc doc/ README.eLoader

%post
%php5_extension_postin

%preun
%php5_extension_preun

# TODO:

# - conditional eloader/encoder build?
# - add/separate admin stuff

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin