php-ext-mysqlnd_qc-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: 3%{_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. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: tomop
  19. %description
  20. The mysqlnd query result cache plugin is a mysqlnd plugin. It adds basic
  21. client side result set caching to all PHP MySQL extensions (ext/mysql,
  22. ext/mysqli, PDO_MySQL). if they are compiled to use mysqlnd. It does not
  23. change the API of the MySQL extensions and thus it operates virtually
  24. transparent for applications."
  25. %description -l ja
  26.  このプラグインは、mysqlndを利用している全てのMySQL拡張(mysql, mysqli,
  27. pdo_mysql)に、クライアント側での結果セットのキャッシュ機能を追加します。
  28. また、MySQL拡張のAPIは変えることなく、透過的に動作します。
  29. %prep
  30. %setup -q -n mysqlnd_qc-%{version}
  31. rm -f ../package.xml
  32. /usr/bin/phpize
  33. %build
  34. export LIBS="-lpthread"
  35. %configure --enable-mysqlnd-qc-memcache
  36. %__make %{_smp_mflags}
  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. cat > %{buildroot}%{_sysconfdir}/php5/php.d/mysqlnd_qc.ini <<EOF
  43. ; Enable mysqlnd_qc extension module
  44. extension=mysqlnd_qc.so
  45. EOF
  46. %clean
  47. rm -rf %{buildroot}
  48. %files
  49. %defattr(-,root,root)
  50. %doc CHANGES CREDITS LICENSE README web
  51. %{_libdir}/php5/*
  52. %{_sysconfdir}/php5/php.d/*
  53. %changelog
  54. * Sat Jan 18 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-3
  55. - rebuilt with libmemcached-1.0.17.
  56. * Thu Jan 09 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-2
  57. - rebuilt with current environment.
  58. * Thu Oct 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-1
  59. - new upstream release.
  60. * Thu May 03 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-2
  61. - enabled memcache handler.
  62. * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.1-1
  63. - initial build.