]> git.pld-linux.org Git - packages/memcached.git/blame_incremental - memcached.spec
- update to 1.2.1
[packages/memcached.git] / memcached.spec
... / ...
CommitLineData
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.
6Summary: A high-performance, distributed memory object caching system
7Summary(pl.UTF-8): Rozproszony, wysokiej wydajności system cache'owania obiektów
8Name: memcached
9Version: 1.2.1
10Release: 1
11License: BSD
12Group: Networking/Daemons
13Source0: http://www.danga.com/memcached/dist/%{name}-%{version}.tar.gz
14# Source0-md5: 6ff64fb974d131fdb7f9d5fdf955dc9a
15Source1: %{name}.init
16Source2: %{name}.sysconfig
17URL: http://www.danga.com/memcached/
18BuildRequires: autoconf
19BuildRequires: automake
20BuildRequires: libevent-devel >= 1.1
21BuildRequires: rpmbuild(macros) >= 1.268
22Requires(post,preun): /sbin/chkconfig
23Requires: rc-scripts
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27A high-performance, distributed memory object caching system.
28
29%description -l pl.UTF-8
30Rozproszony, 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
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
46install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
47
48install memcached $RPM_BUILD_ROOT%{_sbindir}
49install doc/memcached.1 $RPM_BUILD_ROOT%{_mandir}/man1
50
51install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
52install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
53
54%post
55/sbin/chkconfig --add %{name}
56%service %{name} restart
57
58%preun
59if [ "$1" = "0" ]; then
60 %service -q %{name} stop
61 /sbin/chkconfig --del %{name}
62fi
63
64%clean
65rm -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.059478 seconds and 4 git commands to generate.