]> git.pld-linux.org Git - packages/memcached.git/blobdiff - memcached.spec
- up to 1.4.2
[packages/memcached.git] / memcached.spec
index a019b06e99f25b28d265c650e6bfa330c09993a2..1a62d70eaaac42d202731b55624f6eabc568ea70 100644 (file)
@@ -1,28 +1,36 @@
-#
 Summary:       A high-performance, distributed memory object caching system
-Summary(pl):   Rozproszony system cache'owania obiektów o wysokiej wydajno¶ci
+Summary(pl.UTF-8):     Rozproszony, wysokiej wydajności system cache'owania obiektów
 Name:          memcached
-Version:       1.1.12
+Version:       1.4.2
 Release:       1
-Epoch:         0
 License:       BSD
-Vendor:                Brad Fitzpatrick <brad@danga.com>
 Group:         Networking/Daemons
-Source0:       http://www.danga.com/memcached/dist/%{name}-%{version}.tar.gz
-# Source0-md5: a1236dad33e9ac6c36d53faa8da61780
+Source0:       http://memcached.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5: 31caa3e74f2714ba49475b1df44bc315
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 URL:           http://www.danga.com/memcached/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libevent-devel
+BuildRequires: libevent-devel >= 1.1
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires:      rc-scripts >= 0.4.1.23
+Provides:      group(memcached)
+Provides:      user(memcached)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 A high-performance, distributed memory object caching system.
 
-%description -l pl
-Rozproszony system cache'owania obiektów o wysokiej wydajno¶ci.
+%description -l pl.UTF-8
+Rozproszony, wysokiej wydajności system cache'owania obiektów.
 
 %prep
 %setup -q
@@ -32,12 +40,13 @@ Rozproszony system cache'owania obiekt
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --disable-coverage
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/run/memcached}
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
 
 install memcached $RPM_BUILD_ROOT%{_sbindir}
@@ -46,6 +55,10 @@ install doc/memcached.1 $RPM_BUILD_ROOT%{_mandir}/man1
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 
+%pre
+%groupadd -g 209 %{name}
+%useradd -u 209 -d /usr/share/empty -g %{name} -c "Memcached User" %{name}
+
 %post
 /sbin/chkconfig --add %{name}
 %service %{name} restart
@@ -56,13 +69,20 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del %{name}
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+       %userremove %{name}
+       %groupremove %{name}
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS README TODO doc/*.txt
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man1/*
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%doc AUTHORS README doc/*.txt
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%attr(755,root,root) %{_sbindir}/%{name}
+%{_mandir}/man1/memcached.1*
+%dir %attr(770,root,memcached) /var/run/memcached
This page took 0.108975 seconds and 4 git commands to generate.