]> git.pld-linux.org Git - packages/memcached.git/blame - memcached.spec
- up to 1.4.0
[packages/memcached.git] / memcached.spec
CommitLineData
56126164 1Summary: A high-performance, distributed memory object caching system
ee5b4f18 2Summary(pl.UTF-8): Rozproszony, wysokiej wydajności system cache'owania obiektów
56126164 3Name: memcached
ae4347a2 4Version: 1.4.0
19db1c20 5Release: 1
ba4bd57b 6License: BSD
56126164 7Group: Networking/Daemons
ae4347a2 8Source0: http://memcached.googlecode.com/files/%{name}-%{version}.tar.gz
9# Source0-md5: d7651ecb8bf345144cb17900d9a46c85
3a964b8a
AM
10Source1: %{name}.init
11Source2: %{name}.sysconfig
56126164 12URL: http://www.danga.com/memcached/
aebd8fee 13BuildRequires: autoconf
56126164 14BuildRequires: automake
e4a0c888 15BuildRequires: libevent-devel >= 1.1
3a5da022
ER
16BuildRequires: rpmbuild(macros) >= 1.268
17Requires(post,preun): /sbin/chkconfig
371f8914
ER
18Requires(postun): /usr/sbin/groupdel
19Requires(postun): /usr/sbin/userdel
20Requires(pre): /bin/id
21Requires(pre): /usr/bin/getgid
22Requires(pre): /usr/sbin/groupadd
23Requires(pre): /usr/sbin/useradd
ab340080 24Requires: rc-scripts >= 0.4.1.23
371f8914
ER
25Provides: group(memcached)
26Provides: user(memcached)
56126164
MM
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30A high-performance, distributed memory object caching system.
31
1e501250
JR
32%description -l pl.UTF-8
33Rozproszony, wysokiej wydajności system cache'owania obiektów.
56126164
MM
34
35%prep
36%setup -q
37
38%build
39%{__aclocal}
40%{__autoconf}
41%{__autoheader}
42%{__automake}
43%configure
44%{__make}
45
46%install
47rm -rf $RPM_BUILD_ROOT
371f8914 48install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/run/memcached}
3f79a4b3 49install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
3a964b8a 50
3f79a4b3 51install memcached $RPM_BUILD_ROOT%{_sbindir}
56126164
MM
52install doc/memcached.1 $RPM_BUILD_ROOT%{_mandir}/man1
53
3a964b8a
AM
54install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
55install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
56
371f8914
ER
57%pre
58%groupadd -g 209 %{name}
59%useradd -u 209 -d /usr/share/empty -g %{name} -c "Memcached User" %{name}
60
3a964b8a
AM
61%post
62/sbin/chkconfig --add %{name}
63%service %{name} restart
64
65%preun
66if [ "$1" = "0" ]; then
67 %service -q %{name} stop
68 /sbin/chkconfig --del %{name}
69fi
70
371f8914
ER
71%postun
72if [ "$1" = "0" ]; then
73 %userremove %{name}
74 %groupremove %{name}
75fi
76
56126164
MM
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%files
81%defattr(644,root,root,755)
82%doc AUTHORS README TODO doc/*.txt
3a964b8a 83%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
371f8914
ER
84%attr(754,root,root) /etc/rc.d/init.d/%{name}
85%attr(755,root,root) %{_sbindir}/%{name}
86%{_mandir}/man1/memcached.1*
87%dir %attr(770,root,memcached) /var/run/memcached
This page took 0.05936 seconds and 4 git commands to generate.