diff options
author | Remi Collet <remi@remirepo.net> | 2025-07-28 16:26:05 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-07-28 16:26:05 +0200 |
commit | 0c91cc86a556cc75c5d46a604a02a3a61f556d0c (patch) | |
tree | 023230e25ecce7e6b52adb2e91e0a9001fa66ec2 | |
parent | caeba1038c681a9b8a33de9b53dc0fa5272729bd (diff) |
-rw-r--r-- | redis.spec | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -18,12 +18,6 @@ # Tests fail in mock, not in local build. %bcond_with tests -%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9 -%bcond_without sysusers -%else -%bcond_with sysusers -%endif - %global upstream_ver 8.0.3 Name: redis @@ -69,12 +63,8 @@ Obsoletes: redis-trib < 8 Obsoletes: redis-doc < 8 Requires: logrotate -%if %{with sysusers} %sysusers_requires_compat BuildRequires: systemd-rpm-macros -%else -Requires(pre): shadow-utils -%endif Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -197,10 +187,8 @@ make %{?_smp_mflags} %{make_flags} all %install make %{make_flags} install -%if %{with sysusers} # System user install -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf -%endif # Install tmpfiles.d file install -p -D -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf @@ -252,15 +240,7 @@ make %{make_flags} test-sentinel %endif %pre -%if %{with sysusers} %sysusers_create_compat %{SOURCE4} -%else -getent group %{name} &> /dev/null || \ -groupadd -r %{name} &> /dev/null -getent passwd %{name} &> /dev/null || \ -useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ --c 'Redis Database Server' %{name} &> /dev/null -%endif exit 0 %if 0%{?fedora} < 34 && 0%{?rhel} < 9 @@ -335,9 +315,7 @@ fi %dir %{_sysconfdir}/systemd/system/%{name}.service.d %dir %{_sysconfdir}/systemd/system/%{name}-sentinel.service.d %dir %attr(0755, redis, redis) %ghost %{_localstatedir}/run/%{name} -%if %{with sysusers} %{_sysusersdir}/%{name}.conf -%endif %{_tmpfilesdir}/%{name}.conf %files devel |