Ver código fonte

- teTeX requires flex and bison - by default do not built with X11 stuff (only xdvi!) but allow one to enable it again.

Ralf S. Engelschall 24 anos atrás
pai
commit
cecccffe04
1 arquivos alterados com 11 adições e 2 exclusões
  1. 11 2
      tetex/tetex.spec

+ 11 - 2
tetex/tetex.spec

@@ -26,6 +26,8 @@
 %define       V_src   1.0.7
 %define       V_texmf 1.0.2
 
+%define       with_x11  no
+
 #   package information
 Name:         tetex
 Summary:      The TeX Typesetting System
@@ -47,7 +49,7 @@ Source3:      ftp://ftp.tex.ac.uk/tex-archive/macros/xmltex/base.zip
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 0.9-20011025.0, make, gzip, infozip
+BuildPreReq:  OpenPKG, openpkg >= 0.9-20011025.0, make, gzip, infozip, flex, bison
 PreReq:       OpenPKG, openpkg >= 0.9-20011025.0
 AutoReq:      no
 AutoReqProv:  no
@@ -142,8 +144,15 @@ AutoReqProv:  no
     ./configure \
         --prefix=$RPM_BUILD_ROOT%{l_prefix} \
         --datadir=$RPM_BUILD_ROOT%{l_prefix}/share \
+%if "%{with_x11}" == "no"
+        --without-xdvik \
+        --without-oxdvik \
+        --without-x \
+        --without-x11 \
+        --without-x11win \
+%endif
         --disable-multiplatform \
-        --enable-gf 
+        --enable-gf
     ( cd texk/kpathsea
       %{l_rpmtool} subst -v \
           "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \