[qt-creator/f20] Add appdata file

Sandro Mani smani at fedoraproject.org
Wed Mar 12 20:07:05 UTC 2014


commit 511a987ae3b8ca95bd2711dd4363e89f9118839f
Author: Sandro Mani <manisandro at gmail.com>
Date:   Wed Mar 12 21:06:52 2014 +0100

    Add appdata file

 qt-creator.spec       |   11 ++++++++++-
 qtcreator.appdata.xml |   28 ++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletions(-)
---
diff --git a/qt-creator.spec b/qt-creator.spec
index 1bf1b20..0193add 100644
--- a/qt-creator.spec
+++ b/qt-creator.spec
@@ -2,7 +2,7 @@
 
 Name:           qt-creator
 Version:        3.0.1
-Release:        1%{?pre:.%pre}%{?dist}
+Release:        2%{?pre:.%pre}%{?dist}
 Summary:        Cross-platform IDE for Qt
 
 Group:          Development/Tools
@@ -12,6 +12,7 @@ Source0:        http://download.qt-project.org/official_releases/qtcreator/3.0/%
 
 Source1:        qtcreator.desktop
 Source2:        qt-creator-Fedora-privlibs
+Source3:        qtcreator.appdata.xml
 
 Requires:       hicolor-icon-theme
 Requires:       xdg-utils
@@ -31,6 +32,7 @@ BuildRequires:  qt4-devel-private
 BuildRequires:  desktop-file-utils
 BuildRequires:  botan-devel
 BuildRequires:  diffutils
+BuildRequires:  appdata-tools
 
 # long list of private shared lib names to filter out
 %include %{SOURCE2}
@@ -63,6 +65,9 @@ done
 
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
 
+install -Dpm0644 %{SOURCE3} %{buildroot}%{_datadir}/appdata/qtcreator.appdata.xml
+%{_bindir}/appdata-validate %{buildroot}%{_datadir}/appdata/qtcreator.appdata.xml || :
+
 # Output an up-to-date list of Provides/Requires exclude statements.
 outfile=__Fedora-privlibs
 i=0
@@ -104,10 +109,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 #%%{_libdir}/qmldesigner
 %{_datadir}/qtcreator
 %{_datadir}/applications/qtcreator.desktop
+%{_datadir}/appdata/qtcreator.appdata.xml
 %{_datadir}/icons/hicolor/*/apps/QtProject-qtcreator.png
 #%%{_datadir}/doc/qtcreator/qtcreator.qch
 
 %changelog
+* Wed Mar 12 2014 Sandro Mani <manisandro at gmail.com> - 3.0.1-2
+- Add appdata file
+
 * Thu Feb 06 2014 Sandro Mani <manisandro at gmail.com> - 3.0.1-1
 - 3.0.1 stable release
 - Fix homepage URL
diff --git a/qtcreator.appdata.xml b/qtcreator.appdata.xml
new file mode 100644
index 0000000..431b86a
--- /dev/null
+++ b/qtcreator.appdata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Digia Plc and/or its subsidiary(-ies) Contact: http://www.qt-project.org/legal -->
+<application>
+ <id type="desktop">qtcreator.desktop</id>
+ <licence>CC-BY-SA</licence>
+ <description>
+  <p>
+   Qt Creator provides a cross-platform, complete integrated development
+   environment (IDE) for application developers to create applications for
+   multiple desktop and mobile device platforms, such as Android and iOS.
+  </p>
+  <p>
+   Qt Creator enables a team of developers to share a project across different
+   development platforms with a common tool for development and debugging.
+  </p>
+  <p>
+   The main goal for Qt Creator is meeting the development needs of Qt
+   developers who are looking for simplicity, usability, productivity,
+   extendibility and openness, while aiming to lower the barrier of entry for
+   newcomers to Qt.
+  </p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="789" height="599">http://qt-project.org/uploads/image_upload/qtcreator-edit-mode.png</screenshot>
+ </screenshots>
+ <url type="homepage">https://qt-project.org/wiki/Category:Tools::QtCreator</url>
+ <project_group>Qt</project_group>
+</application>


More information about the scm-commits mailing list