Install appdata files to %{_metainfodir}
See: https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html and: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
This commit is contained in:
parent
40d6240272
commit
838e397e16
@ -893,9 +893,9 @@ install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot}%{_datadir}/icons/h
|
|||||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
|
||||||
|
|
||||||
# Install and validate appdata file
|
# Install and validate appdata file
|
||||||
mkdir -p %{buildroot}%{_datadir}/appdata
|
mkdir -p %{buildroot}%{_metainfodir}
|
||||||
cp -a %{SOURCE11} %{buildroot}%{_datadir}/appdata
|
cp -a %{SOURCE11} %{buildroot}%{_metainfodir}
|
||||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/idle3.appdata.xml
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/idle3.appdata.xml
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Make sure distutils looks at the right pyconfig.h file
|
# Make sure distutils looks at the right pyconfig.h file
|
||||||
@ -1371,7 +1371,7 @@ CheckPython optimized
|
|||||||
%{pylibdir}/idlelib
|
%{pylibdir}/idlelib
|
||||||
|
|
||||||
%if %{without flatpackage}
|
%if %{without flatpackage}
|
||||||
%{_datadir}/appdata/idle3.appdata.xml
|
%{_metainfodir}/idle3.appdata.xml
|
||||||
%{_datadir}/applications/idle3.desktop
|
%{_datadir}/applications/idle3.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/idle3.*
|
%{_datadir}/icons/hicolor/*/apps/idle3.*
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user