php-ext-memcache-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Summary: memcache extension for PHP
  2. Summary(ja): PHP用memcache拡張
  3. Name: php-ext-memcache
  4. Version: 3.0.8
  5. Release: 1%{_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. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: tomop
  17. %description
  18. This module enable to access memcached in PHP scripts.
  19. %description -l ja
  20. このモジュールは、PHPスクリプト中でmemcachedにアクセスできるようにします。
  21. %prep
  22. %setup -q -n memcache-%{version}
  23. ##%patch0 -p1 -b .session_strict
  24. mv ../package.xml ./
  25. phpize
  26. %build
  27. %configure --enable-memcache-session=yes
  28. %__make %{?_smp_mflags}
  29. %install
  30. rm -rf %{buildroot}
  31. mkdir -p %{buildroot}%{_libdir}/php5/
  32. mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d
  33. %makeinstall INSTALL_ROOT=%{buildroot}
  34. cat > %{buildroot}%{_sysconfdir}/php5/php.d/memcache.ini <<EOF
  35. ; Enable memcache extension module
  36. extension=memcache.so
  37. memcache.allow_failover = 1
  38. memcache.max_failover_attempts = 20
  39. memcache.chunk_size = 16384
  40. memcache.default_port = 11211
  41. memcache.hash_function = crc32
  42. memcache.hash_strategy = consistent
  43. EOF
  44. %clean
  45. rm -rf %{buildroot}
  46. %files
  47. %defattr(-,root,root)
  48. %doc CREDITS README
  49. %{_libdir}/php5/*
  50. %config(noreplace) %{_sysconfdir}/php5/php.d/*
  51. %changelog
  52. * Thu Oct 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.8-1
  53. - new upstream release.
  54. * Tue Jun 25 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.7-1
  55. - new upstream release.
  56. * Sun Apr 29 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-3
  57. - converted encoding to UTF-8.
  58. * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-2
  59. - rebuilt with current environment.
  60. * Mon Dec 13 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-1
  61. - new upstream release.
  62. * Fri Jul 10 2009 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.2.4-1
  63. - initial build.