Hello community, here is the log from the commit of package hp-drive-guard for openSUSE:Factory checked in at 2017-03-29 13:25:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hp-drive-guard (Old) and /work/SRC/openSUSE:Factory/.hp-drive-guard.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hp-drive-guard" Wed Mar 29 13:25:00 2017 rev:15 rq:481708 version:0.3.12 Changes: -------- --- /work/SRC/openSUSE:Factory/hp-drive-guard/hp-drive-guard.changes 2012-11-12 07:03:17.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.hp-drive-guard.new/hp-drive-guard.changes 2017-03-29 13:25:01.328628023 +0200 @@ -1,0 +2,8 @@ +Wed Mar 15 13:40:42 UTC 2017 - [email protected] + +- Correctly install the systemd service as a .service file (not + .spec) +- Drop the sysV script on systemd setups +- Only call insserv on sysV systems. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hp-drive-guard.spec ++++++ --- /var/tmp/diff_new_pack.7LdivU/_old 2017-03-29 13:25:02.160510372 +0200 +++ /var/tmp/diff_new_pack.7LdivU/_new 2017-03-29 13:25:02.164509806 +0200 @@ -1,7 +1,7 @@ # # spec file for package hp-drive-guard # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -54,6 +54,8 @@ %if %{with_systemd} BuildRequires: pkgconfig(systemd) %{?systemd_requires} +%else +PreReq: %insserv_prereq %endif Version: 0.3.12 Release: 0 @@ -115,7 +117,9 @@ %makeinstall %if %with_systemd mkdir -p $RPM_BUILD_ROOT%{_unitdir} -install -c -m 0644 %{S:1} $RPM_BUILD_ROOT%{_unitdir}/hp-drive-guard.spec +install -c -m 0644 %{S:1} $RPM_BUILD_ROOT%{_unitdir}/hp-drive-guard.service +# do not ship the init.d script on a systemd setup +rm %{buildroot}%{_sysconfdir}/init.d/hp-drive-guard %endif %find_lang %{name} %fdupes $RPM_BUILD_ROOT @@ -127,29 +131,28 @@ %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 +%else +%{fillup_and_insserv -n hp-drive-guard} %endif -exit 0 %preun -%{stop_on_removal hp-drive-guard} %if %{with_systemd} %service_del_preun hp-drive-guard.service +%else +%{stop_on_removal hp-drive-guard} %endif -exit 0 %postun -%{restart_on_update hp-drive-guard} -%insserv_cleanup %if %{with_systemd} %service_del_postun hp-drive-guard.service +%else +%{restart_on_update hp-drive-guard} +%insserv_cleanup %endif -exit 0 %files -f %{name}.lang %defattr(-,root,root) @@ -160,10 +163,11 @@ %{_libexecdir}/hp-drive-guard %{_sysconfdir}/xdg/autostart/hp-drive-guard-client.desktop %{_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 +%{_unitdir}/hp-drive-guard.service +%else +%{_sysconfdir}/init.d/hp-drive-guard %endif %changelog
