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