1 | Summary: A query cache plugin for mysqlnd |
---|
2 | Summary(ja): mysqlnd クエリキャッシュプラグイン |
---|
3 | Name: php-ext-mysqlnd_qc |
---|
4 | Version: 1.1.1 |
---|
5 | Release: 1%{_dist_release} |
---|
6 | URL: http://pecl.php.net/package/mysqlnd_qc |
---|
7 | Source: mysqlnd_qc-%{version}.tgz |
---|
8 | License: The PHP License |
---|
9 | Group: Development/Languages |
---|
10 | BuildRequires: php5-devel |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | Requires: php5-mysql |
---|
13 | Requires: %{req_php_api} |
---|
14 | |
---|
15 | %description |
---|
16 | The mysqlnd query result cache plugin is a mysqlnd plugin. It adds basic |
---|
17 | client side result set caching to all PHP MySQL extensions (ext/mysql, |
---|
18 | ext/mysqli, PDO_MySQL). if they are compiled to use mysqlnd. It does not |
---|
19 | change the API of the MySQL extensions and thus it operates virtually |
---|
20 | transparent for applications." |
---|
21 | |
---|
22 | %description -l ja |
---|
23 | このプラグインは、mysqlndを利用している全てのMySQL拡張(mysql, mysqli, |
---|
24 | pdo_mysql)に、クライアント側での結果セットのキャッシュ機能を追加します。 |
---|
25 | また、MySQL拡張のAPIは変えることなく、透過的に動作します。 |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n mysqlnd_qc-%{version} |
---|
29 | rm -f ../package.xml |
---|
30 | |
---|
31 | /usr/bin/phpize |
---|
32 | |
---|
33 | %build |
---|
34 | %configure |
---|
35 | %__make %{_smp_mflags} |
---|
36 | |
---|
37 | %install |
---|
38 | rm -rf %{buildroot} |
---|
39 | mkdir -p %{buildroot}%{_libdir}/php5/ |
---|
40 | mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d |
---|
41 | %makeinstall INSTALL_ROOT=%{buildroot} |
---|
42 | |
---|
43 | cat > %{buildroot}%{_sysconfdir}/php5/php.d/mysqlnd_qc.ini <<EOF |
---|
44 | ; Enable mysqlnd_qc extension module |
---|
45 | extension=mysqlnd_qc.so |
---|
46 | EOF |
---|
47 | |
---|
48 | |
---|
49 | %clean |
---|
50 | rm -rf %{buildroot} |
---|
51 | |
---|
52 | %files |
---|
53 | %defattr(-,root,root) |
---|
54 | %doc CHANGES CREDITS LICENSE README web |
---|
55 | %{_libdir}/php5/* |
---|
56 | %{_sysconfdir}/php5/php.d/* |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-1 |
---|
60 | - initial build. |
---|
61 | |
---|