From f557c61b01f3b5d0868a4167798edd37700440fc9f6ac15f30e157d0c0622e69 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 3 Feb 2019 18:22:34 +0000 Subject: [PATCH] Accepting request 670303 from home:frispete:42.3 - Fix build with 42.3 OBS-URL: https://build.opensuse.org/request/show/670303 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=154 --- syncthing.changes | 5 +++++ syncthing.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/syncthing.changes b/syncthing.changes index 0f9563f..39785ca 100644 --- a/syncthing.changes +++ b/syncthing.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 31 10:21:31 UTC 2019 - Hans-Peter Jansen + +- Fix build with 42.3 + ------------------------------------------------------------------- Tue Jan 1 12:21:16 UTC 2019 - Alexei Sorokin diff --git a/syncthing.spec b/syncthing.spec index 9b7d022..b53c91f 100644 --- a/syncthing.spec +++ b/syncthing.spec @@ -74,15 +74,21 @@ install -Dpm 0644 %{name}.firewall \ %post %service_add_post %{name}-resume.service +%if 0%{?suse_version} >= 1500 || 0%{?sle_version} > 120300 %systemd_user_post %{name}.service +%endif %preun %service_del_preun %{name}@.service %{name}-resume.service +%if 0%{?suse_version} >= 1500 || 0%{?sle_version} > 120300 %systemd_user_preun %{name}.service +%endif %postun %service_del_postun %{name}-resume.service +%if 0%{?suse_version} >= 1500 || 0%{?sle_version} > 120300 %systemd_user_postun %{name}.service +%endif %files %license LICENSE @@ -91,6 +97,8 @@ install -Dpm 0644 %{name}.firewall \ %{_bindir}/%{name} %{_unitdir}/%{name}@.service %{_unitdir}/%{name}-resume.service +%if 0%{?suse_version} >= 1500 || 0%{?sle_version} > 120300 %{_userunitdir}/%{name}.service +%endif %changelog