memcached-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. %define memcached_version 1.5.12
  2. Summary: a high-performance, distributed memory object caching system
  3. Summary(ja): ハイパフォーマンスな分散メモリオブジェクトキャッシングシステム
  4. Name: memcached
  5. Version: %{memcached_version}
  6. Release: 1%{?_dist_release}
  7. Source0: http://www.danga.com/memcached/dist/%{name}-%{memcached_version}.tar.gz
  8. # Patches
  9. License: modified BSD style License
  10. Url: http://www.danga.com/memcached/
  11. Group: Applications/Databases
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: libevent-devel
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: tomop
  17. %description
  18. memcached is a high-performance, distributed memory object caching system,
  19. generic in nature, but intended for use in speeding up dynamic web
  20. applications by alleviating database load.
  21. %package devel
  22. Summary: Files needed for development using memcached protocol
  23. Summary(ja): memcached プロトコルを使用した開発に必要なファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. Install memcached-devel if you are developing C/C++ applications that require access to the
  28. memcached binary include files.
  29. %prep
  30. %setup -q
  31. perl -pi -e 's|/var/run/memcached\.pid|/var/run/memcached/memcached.pid|' scripts/memcached.sysv
  32. %build
  33. %configure
  34. %__make %{?_smp_mflags}
  35. %install
  36. rm -rf %{buildroot}
  37. mkdir -p %{buildroot}%{_initdir}
  38. mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
  39. mkdir -p %{buildroot}%{_localstatedir}/run/memcached
  40. %makeinstall
  41. rm -f %{buildroot}%{_bindir}/memcached-debug
  42. install -m755 scripts/memcached.sysv %{buildroot}%{_initdir}/memcached
  43. install -m755 scripts/memcached-tool %{buildroot}%{_bindir}/
  44. cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/memcached
  45. PORT=11211
  46. USER=nobody
  47. MAXCONN=1024
  48. CACHESIZE=64
  49. OPTIONS=""
  50. EOF
  51. %clean
  52. rm -rf %{buildroot}
  53. %triggerprein -- memcached < 1.5.0
  54. /sbin/update-alternatives --remove memcached %{_bindir}/memcached.memcached ||:
  55. /sbin/update-alternatives --remove memcached %{_bindir}/memcached.repcached ||:
  56. rm -f %{_bindir}/memcached
  57. %post
  58. /sbin/service memcached condrestart ||:
  59. %files
  60. %defattr(-,root,root)
  61. %doc AUTHORS* COPYING ChangeLog ChangeLog* NEWS README*
  62. %doc doc/CONTRIBUTORS doc/*.txt
  63. %config(noreplace) %{_sysconfdir}/sysconfig/memcached
  64. %{_initdir}/memcached
  65. %{_bindir}/memcached
  66. %{_bindir}/memcached-tool
  67. %{_mandir}/man1/memcached.1*
  68. %dir %{_localstatedir}/run/memcached
  69. %files devel
  70. %defattr(-,root,root,0755)
  71. %{_includedir}/memcached/*
  72. %changelog
  73. * Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.12-1
  74. - new upstream release.
  75. - built with libevent-2.1.8.
  76. - dropped repcached.
  77. * Mon Nov 23 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.25-1
  78. - new upstream release.
  79. * Mon Jul 27 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.24-1
  80. - new upstream release.
  81. * Fri Jan 10 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.17-1
  82. - new upstream release.
  83. * Fri May 11 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.13-2
  84. - fixed missing symlink.
  85. * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.13-1
  86. - new upstream release.
  87. - made be able to choose between memcached and repcached by alternatives.
  88. * Sat Aug 20 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.7.repcached2.3.1-1
  89. - new upstream release.
  90. - updated repcached patch.
  91. - removed %%Patch0. (fixed in upstream)
  92. * Tue Feb 15 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.5.repcached2.3.1-1
  93. - updated repcached patch.
  94. * Mon Feb 14 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.5.repcached2.
  95. 3-1
  96. - applied the repcached patch.
  97. * Thu Feb 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.4.5-1
  98. - new upstream release
  99. - added Patch0 from Fedora
  100. - rebuilt with libevent-2.0.10
  101. - fixed &&files
  102. - splitted -devel package
  103. * Mon Jun 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.8-1
  104. - new upstream release.
  105. - wrote spec in UTF-8.
  106. * Mon May 19 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.2.5-1
  107. - new upstream release.
  108. - added some scripts.
  109. * Mon Jul 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.12-0vl2
  110. - rebuilt with libevent-1.3b
  111. * Sun Aug 13 2006 IWAI, Masaharu <iwai@alib.jp> 1.1.12-0vl1
  112. - new package