LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php5-APC.spec of Package php5-APC (Project spins:invis)

# norootforbuild

%define pkg APC
Name: php5-APC
Version: 3.1.11_svn201208072024
Release: 0
License: Other/See package
Group: Productivity/Networking/Web/Servers
BuildRequires: php5-devel >= 5.1 xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Conflicts : php5-xcache php5-eaccelerator
URL: http://pecl.php.net/package/APC
Source: http://pecl.php.net/get/%{pkg}-%{version}.tar.bz2
Source1: apc.ini
Summary: Alternative PHP Cache
%if %{?php_zend_api}0
Requires:     php(zend-abi) = %{php_zend_api}
Requires:     php(api) = %{php_core_api}
%else
%requires_eq php5
%endif
Patch: apc-no-build-date.patch
Patch2: apc-module-deps.patch
Patch3: apc-pthread.patch
%description
APC is a free, open, and robust framework for caching and optimizing PHP
intermediate code.

 Authors:
----------
    George Schlossnagle <george@omniti.com>
    Daniel Cowgill <dan@communityconnect.com>
    Rasmus Lerdorf <rasmus@php.net>

%prep
%setup -q -n %{pkg}-%{version}
%patch
%patch2
%patch3
%build

CFLAGS="%{optflags}"
CXXFLAGS="%{optflags}"

export CFLAGS
export CXXFLAGS
export NO_INTERACTIVE="true"
/usr/bin/phpize

%configure 	\
			--enable-apc-filehits \
		 	--enable-apc-mmap \
            --enable-apc-memprotect \
            --disable-apc-pthreadmutex \
            --enable-apc-pthreadrwlocks

%{__make} %{?jobs:-j%jobs}
%{__make} test PHP_EXECUTABLE=/usr/bin/php

%install
%{__make} install INSTALL_ROOT="%{buildroot}"
%{__install} -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/apc.ini

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_libdir}/php5/extensions/apc.so
%config(noreplace) %{_sysconfdir}/php5/conf.d/apc.ini
%doc apc.php CHANGELOG INSTALL LICENSE NOTICE TECHNOTES.txt TODO
%dir /usr/include/php5/ext/apc
/usr/include/php5/ext/apc/apc_serializer.h

%changelog php5-APC