From 0e5585bd546cd625e983aeee0c0aaae25a22e812690fc2fa1bc1f285a67fe163 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Thu, 22 May 2014 12:50:35 +0000 Subject: [PATCH] Accepting request 234870 from home:jsegitz:branches:network - ensure proper handling of .service files with %service_add_pre OBS-URL: https://build.opensuse.org/request/show/234870 OBS-URL: https://build.opensuse.org/package/show/network/ddclient?expand=0&rev=33 --- ddclient.changes | 5 +++++ ddclient.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ddclient.changes b/ddclient.changes index cea5829..e799497 100644 --- a/ddclient.changes +++ b/ddclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 20 14:29:35 UTC 2014 - jsegitz@novell.com + +- ensure proper handling of .service files with %service_add_pre + ------------------------------------------------------------------- Tue Dec 31 17:02:59 UTC 2013 - benoit.monin@gmx.fr diff --git a/ddclient.spec b/ddclient.spec index e8665ec..c2bd0a6 100644 --- a/ddclient.spec +++ b/ddclient.spec @@ -1,7 +1,7 @@ # # spec file for package ddclient # -# 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 @@ -88,6 +88,11 @@ mv sample-* examples %{__install} -m 644 %{SOURCE2} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} %{__install} -d -m 755 %{buildroot}/var/cache/%{name} +%pre +%if 0%{?suse_version} >=1230 +%service_add_pre %{name}.service +%endif + %post %{fillup_only} %if 0%{?suse_version} >=1230