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
1 changed files with 1 additions and 8 deletions

View File

@ -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 \