From 8d79cc8c7993e320c5e0d990ce000bdd0cc3bbec8d7fb4809f54058c5295d007 Mon Sep 17 00:00:00 2001 From: David Anes Date: Tue, 21 Jun 2022 14:15:36 +0000 Subject: [PATCH] Accepting request 984196 from home:schubi2 - Moved logrotate files from user specific directory /etc/logrotate.d to vendor specific directory /usr/etc/logrotate.d. OBS-URL: https://build.opensuse.org/request/show/984196 OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=133 --- fetchmail.changes | 6 ++++++ fetchmail.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/fetchmail.changes b/fetchmail.changes index 7db85a0..ca55ba7 100644 --- a/fetchmail.changes +++ b/fetchmail.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 21 13:43:53 UTC 2022 - Stefan Schubert + +- Moved logrotate files from user specific directory /etc/logrotate.d + to vendor specific directory /usr/etc/logrotate.d. + ------------------------------------------------------------------- Thu Apr 28 10:16:07 UTC 2022 - David Anes diff --git a/fetchmail.spec b/fetchmail.spec index a5563af..5c309f5 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -113,8 +113,14 @@ export CFLAGS="%{optflags} -fPIE" %install %make_install ln -sf fetchmail.1.gz %{buildroot}%{_mandir}/man1/fetchmailconf.1.gz +%if 0%{?suse_version} > 1500 +mkdir -p %{buildroot}%{_sysconfdir} +mkdir -p %{buildroot}%{_distconfdir}/logrotate.d +cp fetchmail.logrotate %{buildroot}%{_distconfdir}/logrotate.d/fetchmail +%else mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d cp fetchmail.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/fetchmail +%endif mkdir -p %{buildroot}/sbin mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_tmpfilesdir} @@ -163,7 +169,11 @@ rm -r contrib/gai* %ghost %attr(0600, fetchmail, root) %{_localstatedir}/log/fetchmail %{_mandir}/man1/fetchmail.1%{?ext_man} %ghost %config(noreplace) %attr(0600, fetchmail, root) %{_sysconfdir}/fetchmailrc +%if 0%{?suse_version} > 1500 +%{_distconfdir}/logrotate.d/fetchmail +%else %config(noreplace) %{_sysconfdir}/logrotate.d/fetchmail +%endif %{_unitdir}/%{name}.service %{_sbindir}/rc%{name} %{_libexecdir}/%{name}-systemd-exec