Hello community, here is the log from the commit of package hddtemp for openSUSE:Factory checked in at 2017-03-20 17:08:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hddtemp (Old) and /work/SRC/openSUSE:Factory/.hddtemp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hddtemp" Mon Mar 20 17:08:48 2017 rev:2 rq:479857 version:0.3_beta15_e16aed6 Changes: -------- --- /work/SRC/openSUSE:Factory/hddtemp/hddtemp.changes 2015-10-01 09:29:09.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.hddtemp.new/hddtemp.changes 2017-03-20 17:08:48.224300934 +0100 @@ -1,0 +2,16 @@ +Wed Mar 15 13:17:47 UTC 2017 - dims...@opensuse.org + +- Only install the init.d service when there is no systemd present: + the systemd service would mask it and only confuses users that + try to debug things. +- Link rc%{name} to /usr/sbin/service when using systemd. +- Move the insserv BuildRequires to be a PreReq (it's not used for + the build system, but actually for the installation on a machine) + and guard it to be validonly for non-systemd systems. + +------------------------------------------------------------------- +Sun Mar 12 23:36:11 UTC 2017 - plinn...@opensuse.org + +- Add insserv as build requirement to fix Factory build + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hddtemp.spec ++++++ --- /var/tmp/diff_new_pack.kq92c0/_old 2017-03-20 17:08:48.840213967 +0100 +++ /var/tmp/diff_new_pack.kq92c0/_new 2017-03-20 17:08:48.840213967 +0100 @@ -1,7 +1,7 @@ # # spec file for package hddtemp # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2002-2012 Manfred Tremmel <manfred.trem...@iiv.de> # # All modifications and additions to the file contributed by third parties @@ -24,9 +24,9 @@ Version: %{veronly}_%{state} Release: 0 Summary: Hard disk temperature tool -Summary(de): Festplatten Temperatur-Ausleseprogramm License: GPL-2.0+ Group: System/Monitoring +Summary(de): Festplatten Temperatur-Ausleseprogramm Url: https://github.com/guzu/hddtemp Source0: %{name}-%{veronly}-%{state}.tar.bz2 Source1: %{name}.db @@ -45,6 +45,8 @@ %if %suse_version >= 1210 BuildRequires: systemd %define has_systemd 1 +%else +PreReq: insserv %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -72,7 +74,6 @@ %install %makeinstall -mkdir -p %{buildroot}%{_initddir} mkdir -p %{buildroot}%{_sysconfdir}/default mkdir -p %{buildroot}%{_datadir}/misc/ mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates @@ -80,30 +81,34 @@ pushd %{buildroot}%{_sysconfdir} ln -s ..%{_datadir}/misc/hddtemp.db ./hddtemp.db popd -install -m 0755 %{SOURCE2} %{buildroot}%{_initddir}/%{name} install -m 0644 %{SOURCE3} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} -pushd %{buildroot}%{_sbindir} -ln -s ../..%{_initddir}/%{name} rc%{name} -popd %if 0%{?has_systemd} install -D -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service +ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name} +%else +mkdir -p %{buildroot}%{_initddir} +install -m 0755 %{SOURCE2} %{buildroot}%{_initddir}/%{name} +pushd %{buildroot}%{_sbindir} +ln -s ../..%{_initddir}/%{name} rc%{name} +popd %endif %find_lang %{name} %preun -%stop_on_removal %{name} %if 0%{?has_systemd} %service_del_preun %{name}.service +%else +%stop_on_removal %{name} %endif %postun -%restart_on_update %{name} -%insserv_cleanup - %if 0%{?has_systemd} %service_del_postun %{name}.service +%else +%restart_on_update %{name} +%insserv_cleanup %endif %pre @@ -112,17 +117,16 @@ %endif %post -%{fillup_only %{name}} - %if 0%{?has_systemd} %service_add_post %{name}.service +%else +%{fillup_only %{name}} %endif %files -f %{name}.lang %defattr(-,root,root) %doc COPYING README TODO contribs %{_datadir}/misc/hddtemp.db -%{_initddir}/%{name} %{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %config(noreplace) %{_sysconfdir}/hddtemp.db %doc %{_mandir}/man8/hddtemp.8* @@ -130,6 +134,8 @@ %{_sbindir}/rc%{name} %if 0%{?has_systemd} %{_unitdir}/%{name}.service +%else +%{_initddir}/%{name} %endif %changelog