[gnome-software] Use appstream-util to install the AppStream files

Richard Hughes rhughes at fedoraproject.org
Mon May 12 12:15:51 UTC 2014


commit ae86e4e9a1175d1a0e213c65ba7b40349322fb15
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon May 12 13:15:29 2014 +0100

    Use appstream-util to install the AppStream files

 gnome-software.spec |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gnome-software.spec b/gnome-software.spec
index f349c09..ef9bf4c 100644
--- a/gnome-software.spec
+++ b/gnome-software.spec
@@ -52,14 +52,7 @@ make %{?_smp_mflags}
 %__rm %{buildroot}%{_libdir}/gs-plugins-%{gs_plugin_version}/*.la
 
 # install AppStream data for Fedora
-%__mkdir_p %{buildroot}%{_datadir}/app-info/xmls
-%__cp %{SOURCE1} %{buildroot}%{_datadir}/app-info/xmls
-
-# decompress and install AppStream icons
-%__mkdir_p %{buildroot}%{_datadir}/app-info/icons/fedora-%{?distrotag}
-cd %{buildroot}%{_datadir}/app-info/icons/fedora-%{?distrotag}
-%__tar xvzf %{SOURCE2}
-cd -
+DESTDIR=%{buildroot} appstream-util install %{SOURCE1} %{SOURCE2}
 
 # make the software center load faster
 desktop-file-edit %{buildroot}%{_datadir}/applications/org.gnome.Software.desktop \


More information about the scm-commits mailing list