Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
memcached
> memcached.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File memcached.spec of Package memcached (Revision 5)
Currently displaying revision
5
,
show latest
# # spec file for package memcached (Version 1.2.5) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: memcached Version: 1.2.5 Release: 0 %define pkg_name memcached %define pkg_version 1.2.5 # License: BSD License and BSD-like Group: Productivity/Networking/Other # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libevent %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: libevent-devel %endif %if 0%{?suse_version} PreReq: %insserv_prereq %fillup_prereq /usr/sbin/groupadd /usr/sbin/useradd %endif Conflicts: memcached-unstable %define home_dir /var/lib/%{pkg_name} # Url: http://www.danga.com/memcached/ Source: http://www.danga.com/memcached/dist/%{pkg_name}-%{pkg_version}.tar.gz Source1: %{pkg_name}.init Source2: %{pkg_name}.sysconfig Source3: memcached-rpmlintrc # Summary: A high-performance, distributed memory object caching system %description Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Danga Interactive developed memcached to enhance the speed of LiveJournal.com, a site which was already doing 20 million+ dynamic page views per day for 1 million users with a bunch of webservers and a bunch of database servers. memcached dropped the database load to almost nothing, yielding faster page load times for users, better resource utilization, and faster access to the databases on a memcache miss. Authors: -------- Brad Fitzpatrick <brad@danga.com> %debug_package %prep %setup -n %{pkg_name}-%{pkg_version} %build export CFLAGS="%{optflags} -g" %configure --bindir=%{_sbindir} %{__make} %check %{__make} test %install %makeinstall %{__install} -D -m 0755 scripts/memcached-tool %{buildroot}%{_sbindir}/memcached-tool %{__install} -Dd -m 0755 %{buildroot}%{home_dir} %{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{pkg_name} %{__ln_s} -f ../..%{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} %{__install} -D -m 0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.%{pkg_name} %clean %{__rm} -rf %{buildroot}; %pre /usr/sbin/groupadd -r %{pkg_name} &>/dev/null || : /usr/sbin/useradd -o -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{home_dir} %{pkg_name} &>/dev/null || : %post %fillup_and_insserv %{pkg_name} %preun %stop_on_removal %{pkg_name} %postun %restart_on_update %{pkg_name} %{insserv_cleanup} %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README TODO doc/*.txt %{_sbindir}/%{pkg_name} %{_sbindir}/%{pkg_name}-debug %{_sbindir}/memcached-tool %{_sbindir}/rc%{pkg_name} %{_mandir}/man1/%{pkg_name}.* %{_sysconfdir}/init.d/%{pkg_name} /var/adm/fillup-templates/sysconfig.%{pkg_name} %dir %attr(755,root,root) %{home_dir} %changelog *Wed 12 Mar 2008 Carsten Schoene <cs@linux-administrator.com> - version bump to 1.2.5 - Minor bugfixes - build support for opensolaris - ipv6 support - "noreply" mode for many commands - largepage support for solaris - Made out of memory errors more clear and added eviction/OOM tracking per slab class