From e1e345a9a3eac628a1bf491cb46be7a843b2549b Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 22 Jul 2020 22:55:00 +0200 Subject: [PATCH] Install the AppStream file to the canonical location The canonical location for AppStream XML files has been changed to /usr/share/metainfo four years ago at least, with /usr/share/appdata left as legacy location. It is time to switch to the right location. Signed-off-by: Pino Toscano --- data/Makefile.am | 2 +- virt-viewer.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Makefile.am b/data/Makefile.am index 0fe12f8..4766ac5 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -81,7 +81,7 @@ mime_DATA = virt-viewer-mime.xml %-mime.xml: %-mime.xml.in $(PO_FILES) $(AM_V_GEN)GETTEXTDATADIR=$(srcdir)/gettext $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ -appdatadir = $(datadir)/appdata +appdatadir = $(datadir)/metainfo APPDATAFILES = remote-viewer.appdata.xml.in appdata_DATA = $(APPDATAFILES:.xml.in=.xml) %.appdata.xml: %.appdata.xml.in $(PO_FILES) diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in index 9a7c314..fbfb14a 100644 --- a/virt-viewer.spec.in +++ b/virt-viewer.spec.in @@ -110,7 +110,7 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/devices/* %{_datadir}/applications/remote-viewer.desktop -%{_datadir}/appdata/remote-viewer.appdata.xml +%{_datadir}/metainfo/remote-viewer.appdata.xml %{_datadir}/mime/packages/virt-viewer-mime.xml %{_mandir}/man1/virt-viewer.1* %{_mandir}/man1/remote-viewer.1*