memcached-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Summary: a high-performance, distributed memory object caching system
  2. Summary(ja): ハイパフォーマンスな分散メモリオブジェクトキャッシングシステム
  3. Name: memcached
  4. Version: 1.4.5
  5. Release: 1%{?_dist_release}
  6. Source0: http://www.danga.com/memcached/dist/%{name}-%{version}.tar.gz
  7. # Patches
  8. # From http://code.google.com/p/memcached/issues/detail?id=60
  9. Patch0: memcached-1.4.5-issue60.diff
  10. License: modified BDS style License
  11. Url: http://www.danga.com/memcached/
  12. Group: Applications/Databases
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libevent-devel
  15. %description
  16. memcached is a high-performance, distributed memory object caching system,
  17. generic in nature, but intended for use in speeding up dynamic web
  18. applications by alleviating database load.
  19. %package devel
  20. Summary: Files needed for development using memcached protocol
  21. Summary(ja): memcached プロトコルを使用した開発に必要なファイル
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. Install memcached-devel if you are developing C/C++ applications that require access to the
  26. memcached binary include files.
  27. %prep
  28. %setup -q
  29. %patch0 -p1
  30. %build
  31. %configure
  32. %install
  33. rm -rf %{buildroot}
  34. mkdir -p %{buildroot}%{_initdir}
  35. mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
  36. mkdir -p %{buildroot}%{_localstatedir}/run/memcached
  37. %__make %{?_smp_mflags}
  38. %makeinstall
  39. rm -f %{buildroot}%{_bindir}/memcached-debug
  40. install -m755 scripts/memcached.sysv %{buildroot}%{_initdir}/memcached
  41. install -m755 scripts/memcached-tool %{buildroot}%{_bindir}/
  42. cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/memcached
  43. PORT=11211
  44. USER=nobody
  45. MAXCONN=1024
  46. CACHESIZE=64
  47. OPTIONS=""
  48. EOF
  49. %clean
  50. rm -rf %{buildroot}
  51. %files
  52. %defattr(-,root,root)
  53. %doc AUTHORS COPYING ChangeLog NEWS README doc/CONTRIBUTORS doc/*.txt
  54. %config(noreplace) %{_sysconfdir}/sysconfig/memcached
  55. %{_initdir}/memcached
  56. %{_bindir}/memcached
  57. %{_bindir}/memcached-tool
  58. %{_mandir}/man1/memcached.1*
  59. %dir %{_localstatedir}/run/memcached
  60. %files devel
  61. %defattr(-,root,root,0755)
  62. %{_includedir}/memcached/*
  63. %changelog
  64. * Thu Feb 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.5-1
  65. - new upstream release
  66. - added Patch0 from Fedora
  67. - rebuilt with libevent-2.0.10
  68. - fixed &&files
  69. - splitted -devel package
  70. * Mon Jun 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.8-1
  71. - new upstream release.
  72. - wrote spec in UTF-8.
  73. * Mon May 19 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.2.5-1
  74. - new upstream release.
  75. - added some scripts.
  76. * Mon Jul 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.12-0vl2
  77. - rebuilt with libevent-1.3b
  78. * Sun Aug 13 2006 IWAI, Masaharu <iwai@alib.jp> 1.1.12-0vl1
  79. - new package