From 02fd1236ecb44ae0151e29c3de9616f1ed2f5b7d Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Jul 15 2022 18:32:02 +0000 Subject: No StartupWMClass in .desktop files for RHEL --- diff --git a/konversation.spec b/konversation.spec index c16c4d6..7d1a29c 100644 --- a/konversation.spec +++ b/konversation.spec @@ -77,11 +77,16 @@ desktop-file-edit \ --set-comment="A user friendly IRC client" \ data/org.kde.%{name}.desktop +## currently fails on all RHEL releases +# RHEL8: https://bugzilla.redhat.com/show_bug.cgi?id=2107277 +# RHEL9: https://bugzilla.redhat.com/show_bug.cgi?id=2107278 +%if !0%{?rhel} # Add StartupWMClass to .desktop grep '^StartupWMClass=' %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop || \ desktop-file-edit \ --set-key=StartupWMClass --set-value=konversation \ data/org.kde.%{name}.desktop +%endif # purge use of /usr/bin/env sed -i \ @@ -108,12 +113,7 @@ install -p -m644 -D %{SOURCE1} %{buildroot}%{_kf5_sysconfdir}/xdg/konversationrc %check appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.konversation.appdata.xml ||: -## currently fails on all RHEL releases -# RHEL8: https://bugzilla.redhat.com/show_bug.cgi?id=2107277 -# RHEL9: https://bugzilla.redhat.com/show_bug.cgi?id=2107278 -%if !0%{?rhel} desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.konversation.desktop -%endif %if 0%{?rhel} && 0%{?rhel} < 8