3 Release: @RELEASE@
%{?dist}
4 Summary: High Performance
, Distributed Memory Object Cache
6 Group: System Environment
/Daemons
8 URL: http
://www.danga.com
/memcached
/
9 Source0: http
://memcached.googlecode.com
/files
/%{name}-@FULLVERSION@.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
12 BuildRequires
: libevent
-devel
13 BuildRequires
: perl
(Test
::More
)
14 BuildRequires
: /usr
/bin
/prove
16 Requires(post
): /sbin
/chkconfig
17 Requires(preun
): /sbin
/chkconfig
, /sbin
/service
18 Requires(postun
): /sbin
/service
21 memcached is a high
-performance
, distributed memory object caching
22 system
, generic
in nature
, but intended
for use
in speeding up dynamic
23 web applications by alleviating database load.
26 %setup -q
-n
%{name}-@FULLVERSION@
39 make install DESTDIR
=%{buildroot}
41 # remove memcached-debug
42 rm -f
%{buildroot}/%{_bindir}/memcached
-debug
44 # Perl script for monitoring memcached
45 install -Dp
-m0755 scripts
/memcached
-tool
%{buildroot}%{_bindir}/memcached
-tool
48 install -Dp
-m0755 scripts
/memcached.sysv
%{buildroot}%{_initrddir}/memcached
51 mkdir -p
%{buildroot}/%{_sysconfdir}/sysconfig
52 cat
<<EOF
>%{buildroot}/%{_sysconfdir}/sysconfig/%{name}
61 mkdir -p
%{buildroot}/%{_localstatedir}/run
/memcached
68 /sbin
/chkconfig
--add
%{name}
71 if [ "$
1"
= 0 ] ; then
72 /sbin
/service
%{name} stop
> /dev
/null
2>&1
73 /sbin
/chkconfig
--del
%{name}
78 if [ "$
1"
-ge
1 ]; then
79 /sbin
/service
%{name} condrestart
> /dev
/null
2>&1
85 %defattr(-,root
,root
,-)
86 %doc AUTHORS ChangeLog COPYING NEWS README doc
/CONTRIBUTORS doc
/*.txt
87 %config(noreplace
) %{_sysconfdir}/sysconfig/%{name}
89 %dir %attr(750,nobody
,nobody
) %{_localstatedir}/run
/memcached
90 %{_bindir}/memcached
-tool
92 %{_mandir}/man1
/memcached
.1*
93 %{_initrddir}/memcached
94 %{_includedir}/memcached
97 * Mon Nov
2 2009 Dormando
<dormando@rydia.net
> - 1.4.3-1
100 * Sat Aug
29 2009 Dustin Sallings
<dustin@spy.net
> - 1.4.1-1
101 - Autogenerate the version number from tags.
103 * Wed Jul
4 2007 Paul Lindner
<lindner@inuus.com
> - 1.2.2-5
104 - Use
/var
/run
/memcached
/ directory to hold PID file
106 * Sat May
12 2007 Paul Lindner
<lindner@inuus.com
> - 1.2.2-4
107 - Remove tabs from spec file
, rpmlint reports no more errors
109 * Thu May
10 2007 Paul Lindner
<lindner@inuus.com
> - 1.2.2-3
110 - Enable build
-time regression tests
111 - add dependency on initscripts
112 - remove memcached
-debug
(not needed
in dist
)
113 - above suggestions from Bernard Johnson
115 * Mon May
7 2007 Paul Lindner
<lindner@inuus.com
> - 1.2.2-2
116 - Tidyness improvements suggested by Ruben Kerkhof
in bugzilla
#238994
118 * Fri May
4 2007 Paul Lindner
<lindner@inuus.com
> - 1.2.2-1
119 - Initial spec file created via rpmdev
-newspec