tetex/tetex.spec

changeset 515
2f4b17c140a1
parent 506
ed99728b62ad
child 593
6a0daac879c0
equal deleted inserted replaced
1:d6e3c1352fea 2:aaba7f153d8a
145 -e "s;\(\$(scriptdir)/fmtutil-sys --all\);\1 --fmtdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/web2c;" \ 145 -e "s;\(\$(scriptdir)/fmtutil-sys --all\);\1 --fmtdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/web2c;" \
146 -e "s,\(\$(scriptdir)/updmap-sys\);,\1 --dvipsoutputdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/fonts/map/dvips/updmap --pdftexoutputdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/fonts/map/dvips/updmap --dvipdfmoutputdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/fonts/map/dvips/updmap;," \ 146 -e "s,\(\$(scriptdir)/updmap-sys\);,\1 --dvipsoutputdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/fonts/map/dvips/updmap --pdftexoutputdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/fonts/map/dvips/updmap --dvipdfmoutputdir $RPM_BUILD_ROOT%{l_prefix}/share/texmf/fonts/map/dvips/updmap;," \
147 Makefile.in 147 Makefile.in
148 148
149 %build 149 %build
150 smpcpu=`echo %{l_mflags -O} | %{l_shtool} subst -e 's;.*\(\-j[1-9][0-9]*\).*;\1'`
151 # configure the system by using the (wrong) paths to the temporary 150 # configure the system by using the (wrong) paths to the temporary
152 # installation area, followed by by a step for fixing the paths 151 # installation area, followed by by a step for fixing the paths
153 # (to the correct values) inside the kpathsea library (which 152 # (to the correct values) inside the kpathsea library (which
154 # performs the run-time searches). This way we get all the magic 153 # performs the run-time searches). This way we get all the magic
155 # of the teTeX build system without problems, but still make sure 154 # of the teTeX build system without problems, but still make sure
182 --with-zlib-include=%{l_prefix}/include 181 --with-zlib-include=%{l_prefix}/include
183 ( cd texk/kpathsea 182 ( cd texk/kpathsea
184 %{l_shtool} subst -v \ 183 %{l_shtool} subst -v \
185 -e "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \ 184 -e "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \
186 `find . -type f -print` 185 `find . -type f -print`
187 eval "make $smpcpu all" 186 eval "make all"
188 ) || exit $? 187 ) || exit $?
189 188
190 # build the sources 189 # build the sources
191 # (we cannot use %{l_make}, because teTeX dislikes absolute paths 190 # (we cannot use %{l_make}, because teTeX dislikes absolute paths
192 # for make. Instead we work-around via $PATH. The redundant 191 # for make. Instead we work-around via $PATH. The redundant
193 # "eval" around the call is just to shut-up speclint) 192 # "eval" around the call is just to shut-up speclint)
194 eval "make $smpcpu all" 193 eval "make all"
195 194
196 %install 195 %install
197 # reinstall teTeX texmf stuff 196 # reinstall teTeX texmf stuff
198 # (because RPM 5 implicitly removes $RPM_BUILD_ROOT at begin of %install) 197 # (because RPM 5 implicitly removes $RPM_BUILD_ROOT at begin of %install)
199 %{l_shtool} mkdir -f -p -m 755 \ 198 %{l_shtool} mkdir -f -p -m 755 \

mercurial