php-ext-mysqlnd_qc-vl.spec 1.9 KB

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