Add file triggers for mime database updates
This commit is contained in:
parent
458290b30b
commit
56dbc3fdaf
@ -1,7 +1,7 @@
|
|||||||
Summary: Shared MIME information database
|
Summary: Shared MIME information database
|
||||||
Name: shared-mime-info
|
Name: shared-mime-info
|
||||||
Version: 1.4
|
Version: 1.4
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://freedesktop.org/Software/shared-mime-info
|
URL: http://freedesktop.org/Software/shared-mime-info
|
||||||
@ -79,6 +79,12 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
|
|||||||
%posttrans
|
%posttrans
|
||||||
%{_bindir}/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null ||:
|
%{_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
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
@ -94,6 +100,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 1.4-6
|
||||||
- Provide generic/fallback mimeapps.list too (#1243049)
|
- Provide generic/fallback mimeapps.list too (#1243049)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user