memcached/memcached.spec

183 lines
4.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package memcached
#
Accepting request 1142485 from home:dirkmueller:Factory - update to 1.6.23: * https://github.com/memcached/memcached/wiki/ReleaseNotes1623 - fixes [bsc#1216699] (CVE-2023-46852) * proxy: add memory accounting tracking * Meta protocol has some adjusments: extra spaces were * extstore: make defaults more aggressive * Fix error message on conflicting ports while using '-l' * core: remove cdefs include from queue.h * The total number of UDP datagrams required for the message is calculated * The meta protocol can now transmit binary encoded keys by encoding the * Fix TCP failure under OS X. - Mention that this stream isn't affected by bsc#1085209, - Replace references to /var/adm/fillup-templates with new * Please read the news at * issue#370 : slab re-balance is not thread-safe in function - update to 1.4.20 - freshed memcached-autofoo.patch * Reduce odds of getting OOM errors in some odd cases - Update to version 1.4.14 * Better detection of sasl_callback_ft * fix slabs_reassign tests on 32bit hosts * Fix to build with cyrus sasl 2.1.25 * Slab page reassignment and bug fixes over 1.4.10. * Allow all tests to run as root * Fix -c so maxconns can be raised above default. * Fix compile error on OS X * Issue 200 : Don't fire dtrace probe as the last thing in a function * Fix compilation issue on Solaris 9 wrt isspace() macro - Resolves issue 111 OBS-URL: https://build.opensuse.org/request/show/1142485 OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=106
2024-01-29 18:18:15 +01:00
# 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
Accepting request 1142485 from home:dirkmueller:Factory - update to 1.6.23: * https://github.com/memcached/memcached/wiki/ReleaseNotes1623 - fixes [bsc#1216699] (CVE-2023-46852) * proxy: add memory accounting tracking * Meta protocol has some adjusments: extra spaces were * extstore: make defaults more aggressive * Fix error message on conflicting ports while using '-l' * core: remove cdefs include from queue.h * The total number of UDP datagrams required for the message is calculated * The meta protocol can now transmit binary encoded keys by encoding the * Fix TCP failure under OS X. - Mention that this stream isn't affected by bsc#1085209, - Replace references to /var/adm/fillup-templates with new * Please read the news at * issue#370 : slab re-balance is not thread-safe in function - update to 1.4.20 - freshed memcached-autofoo.patch * Reduce odds of getting OOM errors in some odd cases - Update to version 1.4.14 * Better detection of sasl_callback_ft * fix slabs_reassign tests on 32bit hosts * Fix to build with cyrus sasl 2.1.25 * Slab page reassignment and bug fixes over 1.4.10. * Allow all tests to run as root * Fix -c so maxconns can be raised above default. * Fix compile error on OS X * Issue 200 : Don't fire dtrace probe as the last thing in a function * Fix compilation issue on Solaris 9 wrt isspace() macro - Resolves issue 111 OBS-URL: https://build.opensuse.org/request/show/1142485 OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=106
2024-01-29 18:18:15 +01:00
Version: 1.6.23
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
Accepting request 934397 from home:AdaLovelace:branches:openSUSE:Factory:zSystems - update to 1.6.12: * add queue.h in archive * Expose number of currently active watchers in stats * Configurable minimum supported TLS protocol version * core: fix hang bug in extstore * thread: use eventfd for worker notify if available * thread: per-worker-thread connection event queues * core: cache.c cleanups, use queue.h freelist * core: add queue.h to replace handrolled queues. * logger: simplify logging code * logger: avoid polling without watchers * Implement LOG_CONNEVENTS watcher flag for connection state transitions * Report item sizes for fetch, mutation, and eviction watchers * Fix typos in doc/code comments (tem->item, etc) * "watch connevents" will show realtime log entries about client connect/ disconnect events. * Fix minor severity heap buffer overflow reading --auth-file * stats_prefix.c: Check for NDEBUG before using total_written variable * Add settings stat for shutdown_command enabled * [docker] Add user and expose the memcached port * meta: remove EXPERIMENTAL mark + doc fixes * meta: response code OK -> HD * meta: fix metaset syntax * meta: repairs to mset command * hash: add XXH3 to list of hash algorithms. * fix arm64 crc32 on old glibc/gcc. * extstore: fix crash on 'stats extstore' * seccomp: extend allowed rules for extended usage * The total number of UDP datagrams required for the message is calculated incorrectly. * meta: allow base64'ed binary keys with 'b' flag * small improvements to readme * Added debugtime command for test suite * The meta protocol can now transmit binary encoded keys by encoding the key in base64 and sending a 'b' flag with the command OBS-URL: https://build.opensuse.org/request/show/934397 OBS-URL: https://build.opensuse.org/package/show/network:utilities/memcached?expand=0&rev=87
2021-12-05 20:05:44 +01:00
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