rpms/texlive-texmf/devel texlive-texmf.spec,1.25,1.26

Jindrich Novy (jnovy) fedora-extras-commits at redhat.com
Mon Jun 23 11:52:18 UTC 2008


Author: jnovy

Update of /cvs/extras/rpms/texlive-texmf/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17927

Modified Files:
	texlive-texmf.spec 
Log Message:
* Mon Jun 23 2008 Jindrich Novy <jnovy at redhat.com> - 2007-23
- do not directly depend on restorecon and run it only if
  selinux is enabled



Index: texlive-texmf.spec
===================================================================
RCS file: /cvs/extras/rpms/texlive-texmf/devel/texlive-texmf.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- texlive-texmf.spec	19 Jun 2008 13:35:21 -0000	1.25
+++ texlive-texmf.spec	23 Jun 2008 11:51:37 -0000	1.26
@@ -12,7 +12,7 @@
 
 Name:		texlive-texmf
 Version:	2007
-Release:	22%{?dist}
+Release:	23%{?dist}
 Summary:	Architecture independent parts of the TeX formatting system
 
 Group:		Applications/Publishing
@@ -62,7 +62,6 @@
 BuildRequires:  sed >= 3.95 ghostscript lzma
 
 Requires:	texlive-texmf-errata = %{version}
-Requires(post,postun): /sbin/restorecon
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 
@@ -80,7 +79,6 @@
 Summary:	Texmf files needed for texlive-afm
 Requires:	texlive-texmf = %{version}-%{release}
 Requires:	texlive-texmf-errata-afm = %{version}
-Requires(post,postun): /sbin/restorecon
 
 %description afm
 This package contains the components of the TEXMF tree needed for the
@@ -90,7 +88,6 @@
 Group:		Applications/Publishing
 Summary:	TeX documentation
 Requires:	texlive-texmf-errata-doc = %{version}
-Requires(post,postun): /sbin/restorecon
 Obsoletes:	tetex-doc < 3.0-99
 Provides:	tetex-doc = 3.0-99
 Obsoletes:	texlive-doc < 2007-7
@@ -106,7 +103,6 @@
 Summary:	Texmf files needed for texlive-dvips
 Requires:	texlive-texmf = %{version}-%{release}
 Requires:	texlive-texmf-errata-dvips = %{version}
-Requires(post,postun): /sbin/restorecon
 
 %description dvips
 This package contains the components of the TEXMF tree needed for the
@@ -118,8 +114,7 @@
 Requires:	texlive-texmf = %{version}-%{release}
 Requires:	texlive-texmf-dvips = %{version}-%{release}
 Requires:	texlive-texmf-errata-fonts = %{version}
-Requires(post): /sbin/restorecon coreutils
-Requires(postun): /sbin/restorecon
+Requires(post): coreutils
 
 %description fonts
 This package contains the components of the TEXMF tree needed for the
@@ -130,7 +125,6 @@
 Summary:	Texmf files needed for texlive-latex
 Requires:	texlive-texmf = %{version}-%{release}
 Requires:	texlive-texmf-errata-latex = %{version}
-Requires(post,postun): /sbin/restorecon
 %if !%{f8_packaging}
 Requires:	tex-preview
 %else
@@ -146,7 +140,6 @@
 Summary:	Texmf files needed for texlive-xetex
 Requires:	texlive-texmf = %{version}-%{release}
 Requires:	texlive-texmf-errata-xetex = %{version}
-Requires(post,postun): /sbin/restorecon
 
 %description xetex
 This package contains the components of the TEXMF tree needed for the
@@ -156,7 +149,6 @@
 Group:		Applications/Publishing
 Summary:	Texmf files needed for texlive-east-asian
 Requires:	texlive-texmf = %{version}-%{release}
-Requires(post,postun): /sbin/restorecon
 Obsoletes:	texlive-texmf-japanese < 2007-14
 Provides:	texlive-texmf-japanese = %{version}-%{release}
 
@@ -168,7 +160,6 @@
 Summary:	Texmf files needed for ConTeXt
 Requires:	texlive-texmf = %{version}-%{release}
 Requires:	texlive-texmf-errata-context = %{version}
-Requires(post,postun): /sbin/restorecon
 
 %description context
 This package contains the components of the TEXMF tree needed for the
@@ -440,17 +431,23 @@
 %post
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
 [ -x /sbin/install-info ] && /sbin/install-info %{_infodir}/tds.info.gz %{_infodir}/dir
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post afm
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post dvips
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post fonts
@@ -462,17 +459,23 @@
 else
   [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
 fi
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post latex
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post xetex
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post doc
@@ -481,12 +484,16 @@
 
 %post east-asian
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %post context
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %preun
@@ -498,47 +505,65 @@
 
 %postun
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun afm
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun dvips
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun fonts
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun latex
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun xetex
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun doc
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun east-asian
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %postun context
 [ -x %{_bindir}/texconfig-sys ] && %{_bindir}/texconfig-sys rehash 2> /dev/null
-[ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+  [ -x /sbin/restorecon ] && /sbin/restorecon -R %{_texmf_var}/
+fi
 :
 
 %files
@@ -793,6 +818,10 @@
 %doc %{_texmf_main}/doc/
 
 %changelog
+* Mon Jun 23 2008 Jindrich Novy <jnovy at redhat.com> - 2007-23
+- do not directly depend on restorecon and run it only if
+  selinux is enabled
+
 * Thu Jun 19 2008 Jindrich Novy <jnovy at redhat.com> - 2007-22
 - rebuild to have higher NVR than F9
 




More information about the fedora-extras-commits mailing list