[gnome-chess] Switch from appdata-tools to appdata-utils
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Switch from appdata-tools to appdata-utils
- Date: Tue, 25 Nov 2014 00:26:47 +0000 (UTC)
commit cc1927dd99523c44dac990d1c737f721a285022f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Nov 24 18:26:14 2014 -0600
Switch from appdata-tools to appdata-utils
configure.ac | 3 ++-
data/Makefile.am | 15 ++++++++-------
data/gnome-chess.appdata.xml.in | 1 +
3 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 849fa0f..a13908f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,8 @@ LT_INIT
GLIB_GSETTINGS
+APPSTREAM_XML
+
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
@@ -49,7 +51,6 @@ PKG_CHECK_MODULES(TEST, [
AC_CHECK_HEADERS([linux/prctl.h])
AM_CONDITIONAL([WITH_PRCTL], [test x$ac_cv_header_linux_prctl_h = xyes])
-AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate], [/bin/true])
AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [/bin/true])
dnl ###########################################################################
diff --git a/data/Makefile.am b/data/Makefile.am
index a7fd2e9..ca621d1 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,9 +5,9 @@ desktop_in_files = gnome-chess.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
-appdatadir = $(datadir)/appdata
-appdata_in_files = gnome-chess.appdata.xml.in
-appdata_DATA = $(appdata_in_files:.appdata.xml.in=.appdata.xml)
+appstream_in_files = gnome-chess.appdata.xml.in
+appstream_XML = $(appstream_in_files:.appdata.xml.in=.appdata.xml)
+ APPSTREAM_XML_RULES@
@INTLTOOL_XML_RULE@
uidir = $(pkgdatadir)
@@ -25,17 +25,18 @@ dist_pkgsysconf_DATA = engines.conf
dist_man_MANS = gnome-chess.6
-check-local: $(appdata_DATA) $(desktop_DATA)
- $(APPDATA_VALIDATE) $(appdata_DATA)
+check-local: $(desktop_DATA)
$(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
EXTRA_DIST = \
- $(appdata_in_files) \
+ $(appstream_in_files) \
$(desktop_in_files) \
$(gsettings_SCHEMAS)
CLEANFILES = \
- $(appdata_DATA) \
+ $(appstream_XML) \
$(desktop_DATA)
+DISTCHECK_CONFIGURE_FLAGS == --enable-appdata-check
+
-include $(top_srcdir)/git.mk
diff --git a/data/gnome-chess.appdata.xml.in b/data/gnome-chess.appdata.xml.in
index 08e558f..b14747d 100644
--- a/data/gnome-chess.appdata.xml.in
+++ b/data/gnome-chess.appdata.xml.in
@@ -5,6 +5,7 @@
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+ and (GPL-2.0+ or GFDL-1.1)</project_license>
<_name>GNOME Chess</_name>
+ <_summary>Play the classic two-player board game of chess</_summary>
<description>
<_p>
GNOME Chess is a simple chess game. You can play against your computer at
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]