Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
:
extensions
>
php-eaccelerator
> php-eaccelerator.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-eaccelerator.spec of Package php-eaccelerator (Revision 2)
Currently displaying revision
2
,
show latest
%global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined") %global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1) %global php_version %((echo 0; php-config --version 2>/dev/null) | tail -1) # This is the apache userid, only used for sysvipc semaphores which is the # default on ppc since spinlock is not detected (not supported?) %define userid 48 Summary: PHP accelerator, optimizer, encoder and dynamic content cacher Name: php-eaccelerator Version: 0.9.5.2 Release: 5%{?dist} Epoch: 1 # The eaccelerator module itself is GPLv2+ # The PHP control panel is under the Zend license (control.php and dasm.php) License: GPLv2+ and Zend Group: Development/Languages URL: http://eaccelerator.net/ Source: http://bart.eaccelerator.net/source/%{version}/eaccelerator-%{version}.tar.bz2 Patch0: eaccelerator-0.9.5-rc1-config.patch Patch1: eaccelerator-0.9.5.1-nophpversioncheck.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %if %{?php_zend_api}0 # Require clean ABI/API versions if available (Fedora) Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} %else %if "%{rhel}" == "5" # RHEL5 where we have php-common providing the Zend ABI the "old way" Requires: php-zend-abi = %{php_zendabiver} %else # RHEL4 where we have no php-common and nothing providing the Zend ABI... Requires: php = %{php_version} %endif %endif Provides: php-zend_extension Conflicts: php-mmcache BuildRequires: php, php-devel # Required by phpize BuildRequires: autoconf, automake, libtool %description eAccelerator is a further development of the MMCache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. %prep %setup -q -n eaccelerator-%{version} %patch0 -p1 -b .config %patch1 -p1 -b .nophpversioncheck # Change paths in the example config, other values are changed by a patch %{__sed} -i 's|/usr/lib/php4/|%{php_extdir}/|g; s|/tmp/eaccelerator|%{_var}/cache/php-eaccelerator|g' \ eaccelerator.ini %build phpize %configure \ %ifnarch %{ix86} x86_64 --with-eaccelerator-userid="%{userid}" \ %endif --with-eaccelerator-shared-memory \ --with-eaccelerator-sessions \ --with-eaccelerator-content-caching %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install INSTALL_ROOT=%{buildroot} # The cache directory where pre-compiled files will reside %{__mkdir_p} %{buildroot}%{_var}/cache/php-eaccelerator # Drop in the bit of configuration %{__install} -D -m 0644 eaccelerator.ini \ %{buildroot}%{_sysconfdir}/php.d/eaccelerator.ini %clean %{__rm} -rf %{buildroot} %preun # Upon last removal (not update), clean all cache files if [ $1 -eq 0 ]; then %{__rm} -rf %{_var}/cache/php-eaccelerator/* &>/dev/null || : fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README* %doc eaccelerator.ini *.php %config(noreplace) %{_sysconfdir}/php.d/eaccelerator.ini %{php_extdir}/eaccelerator.so %attr(0750,apache,apache) %{_var}/cache/php-eaccelerator/ %changelog * Mon Nov 26 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.2-2 - Add proper "ifs" to get PHP requirements right on EL4 and EL5 (#417221). * Mon Nov 26 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.2-1 - Update to 0.9.5.2. * Wed Aug 22 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.1-7 - Rebuild for new BuildID feature. * Sun Aug 12 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.1-6 - Change the ifarch ppc* to ifnarch x86(_64) since alpha also needs to be excluded (#251302). * Mon Aug 6 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.1-5 - Update License field. * Wed Jul 25 2007 Jeremy Katz <katzj@redhat.com> - 1:0.9.5.1-4 - rebuild for toolchain bug * Tue Jul 24 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.1-3 - Include patch to skip the exact PHP version check, we'll rely on our package's php_zend_api version requirement to "get it right". * Thu Jul 19 2007 Jesse Keating <jkeating@redhat.com> 1:0.9.5.1-2 - Rebuild for new php * Fri Jun 22 2007 Matthias Saou <http://freshrpms.net/> 1:0.9.5.1-1 - Update to 0.9.5.1. - Major spec file cleanup, based on current PHP packaging guidelines. - Set Epoch to 1, since the proper versionning is lower than previously :-( - Remove two upstreamed patches (php52fix and trac187). - Use sed instead of perl for the config file changes. - No longer use dist because we want to use the same package on F-n and n+1. * Wed May 16 2007 Matthias Saou <http://freshrpms.net/> 5.2.2_0.9.5-2 - Include ppc64 %%ifarch, since it's now a Fedora target. - Include patch to fix trac bug #187. * Wed May 16 2007 Matthias Saou <http://freshrpms.net/> 5.2.2_0.9.5-1 - Rebuild against PHP 5.2.2. * Mon Feb 19 2007 Matthias Saou <http://freshrpms.net/> 5.2.1_0.9.5-1 - Rebuild against PHP 5.2.1. * Mon Dec 4 2006 Matthias Saou <http://freshrpms.net/> 5.2.0_0.9.5-2 - Include patch to fix use of PHP 5.2 (ea #204, rh #218166). * Wed Nov 29 2006 Matthias Saou <http://freshrpms.net/> 5.2.0_0.9.5-1 - Rebuild against PHP 5.2.0. * Wed Nov 8 2006 Matthias Saou <http://freshrpms.net/> 5.1.6_0.9.5-2 - Change to require php-common instead of php, for fastcgi without apache. * Mon Oct 16 2006 Matthias Saou <http://freshrpms.net/> 5.1.6_0.9.5-1 - Update to 0.9.5 final. - Add cleanup of the cache directory upon package removal. * Thu Sep 7 2006 Matthias Saou <http://freshrpms.net/> 5.1.6_0.9.5-0.4.rc1 - Rebuild for PHP 5.1.6, eA still checks the exact PHP version it seems :-( - Put "Requires: php = %%{php_version}" back to avoid broken setups if/when PHP gets updated. * Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 5.1.4_0.9.5-0.4.rc1 - FC6 rebuild. * Tue Aug 22 2006 Matthias Saou <http://freshrpms.net/> 5.1.4_0.9.5-0.3.rc1 - Update to 0.9.5-rc1. - Enable shared-memory, sessions and content-caching (#201319). - Remove both patches of fixes, merged upstream. - Change from creating a full eaccelerator.ini to using the included one with path substitutions and a patch to change default values. * Tue May 23 2006 Matthias Saou <http://freshrpms.net/> 5.1.x_0.9.5-0.2.beta2 - Rebuild against PHP 5.1.4. * Fri May 5 2006 Matthias Saou <http://freshrpms.net/> 5.1.x_0.9.5-0.2.beta2 - Rework heavily the API version requirement detection, should work with chroots builds where PHP isn't installed outside. - Replace the CC way of getting the API version with php -i output. * Tue Apr 11 2006 Matthias Saou <http://freshrpms.net/> 5.1.x_0.9.5-0.1.beta2 - Update to 0.9.5-beta2. * Tue Mar 14 2006 Matthias Saou <http://freshrpms.net/> 5.1.x_0.9.3-0.3 - Pass userid 48 to configure script on PPC for sysvipc semaphores. * Tue Mar 14 2006 Matthias Saou <http://freshrpms.net/> 5.1.x_0.9.3-0.2 - Update to latest eaccelerator-svn200603090012 snapshot. * Thu Feb 9 2006 Matthias Saou <http://freshrpms.net/> 5.1.x_0.9.3-0.1 - Update to 5.1.x compatible snapshot. - Will try to make re2c available in Extras in order to build require it. * Mon Oct 17 2005 Matthias Saou <http://freshrpms.net/> 4.x.x_0.9.3-4 - Re-add %%{?_smp_mflags}, as this was a false alarm. - Force SEM to FCNTL as the IPC version is buggy on x86_64 SMP at least. * Mon Jun 27 2005 Matthias Saou <http://freshrpms.net/> 4.x.x_0.9.3-3 - Include buffer overflow patch from zoeloelip, this should fix the real problem that wasn't in fact solved with the removal of _smp_mflags. - Add explicit shm_and_disk defaults to the ini file. * Mon Jun 27 2005 Matthias Saou <http://freshrpms.net/> 4.x.x_0.9.3-2 - Remove %%{?_smp_mflags}, since the module crashes otherwise (#161189). * Tue Jun 21 2005 Matthias Saou <http://freshrpms.net/> 4.x.x_0.9.3-1 - Update to 0.9.3, bugfix release. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - rebuilt * Tue Jan 11 2005 Matthias Saou <http://freshrpms.net/> 4.x.x_0.9.2a-0 - Initial RPM release based on the php-mmcache spec file.