SHA256
1
0
forked from pool/giac

Accepting request 409093 from home:awissu:branches:science

OBS-URL: https://build.opensuse.org/request/show/409093
OBS-URL: https://build.opensuse.org/package/show/science/giac?expand=0&rev=2
This commit is contained in:
Alexei Podvalsky 2016-07-16 17:14:33 +00:00 committed by Git OBS Bridge
parent fd524a449c
commit 9ab18de0d7
2 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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