From b43dbdfffaf3b4e00a18a918e4bea8f9618361c86fb86869a3c0a0021e01292c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20=C4=8C=C3=AD=C5=BEek?= Date: Wed, 21 May 2014 12:22:56 +0000 Subject: [PATCH] Accepting request 234980 from home:jsegitz:branches:server:mail - added necessary macros for systemd files OBS-URL: https://build.opensuse.org/request/show/234980 OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=54 --- fetchmail.changes | 5 +++++ fetchmail.spec | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/fetchmail.changes b/fetchmail.changes index 7423e45..4a66cb6 100644 --- a/fetchmail.changes +++ b/fetchmail.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 21 09:51:34 UTC 2014 - jsegitz@novell.com + +- added necessary macros for systemd files + ------------------------------------------------------------------- Sun Oct 27 18:18:54 UTC 2013 - p.drouand@gmail.com diff --git a/fetchmail.spec b/fetchmail.spec index f44b320..b68435a 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -1,7 +1,7 @@ # # spec file for package fetchmail # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,13 @@ Name: fetchmail BuildRequires: automake +BuildRequires: krb5-devel BuildRequires: openssl-devel BuildRequires: opie BuildRequires: postfix BuildRequires: procmail BuildRequires: pwdutils BuildRequires: python-devel -BuildRequires: krb5-devel %if 0%{?suse_version} > 1220 BuildRequires: gpg-offline %endif @@ -144,6 +144,9 @@ rm -r contrib/gai* %pre usr/sbin/useradd -r -g daemon -s /bin/false \ -c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || : +%if 0%{?suse_version} >=1230 + %service_add_pre %{name}.service +%endif %post %if 0%{?suse_version} >=1230 @@ -157,6 +160,11 @@ touch var/log/fetchmail chown fetchmail var/log/fetchmail chmod 0600 var/log/fetchmail +%preun +%if 0%{?suse_version} >=1230 + %service_del_preun %{name}.service +%endif + %postun %if 0%{?suse_version} >=1230 %service_del_postun %{name}.service