memcached-vl.spec 3.3 KB

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