1 | Summary: Alternative PHP Cache |
---|
2 | Name: php-ext-apc |
---|
3 | Version: 3.1.10 |
---|
4 | Release: 1%{_dist_release} |
---|
5 | Source: APC-%{version}.tgz |
---|
6 | License: The PHP License |
---|
7 | Group: Development/Languages |
---|
8 | BuildRequires: php5-devel |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
10 | Requires: %{req_php_api} |
---|
11 | |
---|
12 | %description |
---|
13 | APC is the Alternative PHP Cache. It was conceived of to provide a free, |
---|
14 | open, and robust framework for caching and optimizing PHP intermediate code. |
---|
15 | |
---|
16 | apc.php is placed into %{_docdir}/%{name}-%{version}. |
---|
17 | |
---|
18 | %package devel |
---|
19 | Summary: A header file to serialize with APC |
---|
20 | Group: Development/Libraries |
---|
21 | Requires: php5-devel |
---|
22 | Requires: %{name} = %{version} |
---|
23 | |
---|
24 | %description devel |
---|
25 | This package contains definitions of apc.serializer hooks. |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n APC-%{version} |
---|
29 | mv ../package.xml ./ |
---|
30 | phpize |
---|
31 | |
---|
32 | %build |
---|
33 | %configure --with-apc=shared --enable-mmap --enable-sem |
---|
34 | %__make %{?_smp_mflags} |
---|
35 | |
---|
36 | %install |
---|
37 | rm -rf %{buildroot} |
---|
38 | mkdir -p %{buildroot}%{_libdir}/php5/ |
---|
39 | mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d |
---|
40 | %makeinstall INSTALL_ROOT=%{buildroot} |
---|
41 | |
---|
42 | |
---|
43 | cat > %{buildroot}%{_sysconfdir}/php5/php.d/apc.ini <<EOF |
---|
44 | ; Enable APC extension module |
---|
45 | extension="apc.so" |
---|
46 | |
---|
47 | EOF |
---|
48 | |
---|
49 | |
---|
50 | %clean |
---|
51 | rm -rf %{buildroot} |
---|
52 | |
---|
53 | %files |
---|
54 | %defattr(-,root,root) |
---|
55 | %doc CHANGELOG INSTALL LICENSE NOTICE TODO TECHNOTES.txt apc.php |
---|
56 | %{_libdir}/php5/* |
---|
57 | %config(noreplace) %{_sysconfdir}/php5/php.d/* |
---|
58 | |
---|
59 | %files devel |
---|
60 | %{_includedir}/php5/ext/apc |
---|
61 | |
---|
62 | %changelog |
---|
63 | * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.10-1 |
---|
64 | - new upstream release. |
---|
65 | |
---|
66 | * Wed Mar 11 2009 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 3.0.19-1 |
---|
67 | - initial build. |
---|
68 | |
---|