Remove obsolete scriptlets

References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-01-27 19:39:09 +01:00
parent 0fa50d4998
commit 5a06b01b39
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -517,25 +517,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/mgllab.desktop
%ldconfig_scriptlets wx
%post common
%if 0%{?with_doc}
/sbin/install-info %{_infodir}/%{name}_en.info %{_infodir}/dir || :
%endif
touch --no-create %{_datadir}/mime ||:
%postun common
if [ $1 -eq 0 ] ; then
update-desktop-database -q &> /dev/null
touch --no-create %{_datadir}/mime ||:
fi
%preun common
%if 0%{?with_doc}
if [ $1 = 0 ] ; then
/sbin/install-info --delete %{_infodir}/%{name}_en.info %{_infodir}/dir || :
fi
%endif
%if 0%{?with_octave}
%post -n octave-mathgl
%octave_cmd pkg rebuild