cleanup scriptlets

silence scriptlet output, drop needless %posttrans (trigger should handle it now)
This commit is contained in:
Rex Dieter 2018-02-05 06:32:34 -06:00
parent f202f4cef0
commit 54305cdf0e

View File

@ -1,7 +1,7 @@
Summary: Shared MIME information database
Name: shared-mime-info
Version: 1.9
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://freedesktop.org/Software/shared-mime-info
@ -79,14 +79,11 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*
%post
/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null ||:
%posttrans
%{_bindir}/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null ||:
%transfiletriggerin -- %{_datadir}/mime
update-mime-database -n %{_datadir}/mime
update-mime-database -n %{_datadir}/mime &> /dev/null ||:
%transfiletriggerpostun -- %{_datadir}/mime
update-mime-database -n %{_datadir}/mime
update-mime-database -n %{_datadir}/mime &> /dev/null ||:
%files -f %{name}.files
%{!?_licensedir:%global license %%doc}
@ -102,6 +99,9 @@ update-mime-database -n %{_datadir}/mime
%{_mandir}/man*/*
%changelog
* Mon Feb 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 1.9-2
- cleanup scriptlets
* Mon Sep 18 2017 Bastien Nocera <bnocera@redhat.com> - 1.9-1
+ shared-mime-info-1.9-1
- Update to 1.9