Use appstream-util to install the AppStream files

This commit is contained in:
Richard Hughes 2014-05-12 13:15:29 +01:00
parent 6e59c1cd19
commit ae86e4e9a1

View File

@ -52,14 +52,7 @@ make %{?_smp_mflags}
%__rm %{buildroot}%{_libdir}/gs-plugins-%{gs_plugin_version}/*.la %__rm %{buildroot}%{_libdir}/gs-plugins-%{gs_plugin_version}/*.la
# install AppStream data for Fedora # install AppStream data for Fedora
%__mkdir_p %{buildroot}%{_datadir}/app-info/xmls DESTDIR=%{buildroot} appstream-util install %{SOURCE1} %{SOURCE2}
%__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 -
# make the software center load faster # make the software center load faster
desktop-file-edit %{buildroot}%{_datadir}/applications/org.gnome.Software.desktop \ desktop-file-edit %{buildroot}%{_datadir}/applications/org.gnome.Software.desktop \