- fix post/postun scriptlets

This commit is contained in:
Jindrich Novy 2009-11-02 15:16:46 +00:00
parent 702200a3af
commit 45813816e0
1 changed files with 28 additions and 25 deletions

View File

@ -21,7 +21,7 @@
Name: texlive Name: texlive
Version: %{texlive_ver} Version: %{texlive_ver}
Release: 46%{?dist} Release: 47%{?dist}
Summary: Binaries for the TeX formatting system Summary: Binaries for the TeX formatting system
Group: Applications/Publishing Group: Applications/Publishing
@ -678,24 +678,24 @@ rm -rf %{buildroot}%{_texmf_main}/texconfig/tcfmgr*
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/web2c.info.gz %{_infodir}/dir [ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/web2c.info.gz %{_infodir}/dir
%{_bindir}/fmtutil-sys --all &> /dev/null [ -x %{_bindir}/fmtutil-sys ] && %{_bindir}/fmtutil-sys --all &> /dev/null
%{_bindir}/updmap-sys --syncwithtrees &> /dev/null [ -x %{_bindir}/updmap-sys ] && %{_bindir}/updmap-sys --syncwithtrees &> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%post afm %post afm
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%post context %post context
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
@ -703,21 +703,21 @@ fi
%post dvips %post dvips
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/dvips.info.gz %{_infodir}/dir [ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/dvips.info.gz %{_infodir}/dir
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%post dviutils %post dviutils
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%post east-asian %post east-asian
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
@ -725,23 +725,23 @@ fi
%post latex %post latex
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/latex.info.gz %{_infodir}/dir [ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/latex.info.gz %{_infodir}/dir
%{_bindir}/texconfig-sys init &> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys init &> /dev/null
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
%{_bindir}/fmtutil-sys --all &> /dev/null [ -x %{_bindir}/fmtutil-sys ] && %{_bindir}/fmtutil-sys --all &> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%post xetex %post xetex
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%post -n kpathsea %post -n kpathsea
/sbin/ldconfig [ -x /sbin/ldconfig ] && /sbin/ldconfig
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/kpathsea.info.gz %{_infodir}/dir [ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/kpathsea.info.gz %{_infodir}/dir
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
@ -774,7 +774,7 @@ fi
: :
%preun -n kpathsea %preun -n kpathsea
/sbin/ldconfig [ -x /sbin/ldconfig ] && /sbin/ldconfig
if [ "$1" = 0 ]; then if [ "$1" = 0 ]; then
[ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/kpathsea.info.gz %{_infodir}/dir [ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/kpathsea.info.gz %{_infodir}/dir
fi fi
@ -784,63 +784,63 @@ fi
: :
%postun %postun
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun afm %postun afm
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun context %postun context
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun east-asian %postun east-asian
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun dviutils %postun dviutils
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun dvips %postun dvips
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun latex %postun latex
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun xetex %postun xetex
%{_bindir}/texconfig-sys rehash 2> /dev/null [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
: :
%postun -n kpathsea %postun -n kpathsea
/sbin/ldconfig [ -x /sbin/ldconfig ] && /sbin/ldconfig
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/ [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
fi fi
@ -1237,7 +1237,10 @@ fi
%{_mandir}/man1/textools.1* %{_mandir}/man1/textools.1*
%{_mandir}/man1/texutil.1* %{_mandir}/man1/texutil.1*
%changelog %changelog
* Mon Nov 02 2009 Jindrich Novy <jnovy@redhat.com> 2007-47
- fix post/postun scriptlets
* Fri Oct 23 2009 Jindrich Novy <jnovy@redhat.com> 2007-46 * Fri Oct 23 2009 Jindrich Novy <jnovy@redhat.com> 2007-46
- add missing dependency on kpathsea - add missing dependency on kpathsea