diff options
| -rw-r--r-- | memcached.spec | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/memcached.spec b/memcached.spec index 5494921..d8b1d2f 100644 --- a/memcached.spec +++ b/memcached.spec @@ -19,22 +19,17 @@ %bcond_without proxy %bcond_without tls %bcond_without selinux -%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9 -%bcond_without sysusers -%else -%bcond_with sysusers -%endif # disable testing as it is unreliable on build systems %bcond_with tests %global selinuxtype targeted %global selinuxmoduletype contrib %global selinuxmodulename memcached -%global selinuxmodulever 1.0.2 +%global selinuxmodulever 1.0.3 %global selinuxmoduledir %{selinuxmodulename}-selinux-%{selinuxmodulever} Name: memcached -Version: 1.6.37 +Version: 1.6.40 Release: 1%{?dist} Epoch: 0 Summary: High Performance, Distributed Memory Object Cache @@ -44,7 +39,7 @@ URL: https://www.memcached.org/ Source0: https://www.memcached.org/files/%{name}-%{version}.tar.gz Source1: memcached.sysconfig # SELinux policy sources: https://pagure.io/memcached-selinux/tree/master -Source2: https://releases.pagure.org/memcached-selinux/memcached-selinux-1.0.2.tar.gz +Source2: https://pagure.io/memcached-selinux/blob/master/f/memcached-selinux-%{selinuxmodulever}.tar.gz # systemd users Source3: memcached.conf # custom unit file (EL-7) @@ -68,12 +63,8 @@ BuildRequires: libseccomp-devel %if %{with tls} BuildRequires: openssl-devel >= 1.1 %endif -%if %{with sysusers} %sysusers_requires_compat BuildRequires: systemd-rpm-macros -%else -Requires(pre): shadow-utils -%endif %{?systemd_requires} %if %{with selinux} @@ -92,10 +83,13 @@ Provides: bundled(mcmc) %if %{with selinux} %package selinux -Summary: Selinux policy module -License: GPL-2.0-only -BuildRequires: selinux-policy -%{?selinux_requires} +Summary: Selinux policy module +License: GPL-2.0-only +BuildArch: noarch +BuildRequires: selinux-policy-devel +Requires: %{name} = %{version}-%{release} +Requires: selinux-policy-%{selinuxtype} +Requires(post): selinux-policy-%{selinuxtype} %description selinux Install memcached-selinux to ensure your system contains the latest SELinux policy @@ -205,9 +199,8 @@ popd # Default configs install -Dp -m0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/sysconfig/%{name} -%if %{with sysusers} +# Systemd users install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/memcached.conf -%endif %if %{with selinux} @@ -228,14 +221,7 @@ fi %endif %pre -%if %{with sysusers} %sysusers_create_compat %{SOURCE3} -%else -getent group %{groupname} >/dev/null || groupadd -r %{groupname} -getent passwd %{username} >/dev/null || \ -useradd -r -g %{groupname} -d /run/memcached \ - -s /sbin/nologin -c "Memcached daemon" %{username} -%endif exit 0 @@ -261,9 +247,7 @@ exit 0 %{_mandir}/man1/memcached.1* %{_unitdir}/memcached.service %{_unitdir}/memcached@.service -%if %{with sysusers} %{_sysusersdir}/memcached.conf -%endif %files devel @@ -280,6 +264,16 @@ exit 0 %changelog +* Wed Dec 17 2025 Remi Collet <remi@remirepo.net> - 1.6.40-1 +- update to 1.6.40 (2025-12-16) + +* Tue Jul 29 2025 Remi Collet <remi@remirepo.net> - 1.6.39-1 +- update to 1.6.39 (2025-07-28) +- update selinux module to 1.0.3 + +* Thu Mar 20 2025 Remi Collet <remi@remirepo.net> - 1.6.38-1 +- update to 1.6.38 (2025-03-19) + * Fri Feb 21 2025 Remi Collet <remi@remirepo.net> - 1.6.37-1 - update to 1.6.37 (2025-02-20) |
