16 lines
406 B
Plaintext
16 lines
406 B
Plaintext
|
%info_requires \
|
||
|
Requires(post): /usr/sbin/install-info \
|
||
|
Requires(preun): /usr/sbin/install-info
|
||
|
|
||
|
%info_post() \
|
||
|
if [ -f %{_infodir}/%1 ]; then # --excludedocs? \
|
||
|
/usr/sbin/install-info %{_infodir}/%1 %{_infodir}/dir || : \
|
||
|
fi
|
||
|
|
||
|
%info_preun() \
|
||
|
if [ $1 == 0 ]; then \
|
||
|
if [ -f %{_infodir}/%1 ]; then # --excludedocs? \
|
||
|
/usr/sbin/install-info --delete %{_infodir}/%1 %{_infodir}/dir || : \
|
||
|
fi \
|
||
|
fi
|