%define php_extension eaccelerator %define version_php_devel %get_SVR php-devel %define version_php_libs %get_SVR php-libs ############################################################### Name: php-%php_extension Version: 0.9.5.2 Release: alt1 Group: System/Servers License: GPL PreReq: php-libs = %version_php_libs Source: %php_extension-%version.tar.bz2 Source1: php-%php_extension.ini Source2: php-%php_extension-params.sh Source3: eaccelerator.htaccess Summary: eAccelerator is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP BuildRequires: php-devel = %version_php_devel # for macros BuildRequires: apache-devel %description eAccelerator is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP derived from Turck MMcache. 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. This package is build without loader and encoder. %package admin Summary: eAccelerator admin frontend License: GPL Group: System/Servers Requires: %name = %version-%release %description admin This package contains stats script and password change script for eAccelerator. It is allowed to be accessed from localhost only by default, please take care not to make these publicly accessible in known locations. %prep %setup -c %build export CFLAGS="$RPM_OPT_FLAGS -fPIC" pushd %php_extension-%version phpize %configure \ --enable-eaccelerator=shared \ --without-eaccelerator-encoder \ --without-eaccelerator-loader \ --with-eaccelerator-shared-memory \ --with-eaccelerator-content-caching %php_make %install pushd %php_extension-%version %php_make_install install -pD -m644 %SOURCE1 %buildroot/%php_extconf/%php_extension/config install -pD -m644 %SOURCE2 %buildroot/%php_extconf/%php_extension/params install -pD -m644 control.php %buildroot%apache_htdocsdir/admin/eaccelerator/index.php install -pD -m644 %SOURCE3 %buildroot%apache_htdocsdir/admin/eaccelerator/.htaccess %files %php_extconf/%php_extension %php_extdir/* %attr(0770,%apache_user,%apache_group) %dir %_cachedir/%php_extension %doc CREDITS README doc/ #doc README* %files admin %apache_htdocsdir/admin/eaccelerator/index.php %apache_htdocsdir/admin/eaccelerator/.htaccess %post %php_extension_postin %preun %php_extension_preun %changelog * Fri Jan 04 2008 Michael Shigorin 0.9.5.2-alt1 - 0.9.5.2 built against 4.4.7 - added admin subpackage (as seen in php-mmcache 2.4.6-alt10) - spec macro abuse cleanup * Mon Jun 18 2007 Andrew Kornilov 0.9.5.1-alt1 - New version - Rebuild with new php * Thu Apr 12 2007 Andrew Kornilov 0.9.5-alt3 - Rebuild with new php * Fri Mar 23 2007 Andrew Kornilov 0.9.5-alt2 - Rebuild with new php * Thu Feb 03 2007 Andrew Kornilov 0.9.5-alt1 - First build for Sisyphus