- fix post/postun scriptlets
This commit is contained in:
parent
702200a3af
commit
45813816e0
51
texlive.spec
51
texlive.spec
@ -21,7 +21,7 @@
|
||||
|
||||
Name: texlive
|
||||
Version: %{texlive_ver}
|
||||
Release: 46%{?dist}
|
||||
Release: 47%{?dist}
|
||||
Summary: Binaries for the TeX formatting system
|
||||
|
||||
Group: Applications/Publishing
|
||||
@ -678,24 +678,24 @@ rm -rf %{buildroot}%{_texmf_main}/texconfig/tcfmgr*
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%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
|
||||
%{_bindir}/fmtutil-sys --all &> /dev/null
|
||||
%{_bindir}/updmap-sys --syncwithtrees &> /dev/null
|
||||
[ -x %{_bindir}/fmtutil-sys ] && %{_bindir}/fmtutil-sys --all &> /dev/null
|
||||
[ -x %{_bindir}/updmap-sys ] && %{_bindir}/updmap-sys --syncwithtrees &> /dev/null
|
||||
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
@ -703,21 +703,21 @@ fi
|
||||
|
||||
%post dvips
|
||||
[ -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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
@ -725,23 +725,23 @@ fi
|
||||
|
||||
%post latex
|
||||
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/latex.info.gz %{_infodir}/dir
|
||||
%{_bindir}/texconfig-sys init &> /dev/null
|
||||
%{_bindir}/texconfig-sys rehash 2> /dev/null
|
||||
%{_bindir}/fmtutil-sys --all &> /dev/null
|
||||
[ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys init &> /dev/null
|
||||
[ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
|
||||
[ -x %{_bindir}/fmtutil-sys ] && %{_bindir}/fmtutil-sys --all &> /dev/null
|
||||
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%post -n kpathsea
|
||||
/sbin/ldconfig
|
||||
[ -x /sbin/ldconfig ] && /sbin/ldconfig
|
||||
[ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/kpathsea.info.gz %{_infodir}/dir
|
||||
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
@ -774,7 +774,7 @@ fi
|
||||
:
|
||||
|
||||
%preun -n kpathsea
|
||||
/sbin/ldconfig
|
||||
[ -x /sbin/ldconfig ] && /sbin/ldconfig
|
||||
if [ "$1" = 0 ]; then
|
||||
[ -x /sbin/install-info ] && /sbin/install-info --delete %{_infodir}/kpathsea.info.gz %{_infodir}/dir
|
||||
fi
|
||||
@ -784,63 +784,63 @@ fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
:
|
||||
|
||||
%postun -n kpathsea
|
||||
/sbin/ldconfig
|
||||
[ -x /sbin/ldconfig ] && /sbin/ldconfig
|
||||
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
|
||||
fi
|
||||
@ -1238,6 +1238,9 @@ fi
|
||||
%{_mandir}/man1/texutil.1*
|
||||
|
||||
%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
|
||||
- add missing dependency on kpathsea
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user