2007-01-16 00:25:01 +01:00
|
|
|
#
|
2008-09-08 01:33:00 +02:00
|
|
|
# spec file for package memcached (Version 1.2.6)
|
2007-01-16 00:25:01 +01:00
|
|
|
#
|
2008-06-23 23:17:52 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:25:01 +01:00
|
|
|
#
|
2008-09-08 01:33:00 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:25:01 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-23 23:17:52 +02:00
|
|
|
|
2007-01-16 00:25:01 +01:00
|
|
|
Name: memcached
|
2008-09-08 01:33:00 +02:00
|
|
|
Version: 1.2.6
|
2007-08-05 11:44:40 +02:00
|
|
|
Release: 1
|
|
|
|
%define pkg_name memcached
|
2008-06-23 23:17:52 +02:00
|
|
|
%define pkg_version %{version}
|
2007-08-05 11:44:40 +02:00
|
|
|
#
|
|
|
|
License: BSD 3-Clause
|
2007-01-16 00:25:01 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2007-08-05 11:44:40 +02:00
|
|
|
#
|
2007-01-16 00:25:01 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-08-05 11:44:40 +02:00
|
|
|
BuildRequires: libevent
|
|
|
|
PreReq: %insserv_prereq %fillup_prereq /usr/sbin/groupadd /usr/sbin/useradd
|
|
|
|
Conflicts: memcached-unstable
|
|
|
|
%define home_dir /var/lib/%{pkg_name}
|
|
|
|
#
|
2008-06-23 23:17:52 +02:00
|
|
|
Url: http://www.danga.com/memcached/
|
|
|
|
# http://www.danga.com/memcached/dist/%{pkg_name}-%{pkg_version}.tar.gz
|
|
|
|
Source: http://www.danga.com/memcached/dist/%{pkg_name}-%{pkg_version}.tar.bz2
|
2007-08-05 11:44:40 +02:00
|
|
|
Source1: %{pkg_name}.init
|
|
|
|
Source2: %{pkg_name}.sysconfig
|
|
|
|
Source3: memcached-rpmlintrc
|
|
|
|
#
|
|
|
|
Summary: A high-performance, distributed memory object caching system
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%description
|
2007-08-05 11:44:40 +02:00
|
|
|
Memcached is a high-performance, distributed memory object caching
|
2007-01-16 00:25:01 +01:00
|
|
|
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>
|
|
|
|
|
|
|
|
%prep
|
2007-08-05 11:44:40 +02:00
|
|
|
%setup -n %{pkg_name}-%{pkg_version}
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%build
|
2007-08-05 11:44:40 +02:00
|
|
|
export CFLAGS="%{optflags} -g"
|
2007-01-16 00:25:01 +01:00
|
|
|
%configure --bindir=%{_sbindir}
|
|
|
|
%{__make}
|
|
|
|
|
2007-08-05 11:44:40 +02:00
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
2007-01-16 00:25:01 +01:00
|
|
|
%install
|
|
|
|
%makeinstall
|
2007-08-05 11:44:40 +02:00
|
|
|
%{__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}
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%clean
|
2007-08-05 11:44:40 +02:00
|
|
|
%{__rm} -rf %{buildroot};
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%pre
|
2007-08-05 11:44:40 +02:00
|
|
|
/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 || :
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%post
|
2007-08-05 11:44:40 +02:00
|
|
|
%fillup_and_insserv %{pkg_name}
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%preun
|
2007-08-05 11:44:40 +02:00
|
|
|
%stop_on_removal %{pkg_name}
|
2007-01-16 00:25:01 +01:00
|
|
|
|
|
|
|
%postun
|
2007-08-05 11:44:40 +02:00
|
|
|
%restart_on_update %{pkg_name}
|
2007-01-16 00:25:01 +01:00
|
|
|
%{insserv_cleanup}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO doc/*.txt
|
2007-08-05 11:44:40 +02:00
|
|
|
%{_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
|
2008-09-08 01:33:00 +02:00
|
|
|
* Sat Sep 06 2008 mrueckert@suse.de
|
|
|
|
- Update to version 1.2.6:
|
|
|
|
Major crash fixes, DTrace support, minor updates. If you have
|
|
|
|
stability issues with any previous release, please upgrade to
|
|
|
|
this one.
|
2008-06-23 23:17:52 +02:00
|
|
|
* Mon May 19 2008 mrueckert@suse.de
|
|
|
|
- Update to version 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.
|
|
|
|
* Tue Jan 29 2008 mrueckert@suse.de
|
|
|
|
- Update to version 1.2.4:
|
|
|
|
Many bug and platform fixes since 1.2.2. New threading support
|
|
|
|
for stat queries. New commands 'append', 'prepend', 'gets', and
|
|
|
|
'cas'.
|
|
|
|
* Sat Aug 04 2007 mrueckert@suse.de
|
2007-08-05 11:44:40 +02:00
|
|
|
- fixed a few rpmlint warnings
|
2008-06-23 23:17:52 +02:00
|
|
|
* Sat May 26 2007 mrueckert@suse.de
|
2007-08-05 11:44:40 +02:00
|
|
|
- Update to version 1.2.2:
|
|
|
|
Memcached can be configured to support multithreading. Big code
|
|
|
|
cleanup with performance improvements. Memcached now collects
|
|
|
|
eviction and per-object-type statistics.
|
|
|
|
- synced with memcached-unstable
|
2008-06-23 23:17:52 +02:00
|
|
|
* Wed Dec 06 2006 mrueckert@suse.de
|
2007-08-05 11:44:40 +02:00
|
|
|
- Update to version 1.2.1:
|
|
|
|
o mainly fixes a stability issue reported on the mailinglist
|
|
|
|
o a few optimization fixes
|
|
|
|
- removed autoreconf -fi for now
|
|
|
|
- build debuginfo
|
2008-06-23 23:17:52 +02:00
|
|
|
* Wed Nov 15 2006 mrueckert@suse.de
|
2007-08-05 11:44:40 +02:00
|
|
|
- added Conflicts: memcached-unstable
|
2008-06-23 23:17:52 +02:00
|
|
|
* Sun Nov 12 2006 lmuelle@suse.de
|
2007-01-16 00:25:01 +01:00
|
|
|
- Fix typo in sysconfig file.
|
2008-06-23 23:17:52 +02:00
|
|
|
* Sun Sep 10 2006 mrueckert@suse.de
|
2007-08-05 11:44:40 +02:00
|
|
|
- Update to version 1.1.13:
|
|
|
|
o test suite (make test)
|
|
|
|
o better libevent detection
|
|
|
|
o 64 bit support (passes test suite at least now)
|
|
|
|
o off-by-one errors in expirations fixed
|
|
|
|
o bug fixes
|
|
|
|
o start of "vbuckets" project. instead of clients hashing
|
|
|
|
a key onto a memcached instance, they map onto one of
|
|
|
|
16k or so virtual bucket numbers, each bucket of which
|
|
|
|
is owned by an instance and w/ a particular generation number.
|
|
|
|
no client or tracker exists yet, but low-level stuff is there.
|
2008-06-23 23:17:52 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:25:01 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-06-23 23:17:52 +02:00
|
|
|
* Thu Aug 18 2005 mrueckert@suse.de
|
2007-01-16 00:25:01 +01:00
|
|
|
- Initial package with version 1.1.12
|