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