memcached-vl.spec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Summary: a high-performance, distributed memory object caching system
  2. Summary(ja): ハイパフォーマンスな分散メモリオブジェクトキャッシングシステム
  3. Name: memcached
  4. Version: 1.2.8
  5. Release: 1%{?_dist_release}
  6. Source0: http://www.danga.com/memcached/dist/%{name}-%{version}.tar.gz
  7. License: modified BDS style License
  8. Url: http://www.danga.com/memcached/
  9. Group: Applications/Databases
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: libevent-devel
  12. %description
  13. memcached is a high-performance, distributed memory object caching system,
  14. generic in nature, but intended for use in speeding up dynamic web
  15. applications by alleviating database load.
  16. %prep
  17. %setup
  18. %build
  19. %configure
  20. %install
  21. rm -rf %{buildroot}
  22. mkdir -p %{buildroot}%{_initdir}
  23. mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
  24. mkdir -p %{buildroot}%{_localstatedir}/run/memcached
  25. %__make %{?_smp_mflags}
  26. %makeinstall
  27. rm -f %{buildroot}%{_bindir}/memcached-debug
  28. install -m755 scripts/memcached.sysv %{buildroot}%{_initdir}/memcached
  29. install -m755 scripts/memcached-tool %{buildroot}%{_bindir}/
  30. cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/memcached
  31. PORT=11211
  32. USER=nobody
  33. MAXCONN=1024
  34. CACHESIZE=64
  35. OPTIONS=""
  36. EOF
  37. %clean
  38. rm -rf %{buildroot}
  39. %files
  40. %defattr(-,root,root)
  41. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  42. %config(noreplace) %{_sysconfdir}/sysconfig/memcached
  43. %{_initdir}/memcached
  44. %{_bindir}/memcached
  45. %{_bindir}/memcached-tool
  46. %{_mandir}/man1/memcached.1*
  47. %dir %{_localstatedir}/run/memcached
  48. %changelog
  49. * Mon Jun 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.8-1
  50. - new upstream release.
  51. - wrote spec in UTF-8.
  52. * Mon May 19 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.2.5-1
  53. - new upstream release.
  54. - added some scripts.
  55. * Mon Jul 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.12-0vl2
  56. - rebuilt with libevent-1.3b
  57. * Sun Aug 13 2006 IWAI, Masaharu <iwai@alib.jp> 1.1.12-0vl1
  58. - new package