diff --git a/giac.changes b/giac.changes index a2a2665..233c40a 100644 --- a/giac.changes +++ b/giac.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 15 23:40:29 UTC 2016 - avvissu@yandex.by + +- Fix postun scriptlet failed: + * use install_info_delete instead of info_del + ------------------------------------------------------------------- Sat Jan 2 21:21:49 UTC 2016 - avvissu@yandex.ru diff --git a/giac.spec b/giac.spec index 0888b48..acb9a8d 100644 --- a/giac.spec +++ b/giac.spec @@ -53,6 +53,8 @@ BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xft) BuildRequires: pkgconfig(xinerama) Recommends: giac-doc +Requires(post): %install_info_prereq +Requires(preun): %install_info_prereq %if !%{with cocoa} BuildRequires: pkgconfig(ao) %endif @@ -140,14 +142,16 @@ find %{buildroot}%{_datadir}/%{name}/doc -type f -empty -exec rm -f {} \; %info_add %{name}_es.info %info_add %{name}_us.info +%preun +if [ $1 -eq 0 ]; then +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}_es.info%{ext_info} +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}_us.info%{ext_info} +fi + %postun %mime_database_postun %desktop_database_postun %icon_theme_cache_postun -if [ $1 = 0 ]; then - %info_del %{name}_es.info - %info_del %{name}_us.info -fi %post -n lib%{name}%{soname} -p /sbin/ldconfig %postun -n lib%{name}%{soname} -p /sbin/ldconfig