tetex/tetex.spec

changeset 506
ed99728b62ad
parent 505
0838649dd325
child 515
2f4b17c140a1
     1.1 --- a/tetex/tetex.spec	Fri Aug 10 14:12:46 2012 +0200
     1.2 +++ b/tetex/tetex.spec	Fri Aug 10 14:15:27 2012 +0200
     1.3 @@ -39,7 +39,7 @@
     1.4  Group:        Typesetting
     1.5  License:      GPL
     1.6  Version:      %{V_src}
     1.7 -Release:      20120623
     1.8 +Release:      20120800
     1.9  
    1.10  #   list of sources
    1.11  Source0:      ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/%{V_base}/distrib/tetex-src-%{V_src}.tar.gz
    1.12 @@ -147,6 +147,7 @@
    1.13          Makefile.in
    1.14  
    1.15  %build
    1.16 +    smpcpu=`echo %{l_mflags -O} | %{l_shtool} subst -e 's;.*\(\-j[1-9][0-9]*\).*;\1'`
    1.17      #   configure the system by using the (wrong) paths to the temporary
    1.18      #   installation area, followed by by a step for fixing the paths
    1.19      #   (to the correct values) inside the kpathsea library (which
    1.20 @@ -183,14 +184,14 @@
    1.21        %{l_shtool} subst -v \
    1.22            -e "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \
    1.23            `find . -type f -print`
    1.24 -      eval "make all"
    1.25 +      eval "make $smpcpu all"
    1.26      ) || exit $?
    1.27  
    1.28      #   build the sources
    1.29      #   (we cannot use %{l_make}, because teTeX dislikes absolute paths
    1.30      #   for make. Instead we work-around via $PATH. The redundant
    1.31      #   "eval" around the call is just to shut-up speclint)
    1.32 -    eval "make all"
    1.33 +    eval "make $smpcpu all"
    1.34  
    1.35  %install
    1.36      #   reinstall teTeX texmf stuff

mercurial