Add file triggers for mime database updates

This commit is contained in:
Matthias Clasen 2015-08-14 15:20:52 -04:00
parent 458290b30b
commit 56dbc3fdaf

View File

@ -1,7 +1,7 @@
Summary: Shared MIME information database
Name: shared-mime-info
Version: 1.4
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://freedesktop.org/Software/shared-mime-info
@ -79,6 +79,12 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
%posttrans
%{_bindir}/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null ||:
%transfiletriggerin -- %{_datadir}/mime
update-mime-database -n %{_datadir}/mime
%transfiletriggerpostun -- %{_datadir}/mime
update-mime-database -n %{_datadir}/mime
%files -f %{name}.files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
@ -94,6 +100,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
%{_mandir}/man*/*
%changelog
* Fri Aug 14 2015 Matthias Clasen <mclasen@redhat.com> 1.4-7
- Add file triggers for rebuilding the mime database
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 1.4-6
- Provide generic/fallback mimeapps.list too (#1243049)