From 977fbbad9f4dbd0d9a08228ef527a7086027bdab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 9 Nov 2020 15:06:47 +0100 Subject: [PATCH] Remove duplicated installation of %SOURCE1 --- shared-mime-info.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shared-mime-info.spec b/shared-mime-info.spec index 66b4dd3..c812b00 100644 --- a/shared-mime-info.spec +++ b/shared-mime-info.spec @@ -58,14 +58,12 @@ find $RPM_BUILD_ROOT%{_datadir}/mime -type d \ find $RPM_BUILD_ROOT%{_datadir}/mime -type f -not -path "*/packages/*" \ | sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" >> %{name}.files -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications -install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/mimeapps.list - # Support fallback/generic mimeapps.list (currently based on an old version of # gnome-mimeapps.list), see: # https://lists.fedoraproject.org/pipermail/devel/2015-July/212403.html # https://bugzilla.redhat.com/show_bug.cgi?id=1243049 -cp %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/applications/mimeapps.list +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications +install -m 644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/applications/mimeapps.list ## remove bogus translation files ## translations are already in the xml file installed