Hello community, here is the log from the commit of package gkrellm for openSUSE:Factory checked in at 2014-02-19 06:55:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gkrellm (Old) and /work/SRC/openSUSE:Factory/.gkrellm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gkrellm" Changes: -------- --- /work/SRC/openSUSE:Factory/gkrellm/gkrellm.changes 2014-02-17 12:52:33.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.gkrellm.new/gkrellm.changes 2014-02-19 06:55:12.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Feb 17 10:48:25 UTC 2014 - [email protected] + +- Add systemd service gkrellm.service (bnc#864225). + +------------------------------------------------------------------- New: ---- gkrellmd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gkrellm.spec ++++++ --- /var/tmp/diff_new_pack.imaSHS/_old 2014-02-19 06:55:13.000000000 +0100 +++ /var/tmp/diff_new_pack.imaSHS/_new 2014-02-19 06:55:13.000000000 +0100 @@ -29,12 +29,18 @@ Source3: gkrellm-24.png Source4: gkrellm-32.png Source5: gkrellm-48.png +%if 0%{?suse_version} > 1220 +Source6: gkrellmd.service +%endif # PATCH-FIX-OPENSUSE gkrellm-libsensors.patch [email protected] -- detect libsensors correctly Patch0: %{name}-libsensors.patch # PATCH-FIX-OPENSUSE gkrellm-lib64-plugins-dir.patch [email protected] -- look also into /usr/lib64/gkrellm2/plugins Patch1: %{name}-lib64-plugins-dir.patch BuildRequires: gtk2-devel BuildRequires: libsensors4-devel +%if 0%{?suse_version} > 1220 +BuildRequires: pkgconfig(libsystemd-daemon) +%endif BuildRequires: openssl-devel BuildRequires: update-desktop-files BuildRequires: xorg-x11-libSM-devel @@ -121,22 +127,35 @@ %if "x%{_lib}" == "xlib64" mkdir -p %{buildroot}/usr/lib64/gkrellm2/plugins %endif +%if 0%{?suse_version} > 1220 +install -D -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/gkrellmd.service +%endif %suse_update_desktop_file -i %name %find_lang %{name} %{?no_lang_C} -%clean -rm -rf %{buildroot} - -%if 0%{?suse_version} > 1130 +%if 0%{?suse_version} > 1220 +%pre +%service_add_pre gkrellmd.service +%endif %post +%if 0%{?suse_version} > 1130 %desktop_database_post %icon_theme_cache_post %endif -%if 0%{?suse_version} > 1130 +%if %{?suse_version} > 1220 +%preun +%service_del_preun gkrellmd.service +%stop_on_removal gkrellmd +%endif %postun +%if 0%{?suse_version} > 1220 +%service_del_postun gkrellmd.service +%restart_on_update gkrellmd +%endif +%if 0%{?suse_version} > 1130 %desktop_database_postun %icon_theme_cache_postun %endif @@ -150,6 +169,9 @@ %doc %{_mandir}/man1/* %dir /usr/lib/gkrellm2 %dir /usr/lib/gkrellm2/plugins +%if 0%{?suse_version} > 1220 +%{_unitdir}/gkrellmd.service +%endif %if "x%{_lib}" == "xlib64" %dir /usr/lib64/gkrellm2 %dir /usr/lib64/gkrellm2/plugins ++++++ gkrellmd.service ++++++ [Unit] Description=GNU Krell Monitors server After=network.target [Service] ExecStart=/usr/bin/gkrellmd [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
