From a93be81b4cba62932595878129ecbefb38aaaab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 18 Jun 2018 21:44:35 +0000 Subject: [PATCH] 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 --- python36.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python36.spec b/python36.spec index b67d467..8926092 100644 --- a/python36.spec +++ b/python36.spec @@ -915,9 +915,9 @@ install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot}%{_datadir}/icons/h desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10} # Install and validate appdata file -mkdir -p %{buildroot}%{_datadir}/appdata -cp -a %{SOURCE11} %{buildroot}%{_datadir}/appdata -appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/idle3.appdata.xml +mkdir -p %{buildroot}%{_metainfodir} +cp -a %{SOURCE11} %{buildroot}%{_metainfodir} +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/idle3.appdata.xml %endif # Make sure distutils looks at the right pyconfig.h file @@ -1386,7 +1386,7 @@ CheckPython optimized %{pylibdir}/idlelib %if %{without flatpackage} -%{_datadir}/appdata/idle3.appdata.xml +%{_metainfodir}/idle3.appdata.xml %{_datadir}/applications/idle3.desktop %{_datadir}/icons/hicolor/*/apps/idle3.* %endif