Use appstream-util to install the AppStream files
This commit is contained in:
parent
6e59c1cd19
commit
ae86e4e9a1
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user