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