forked from pool/memcached
Dirk Mueller
06d97b6046
* Speeds up displaying stats proxy when many user defined counters are used. * If a user counter changes name, it will be reset to zero. * Allows overriding commands either by key prefix or specific command. * see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1629 - update to 1.6.28: * Fixes unfortunate potentially critical use-after-free bug in the proxy mode that was introduced in 1.6.27. The bug is difficult to trigger but if you are on 1.6.27 upgrading is strongly recommended. * Also adds experimental support for TLS to proxy backends. Please let us know if you intend to use this feature as it has only received limited testing; we will prioritize further work if folks are interested in using it. * memcached-tool: add -u flag to unescape special chars in keys names * proxy: add counters for VM memory and GC runs * see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1628 - update to 1.6.27: * Many proxy updates, including a critical stability fix for users of the newer style request API. * Adds new meta protocol extensions: + Ecas: If specified and request succeeds, uses supplied number for the CAS value of the item. This allows using external versioning for cache data (ie; row versions, crc's, etc). + x flag for md: This flag causes md to atomically replace the value with the same meta data, but 0 byte value. Can be combined with I to make an empty item that is marked stale. * see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1627 - update to 1.6.26: * Fixes a crash when lru_crawler metadump is used and the client connection is closed early. Requires closing the client exactly before the last few kilobytes of a dump are about to be flushed. OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=113
183 lines
4.8 KiB
RPMSpec
183 lines
4.8 KiB
RPMSpec
#
|
|
# spec file for package memcached
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
%if ! %{defined _fillupdir}
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
%endif
|
|
%if 0%{?suse_version} > 1500
|
|
%bcond_without tls
|
|
%else
|
|
%bcond_with tls
|
|
%endif
|
|
%if 0%{?suse_version} >= 1500
|
|
%bcond_without sysusers
|
|
%bcond_without tmpfiles
|
|
%else
|
|
%bcond_with sysusers
|
|
%bcond_with tmpfiles
|
|
%endif
|
|
Name: memcached
|
|
Version: 1.6.29
|
|
Release: 0
|
|
Summary: A high-performance, distributed memory object caching system
|
|
License: BSD-3-Clause
|
|
Group: Productivity/Networking/Other
|
|
URL: https://memcached.org/
|
|
Source: https://www.memcached.org/files/%{name}-%{version}.tar.gz
|
|
Source2: %{name}.sysconfig
|
|
Source4: memcached.service
|
|
Source5: %{name}-sysusers.conf
|
|
Source6: %{name}-tmpfiles.conf
|
|
Patch0: harden_memcached.service.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: cyrus-sasl-devel
|
|
BuildRequires: libevent-devel >= 2.0
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
Requires(pre): %fillup_prereq
|
|
Conflicts: memcached-unstable
|
|
%if %{with tls}
|
|
BuildRequires: openssl-devel >= 1.1.0
|
|
BuildRequires: perl
|
|
BuildRequires: perl-IO-Socket-SSL
|
|
BuildRequires: perl-Net-SSLeay
|
|
%endif
|
|
%if %{with sysusers}
|
|
BuildRequires: sysuser-tools
|
|
%sysusers_requires
|
|
%else
|
|
Requires(pre): %{_sbindir}/groupadd
|
|
Requires(pre): %{_sbindir}/useradd
|
|
%endif
|
|
%if 0%{?suse_version} > 1210
|
|
BuildRequires: systemd-rpm-macros
|
|
%{?systemd_ordering}
|
|
%else
|
|
Requires(pre): %insserv_prereq
|
|
%endif
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
Summary: Files needed for development using memcached protocol
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
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.
|
|
|
|
This package contains development files
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
autoreconf -fi
|
|
%configure \
|
|
%if %{with tls}
|
|
--enable-tls \
|
|
%endif
|
|
--enable-sasl \
|
|
--enable-sasl-pwdb \
|
|
--enable-seccomp \
|
|
--disable-coverage \
|
|
%ifarch s390 s390x ppc ppc64
|
|
--disable-extstore
|
|
%endif
|
|
|
|
%make_build
|
|
%if %{with sysusers}
|
|
%sysusers_generate_pre %{SOURCE5} %{name} %{name}-user.conf
|
|
%endif
|
|
|
|
%install
|
|
%make_install
|
|
install -D -m 0755 scripts/memcached-tool %{buildroot}%{_bindir}/memcached-tool
|
|
install -Dd -m 0751 %{buildroot}%{_localstatedir}/lib/%{name}
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
|
|
%if %{with sysusers}
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}-user.conf
|
|
%endif
|
|
%if %{with tmpfiles}
|
|
install -D -m 0644 %{SOURCE6} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
%endif
|
|
|
|
%check
|
|
%make_build test
|
|
|
|
%if %{with sysusers}
|
|
%pre -f memcached.pre
|
|
%else
|
|
|
|
%pre
|
|
getent group %{name} >/dev/null || \
|
|
%{_sbindir}/groupadd -r %{name}
|
|
getent passwd %{name} >/dev/null || \
|
|
%{_sbindir}/useradd -g %{name} -s /bin/false -r \
|
|
-c "user for %{name}" -d %{_localstatedir}/lib/%{name} %{name}
|
|
%endif
|
|
%service_add_pre %{name}.service
|
|
|
|
%post
|
|
%service_add_post %{name}.service
|
|
%fillup_only %{name}
|
|
%if %{with tmpfiles}
|
|
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
|
%endif
|
|
|
|
%preun
|
|
%service_del_preun %{name}.service
|
|
|
|
%postun
|
|
%service_del_postun %{name}.service
|
|
|
|
%files
|
|
%doc AUTHORS ChangeLog NEWS
|
|
%license COPYING
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/memcached-tool
|
|
%{_sbindir}/rc%{name}
|
|
%{_mandir}/man1/%{name}.*
|
|
%{_unitdir}/%{name}.service
|
|
%{_fillupdir}/sysconfig.%{name}
|
|
%dir %attr(751,root,root) %{_localstatedir}/lib/%{name}
|
|
%if %{with sysusers}
|
|
%{_sysusersdir}/%{name}-user.conf
|
|
%endif
|
|
%if %{with tmpfiles}
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
%dir %ghost %{_rundir}/%{name}
|
|
%endif
|
|
|
|
%files devel
|
|
%doc AUTHORS ChangeLog NEWS doc/*.txt
|
|
%license COPYING
|
|
%{_includedir}/%{name}
|
|
|
|
%changelog
|