php-ext-memcache-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Summary: memcache extension for PHP
  2. Summary(ja): PHP用memcache拡張
  3. Name: php-ext-memcache
  4. Version: 2.2.6
  5. Release: 3%{_dist_release}
  6. Source: memcache-%{version}.tgz
  7. Patch0: memcache-2.2.6-session_strict.patch
  8. License: The PHP License
  9. Group: Development/Languages
  10. BuildRequires: php5-devel
  11. BuildRequires: zlib-devel
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Requires: %{req_php_api}
  14. %description
  15. This module enable to access memcached in PHP scripts.
  16. %description -l ja
  17. このモジュールは、PHPスクリプト中でmemcachedにアクセスできるようにします。
  18. %prep
  19. %setup -q -n memcache-%{version}
  20. %patch0 -p1 -b .session_strict
  21. mv ../package.xml ./
  22. phpize
  23. %build
  24. %configure --enable-memcache-session=yes
  25. %__make %{?_smp_mflags}
  26. %install
  27. rm -rf %{buildroot}
  28. mkdir -p %{buildroot}%{_libdir}/php5/
  29. mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d
  30. %makeinstall INSTALL_ROOT=%{buildroot}
  31. cat > %{buildroot}%{_sysconfdir}/php5/php.d/memcache.ini <<EOF
  32. ; Enable memcache extension module
  33. extension=memcache.so
  34. memcache.allow_failover = 1
  35. memcache.max_failover_attempts = 20
  36. memcache.chunk_size = 16384
  37. memcache.default_port = 11211
  38. memcache.hash_function = crc32
  39. memcache.hash_strategy = consistent
  40. EOF
  41. %clean
  42. rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root)
  45. %doc CREDITS README
  46. %{_libdir}/php5/*
  47. %config(noreplace) %{_sysconfdir}/php5/php.d/*
  48. %changelog
  49. * Sun Apr 29 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-3
  50. - converted encoding to UTF-8.
  51. * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-2
  52. - rebuilt with current environment.
  53. * Mon Dec 13 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-1
  54. - new upstream release.
  55. * Fri Jul 10 2009 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.2.4-1
  56. - initial build.