Provide generic/fallback mimeapps.list too (#1243049)

This commit is contained in:
Rex Dieter 2015-07-29 08:02:57 -05:00
parent fbc7fe0430
commit 458290b30b

View File

@ -1,7 +1,7 @@
Summary: Shared MIME information database
Name: shared-mime-info
Version: 1.4
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://freedesktop.org/Software/shared-mime-info
@ -62,6 +62,12 @@ cat %SOURCE2 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE3 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
cat %SOURCE4 >> $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-mimeapps.list
# Support fallback/generic mimeapps.list (currently based on gnome-mimeapps.list), see
# https://lists.fedoraproject.org/pipermail/devel/2015-July/212403.html
# https://bugzilla.redhat.com/show_bug.cgi?id=1243049
cp $RPM_BUILD_ROOT%{_datadir}/applications/gnome-mimeapps.list \
$RPM_BUILD_ROOT%{_datadir}/applications/mimeapps.list
## remove bogus translation files
## translations are already in the xml file installed
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
@ -80,6 +86,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
%doc README NEWS HACKING shared-mime-info-spec.xml
%{_bindir}/*
%{_datadir}/mime/packages/*
%{_datadir}/applications/mimeapps.list
%{_datadir}/applications/gnome-mimeapps.list
# better to co-own this dir than to pull in pkgconfig
%dir %{_datadir}/pkgconfig
@ -87,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
%{_mandir}/man*/*
%changelog
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 1.4-6
- Provide generic/fallback mimeapps.list too (#1243049)
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild