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