Remove duplicated installation of %SOURCE1

This commit is contained in:
Miro Hrončok 2020-11-09 15:06:47 +01:00
parent 94c1e87281
commit 977fbbad9f

View File

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