[gnome-control-center] Add a simple AppData file



commit daed241f9a05325b8a3b2e26445d922dc3bd4447
Author: Richard Hughes <richard hughsie com>
Date:   Mon Mar 30 10:52:59 2015 +0100

    Add a simple AppData file
    
    This is needed for three reasons:
    
     * To be able to arrange the icon into a folder in GNOME Software
     * So that we do not allow the application to be removed
     * To show the update description not in the 'OS Updates' package section

 configure.ac                                      |    1 +
 po/POTFILES.in                                    |    1 +
 shell/Makefile.am                                 |    2 ++
 shell/appdata/Makefile.am                         |   12 ++++++++++++
 shell/appdata/gnome-control-center.appdata.xml.in |   19 +++++++++++++++++++
 5 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 354e954..8ebadfc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -527,6 +527,7 @@ panels/wacom/gnome-wacom-panel.desktop.in
 po/Makefile.in
 libgd/Makefile
 search-provider/Makefile
+shell/appdata/Makefile
 shell/Makefile
 shell/gnome-control-center.desktop.in
 man/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7a9aa14..d0f4c50 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -207,4 +207,5 @@ panels/wacom/gsd-wacom-key-shortcut-button.c
 [type: gettext/glade]panels/wacom/wacom-stylus-page.ui
 shell/cc-application.c
 shell/cc-window.c
+shell/gnome-control-center.appdata.xml
 shell/gnome-control-center.desktop.in.in
diff --git a/shell/Makefile.am b/shell/Makefile.am
index b70393a..f72ebe9 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = appdata
+
 AM_CPPFLAGS =                                  \
        -DGNOMELOCALEDIR="\"$(datadir)/locale\""\
        -I$(top_srcdir)                         \
diff --git a/shell/appdata/Makefile.am b/shell/appdata/Makefile.am
new file mode 100644
index 0000000..8ef0428
--- /dev/null
+++ b/shell/appdata/Makefile.am
@@ -0,0 +1,12 @@
+ INTLTOOL_XML_RULE@
+appdatadir = $(datadir)/appdata
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files =                                             \
+       gnome-control-center.appdata.xml.in
+
+EXTRA_DIST = $(appdata_in_files)
+
+CLEANFILES =                                                   \
+       gnome-control-center.appdata.xml
+
+-include $(top_srcdir)/git.mk
diff --git a/shell/appdata/gnome-control-center.appdata.xml.in 
b/shell/appdata/gnome-control-center.appdata.xml.in
new file mode 100644
index 0000000..1ab39d0
--- /dev/null
+++ b/shell/appdata/gnome-control-center.appdata.xml.in
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Richard Hughes <richard hughsie com> -->
+<component type="desktop">
+  <id>gnome-control-center.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <_name>GNOME Control Center</_name>
+  <_summary>Utilities to configure the GNOME desktop</_summary>
+  <description>
+    <_p>
+      The control center is GNOME's main interface for configuration of various
+      aspects of your desktop.
+    </_p>
+  </description>
+  <url type="bugtracker">https://bugzilla.gnome.org/browse.cgi?product=control-center</url>
+  <update_contact>richard_at_hughsie.com</update_contact>
+  <project_group>GNOME</project_group>
+  <compulsory_for_desktop>GNOME</compulsory_for_desktop>
+</component>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]