LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php5-eaccelerator.spec of Package php5-eaccelerator (Project server:php:extensions)

# spec file for package php5-eaccelerator (Version 0.9.5)
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via http://bugs.opensuse.org/


Name:           php5-eaccelerator
Version:        1.0devGIT42067ac7e2d55caa5d060580489f5043357ffbe2
Release:        1
Url:            http://eaccelerator.net/
Group:          Productivity/Multimedia/Video/Players
License:        GPL
Summary:        a free PHP accelerator, optimizer, encoder and dynamic content cache
Source:         eaccelerator-master.zip
Source1:        eaccelerator.ini
#Patch:			eaccelerator-0.9.6-stringcompare.patch
BuildRequires:  php5-devel
BuildRequires:	unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts :     php5-APC php5-xcache
%if %{?php_zend_api}0
Requires:     php(zend-abi) = %{php_zend_api}
Requires:     php(api) = %{php_core_api}
%requires_eq php5

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


%setup -q -n eaccelerator-master

CFLAGS="%{optflags} -fno-strict-aliasing"

%if 0%{?suse_version} > 1000
CFLAGS="$CFLAGS -fstack-protector"


%configure --without-eaccelerator-encoder --without-eaccelerator-loader

%{__make} %{?jobs:-j%jobs}

%{__make} EXTENSION_DIR=%{buildroot}/usr/%{_lib}/php5/extensions install
%{__mkdir_p} %{buildroot}/var/cache/php5-eaccelerator/
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/php5/conf.d/
%{__cp} -a %SOURCE1 %{buildroot}/%{_sysconfdir}/php5/conf.d/

%{__rm} -rf %{buildroot}

%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog README eaccelerator.ini
%config(noreplace) %{_sysconfdir}/php5/conf.d/eaccelerator.ini
%attr (750, wwwrun, root) /var/cache/php5-eaccelerator

%changelog -n php5-eaccelerator
* Fri Feb 16 2007 - judas_iscariote@shorewall.net
- add norootforbuild
- should require the exact php version against it was built.
* Thu Nov 07 2006 - soporte@onfocus.cl
- should conflict with APC and XCache, having both installed can lead into
  very strange results.
- update to 0.9.5 final.
* Wed Oct 11 2006 - tsieden@suse.de
- initial release 0.9.5-rc1