From f6560c11f9bc6734406d0d030a8ce7aa8268447c Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 20 Sep 2020 21:59:04 +0200 Subject: [PATCH] Fix recent OBS for openSUSE builds errors #7 --- pkgs/rpm/clapper.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/rpm/clapper.spec b/pkgs/rpm/clapper.spec index 6917940d..c002bee0 100644 --- a/pkgs/rpm/clapper.spec +++ b/pkgs/rpm/clapper.spec @@ -46,6 +46,8 @@ Requires: hicolor-icon-theme # SUSE recommends group tag, while Fedora discourages their use Group: Productivity/Multimedia/Video/Players +BuildRequires: update-desktop-files + Requires: gstreamer Requires: gstreamer-plugins-base Requires: gstreamer-plugins-good @@ -92,12 +94,12 @@ A GNOME media player built using GJS and powered by GStreamer with OpenGL render %install %meson_install +%if 0%{?suse_version} +%suse_update_desktop_file %{appname} +%endif %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop -%if 0%{?suse_version} -%suse_update_desktop_files %{appname} -%endif %files %license COPYING @@ -112,6 +114,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %changelog * Sat Sep 19 22:02:00 CEST 2020 sp1rit - 0.0.0-2 -- Added %suse_update_desktop_files macro for SuSE packages +- Added suse_update_desktop_file macro for SuSE packages * Fri Sep 18 2020 Rafostar - 0.0.0-1 - Initial package