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