From 8024dbec8a866b8fe4c9c672287beae59f49c4874f65a3165f72be68e54fa803 Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Fri, 10 Mar 2023 11:34:25 +0000 Subject: [PATCH] Accepting request 1070567 from home:onlyJak0b:Stable Add .desktop file for Web UI OBS-URL: https://build.opensuse.org/request/show/1070567 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=260 --- syncthing.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncthing.spec b/syncthing.spec index d4505a1..ff874ec 100644 --- a/syncthing.spec +++ b/syncthing.spec @@ -30,6 +30,7 @@ Patch0: harden_strelaysrv.service.patch Patch1: harden_syncthing-resume.service.patch Patch2: harden_syncthing@.service.patch BuildRequires: systemd-rpm-macros +BuildRequires: update-desktop-files BuildRequires: golang(API) >= 1.14 BuildRequires: pkgconfig(systemd) %{?systemd_ordering} @@ -104,6 +105,8 @@ install -Dpm 0644 etc/linux-systemd/user/%{name}.service \ %{buildroot}%{_userunitdir}/%{name}.service %endif +%suse_update_desktop_file -i "syncthing-ui" + %pre %service_add_pre %{name}-resume.service @@ -145,6 +148,7 @@ getent passwd strelaysrv >/dev/null || \ %license LICENSE %doc AUTHORS CONDUCT.md CONTRIBUTING.md README.md %{_bindir}/%{name} +%{_datadir}/applications/syncthing-ui.desktop %{_unitdir}/%{name}@.service %{_unitdir}/%{name}-resume.service %if 0%{?suse_version} >= 1500 || 0%{?sle_version} > 120300