From e929178189d3da4673cea4a7b78a486aa832ff5b65e6a8afce2988e1ca5faf94 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 3 Mar 2021 07:13:07 +0000 Subject: [PATCH] Accepting request 876322 from home:13ilya:branches:server:database - Added parameter -p to all install command in spec-file. - Changed file redis.tmpfiles.d file, replaced from /var/run to /run. OBS-URL: https://build.opensuse.org/request/show/876322 OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=168 --- redis.changes | 6 +++++ redis.spec | 57 ++++++++++++++++++++++++------------------------ redis.tmpfiles.d | 2 +- 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/redis.changes b/redis.changes index 2468aae..305fd9d 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 2 22:51:13 UTC 2021 - Илья Индиго + +- Added parameter -p to all install command in spec-file. +- Changed file redis.tmpfiles.d file, replaced from /var/run to /run. + ------------------------------------------------------------------- Tue Mar 2 15:12:59 UTC 2021 - Andreas Stieger diff --git a/redis.spec b/redis.spec index 4c01cd7..a9acbe0 100644 --- a/redis.spec +++ b/redis.spec @@ -25,7 +25,7 @@ Release: 0 Summary: Persistent key-value database License: BSD-3-Clause URL: https://redis.io -Source0: https://download.redis.io/releases/redis-%{version}.tar.gz +Source0: https://download.redis.io/releases/%{name}-%{version}.tar.gz Source1: %{name}.logrotate Source2: %{name}.target Source3: %{name}@.service @@ -72,10 +72,10 @@ echo "`grep -F %{name}-%{version}.tar.gz %{SOURCE10} | cut -d' ' -f4` %{SOURCE0 %build export HOST=OBS # for reproducible builds %make_build CFLAGS="%{optflags}" BUILD_WITH_SYSTEMD=yes BUILD_TLS=yes -%sysusers_generate_pre %{SOURCE9} redis +%sysusers_generate_pre %{SOURCE9} %{name} %install -install -m 0750 -d \ +install -pm0750 -d \ %{buildroot}%{_sbindir} \ %{buildroot}%{_log_dir} \ %{buildroot}%{_data_dir} \ @@ -83,35 +83,35 @@ install -m 0750 -d \ %{buildroot}%{_log_dir}/default \ %{buildroot}%{_data_dir}/default -install -Dpm 0755 src/%{name}-benchmark %{buildroot}%{_bindir}/%{name}-benchmark -install -Dpm 0755 src/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli +install -Dpm0755 src/%{name}-benchmark %{buildroot}%{_bindir}/%{name}-benchmark +install -Dpm0755 src/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli -install -Dpm 0755 src/%{name}-server %{buildroot}%{_sbindir}/%{name}-server +install -Dpm0755 src/%{name}-server %{buildroot}%{_sbindir}/%{name}-server -ln -sfv ../sbin/redis-server %{buildroot}%{_bindir}/%{name}-check-aof -ln -sfv ../sbin/redis-server %{buildroot}%{_bindir}/%{name}-check-rdb -ln -sfv ../sbin/redis-server %{buildroot}%{_sbindir}/%{name}-check-aof -ln -sfv ../sbin/redis-server %{buildroot}%{_sbindir}/%{name}-check-rdb -ln -sfv ../sbin/redis-server %{buildroot}%{_sbindir}/%{name}-sentinel +ln -sfv ../sbin/redis-server %{buildroot}%{_bindir}/%{name}-check-aof +ln -sfv ../sbin/redis-server %{buildroot}%{_bindir}/%{name}-check-rdb +ln -sfv ../sbin/redis-server %{buildroot}%{_sbindir}/%{name}-check-aof +ln -sfv ../sbin/redis-server %{buildroot}%{_sbindir}/%{name}-check-rdb +ln -sfv ../sbin/redis-server %{buildroot}%{_sbindir}/%{name}-sentinel perl -p -i -e 's|daemonize yes|daemonize no|g' %{name}.conf -install -Dm 0640 redis.conf %{buildroot}%{_conf_dir}/default.conf.example -install -Dm 0660 sentinel.conf %{buildroot}%{_conf_dir}/sentinel.conf.example +install -Dpm0640 redis.conf %{buildroot}%{_conf_dir}/default.conf.example +install -Dpm0660 sentinel.conf %{buildroot}%{_conf_dir}/sentinel.conf.example # some sysctl stuff -install -Dm 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysctl.d/00-%{name}.conf -install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} -install -Dm 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.target -install -Dm 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}@.service -install -Dm 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf -install -Dm 0644 %{SOURCE7} %{buildroot}%{_unitdir}/%{name}-sentinel@.service -install -Dm 0644 %{SOURCE8} %{buildroot}%{_unitdir}/%{name}-sentinel.target +install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysctl.d/00-%{name}.conf +install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} +install -Dpm0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.target +install -Dpm0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}@.service +install -Dpm0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf +install -Dpm0644 %{SOURCE7} %{buildroot}%{_unitdir}/%{name}-sentinel@.service +install -Dpm0644 %{SOURCE8} %{buildroot}%{_unitdir}/%{name}-sentinel.target -ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} cp %{SOURCE5} README.SUSE mkdir -p %{buildroot}%{_sysusersdir} -install -m 644 %{SOURCE9} %{buildroot}%{_sysusersdir}/ +install -pm0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/ %check cat <