]> git.pld-linux.org Git - packages/memcached.git/blob - memcached.spec
- rel 2
[packages/memcached.git] / memcached.spec
1 # TODO
2 # - memcached has -P option for pid, but root privs are dropped before
3 #   pid is written, so either run memcached as new uid or hack code to
4 #   write pidfile before changing uid, as rc-script removes pid on
5 #   shutdown anyway.
6 Summary:        A high-performance, distributed memory object caching system
7 Summary(pl.UTF-8):      Rozproszony, wysokiej wydajności system cache'owania obiektów
8 Name:           memcached
9 Version:        1.2.1
10 Release:        2
11 License:        BSD
12 Group:          Networking/Daemons
13 Source0:        http://www.danga.com/memcached/dist/%{name}-%{version}.tar.gz
14 # Source0-md5:  6ff64fb974d131fdb7f9d5fdf955dc9a
15 Source1:        %{name}.init
16 Source2:        %{name}.sysconfig
17 URL:            http://www.danga.com/memcached/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  libevent-devel >= 1.1
21 BuildRequires:  rpmbuild(macros) >= 1.268
22 Requires(post,preun):   /sbin/chkconfig
23 Requires:       rc-scripts
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 A high-performance, distributed memory object caching system.
28
29 %description -l pl.UTF-8
30 Rozproszony, wysokiej wydajności system cache'owania obiektów.
31
32 %prep
33 %setup -q
34
35 %build
36 %{__aclocal}
37 %{__autoconf}
38 %{__autoheader}
39 %{__automake}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
46 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
47
48 install memcached $RPM_BUILD_ROOT%{_sbindir}
49 install doc/memcached.1 $RPM_BUILD_ROOT%{_mandir}/man1
50
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
52 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
53
54 %post
55 /sbin/chkconfig --add %{name}
56 %service %{name} restart
57
58 %preun
59 if [ "$1" = "0" ]; then
60         %service -q %{name} stop
61         /sbin/chkconfig --del %{name}
62 fi
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc AUTHORS README TODO doc/*.txt
70 %attr(755,root,root) %{_sbindir}/*
71 %{_mandir}/man1/*
72 %attr(754,root,root) /etc/rc.d/init.d/%{name}
73 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
This page took 0.047975 seconds and 3 git commands to generate.