From 8b8b6f75202a2fa3c1ae4415f7485a11dcc5dadb Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 16:41:59 +0000 Subject: [PATCH] Add an AppData file for the software center --- qt.spec | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/qt.spec b/qt.spec index 72c5047..6cb5697 100644 --- a/qt.spec +++ b/qt.spec @@ -35,7 +35,7 @@ Summary: Qt toolkit Name: qt Epoch: 1 Version: 4.8.6 -Release: 26%{?dist} +Release: 27%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT @@ -964,6 +964,20 @@ if [ $1 -gt 1 ] ; then fi %endif +# Merge applications into one software center item +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/qt4-linguist.appdata.xml < + + + CC0-1.0 + qt4-linguist.desktop + + qt4-designer.desktop + + +EOF + %post /sbin/ldconfig %if 0%{?qtchooser} @@ -1069,6 +1083,7 @@ fi %{_bindir}/assistant* %endif %{_qt4_bindir}/assistant* +%{_datadir}/appdata/*assistant.appdata.xml %{_datadir}/applications/*assistant.desktop %{_datadir}/icons/hicolor/*/apps/assistant* @@ -1317,6 +1332,9 @@ fi %changelog +* Thu Mar 26 2015 Richard Hughes - 1:4.8.6-27 +- Add an AppData file for the software center + * Fri Mar 20 2015 Rex Dieter 1:4.8.6-26 - macros.qt4: fix _qt4_evr macro (missing : after epoch)