Hello community,

here is the log from the commit of package hp-drive-guard for openSUSE:Factory 
checked in at 2012-11-12 07:03:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hp-drive-guard (Old)
 and      /work/SRC/openSUSE:Factory/.hp-drive-guard.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hp-drive-guard", Maintainer is "h...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/hp-drive-guard/hp-drive-guard.changes    
2011-09-23 02:02:55.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.hp-drive-guard.new/hp-drive-guard.changes       
2012-11-12 07:03:17.000000000 +0100
@@ -1,0 +2,5 @@
+Fri Nov  9 15:53:46 CET 2012 - ti...@suse.de
+
+- Add systemd unit file
+
+-------------------------------------------------------------------

New:
----
  hp-drive-guard.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hp-drive-guard.spec ++++++
--- /var/tmp/diff_new_pack.ZdXA9U/_old  2012-11-12 07:03:19.000000000 +0100
+++ /var/tmp/diff_new_pack.ZdXA9U/_new  2012-11-12 07:03:19.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hp-drive-guard
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -15,11 +15,11 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 %define new_polkit     (%suse_version >= 1140)
 %define use_upower     (%suse_version > 1120)
 %define use_gtk3       (%suse_version > 1140)
+%define with_systemd   (%suse_version > 1140)
 
 %if %{new_polkit}
 %define polkitdir      %{_datadir}/polkit-1/actions
@@ -28,14 +28,16 @@
 %endif
 
 Name:           hp-drive-guard
-BuildRequires:  fdupes gnome-common intltool
+BuildRequires:  fdupes
+BuildRequires:  gnome-common
+BuildRequires:  intltool
 %if %{use_gtk3}
 BuildRequires:  gtk3-devel
 %else
 BuildRequires:  gtk2-devel
 %endif
-BuildRequires:  libnotify-devel
 BuildRequires:  dbus-1-glib-devel
+BuildRequires:  libnotify-devel
 BuildRequires:  libxslt
 %if %{new_polkit}
 BuildRequires:  polkit-devel
@@ -49,12 +51,17 @@
 %endif
 # BuildRequires:  scrollkeeper
 BuildRequires:  update-desktop-files
-License:        GPL-2.0+
-Group:          Hardware/Mobile
+%if %{with_systemd}
+BuildRequires:  pkgconfig(systemd)
+%{?systemd_requires}
+%endif
 Version:        0.3.12
-Release:        8
+Release:        0
 Summary:        HP DriveGuard for SuSE
+License:        GPL-2.0+
+Group:          Hardware/Mobile
 Source:         hp-drive-guard-%{version}.tar.bz2
+Source1:        hp-drive-guard.service
 Patch1:         0001-Fix-misc-compile-warnings.patch
 Patch2:         0002-Fix-build-with-the-new-libnotify.patch
 Patch3:         use-new-polkit.diff
@@ -106,18 +113,43 @@
 
 %install
 %makeinstall
+%if %with_systemd
+mkdir -p $RPM_BUILD_ROOT%{_unitdir}
+install -c -m 0644 %{S:1} $RPM_BUILD_ROOT%{_unitdir}/hp-drive-guard.spec
+%endif
 %find_lang %{name}
 %fdupes $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%if %{with_systemd}
+%service_add_pre hp-drive-guard.service
+%endif
+exit 0
+
+%post
+%{fillup_and_insserv -n hp-drive-guard}
+%if %{with_systemd}
+%service_add_post hp-drive-guard.service
+%endif
+exit 0
+
 %preun
 %{stop_on_removal hp-drive-guard}
+%if %{with_systemd}
+%service_del_preun hp-drive-guard.service
+%endif
+exit 0
 
 %postun
 %{restart_on_update hp-drive-guard}
 %insserv_cleanup
+%if %{with_systemd}
+%service_del_postun hp-drive-guard.service
+%endif
+exit 0
 
 %files -f %{name}.lang
 %defattr(-,root,root)
@@ -130,5 +162,8 @@
 %{_sysconfdir}/dbus-1/system.d/hp-drive-guard-dbus.conf
 %{_sysconfdir}/init.d/hp-drive-guard
 %{polkitdir}/*
+%if %{with_systemd}
+%{_unitdir}/hp-drive-guard.spec
+%endif
 
 %changelog

++++++ hp-drive-guard.service ++++++
[Unit]
Description=HP DriveGuard Daemon

[Service]
Type=dbus
BusName=com.hp.DriveGuard
ExecStart=/usr/sbin/hp-drive-guard-daemon
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to