diff --git a/redis.changes b/redis.changes index 51a02c5..f4e1fda 100644 --- a/redis.changes +++ b/redis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 29 10:54:08 UTC 2022 - Stefan Schubert + +- Moved logrotate files from user specific directory /etc/logrotate.d + to vendor specific directory /usr/etc/logrotate.d. + ------------------------------------------------------------------- Sun Jun 12 16:30:32 UTC 2022 - Michael Ströder diff --git a/redis.spec b/redis.spec index 9151746..4830164 100644 --- a/redis.spec +++ b/redis.spec @@ -104,7 +104,12 @@ install -Dpm0660 sentinel.conf %{buildroot}%{_conf_dir}/sentinel.conf.e # some sysctl stuff install -Dpm0644 %{SOURCE6} %{buildroot}/%{_prefix}/lib/sysctl.d/00-%{name}.conf +%if 0%{?suse_version} > 1500 +mkdir -p %{buildroot}%{_distconfdir}/logrotate.d +install -Dpm0644 %{SOURCE1} %{buildroot}%{_distconfdir}/logrotate.d/%{name} +%else install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} +%endif install -Dpm0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.target install -Dpm0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}@.service install -Dpm0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf @@ -144,7 +149,11 @@ echo "See %{_docdir}/%{name}/README.SUSE to continue" %files %license COPYING %doc 00-RELEASENOTES BUGS CONTRIBUTING README.md +%if 0%{?suse_version} > 1500 +%{_distconfdir}/logrotate.d/%{name} +%else %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +%endif %{_prefix}/lib/sysctl.d/00-%{name}.conf %{_bindir}/%{name}-* %{_sbindir}/%{name}-*