tetex/tetex.spec

changeset 739
4b10bb3b97b3
parent 515
2f4b17c140a1
equal deleted inserted replaced
2:aaba7f153d8a 3:d4692a1841af
148 148
149 %build 149 %build
150 # configure the system by using the (wrong) paths to the temporary 150 # configure the system by using the (wrong) paths to the temporary
151 # installation area, followed by by a step for fixing the paths 151 # installation area, followed by by a step for fixing the paths
152 # (to the correct values) inside the kpathsea library (which 152 # (to the correct values) inside the kpathsea library (which
153 # performs the run-time searches). This way we get all the magic 153 # performs the runtime searches). This way we get all the magic
154 # of the teTeX build system without problems, but still make sure 154 # of the teTeX build system without problems, but still make sure
155 # that the built-in paths are correct. 155 # that the builtin paths are correct.
156 %{l_shtool} subst -s -v \ 156 %{l_shtool} subst -s -v \
157 -e 's;^vartexfonts =.*;vartexfonts = %{l_prefix}/var/tetex/fonts;' \ 157 -e 's;^vartexfonts =.*;vartexfonts = %{l_prefix}/var/tetex/fonts;' \
158 texk/make/paths.mk 158 texk/make/paths.mk
159 CC="%{l_cc}" \ 159 CC="%{l_cc}" \
160 CXX="%{l_cxx}" \ 160 CXX="%{l_cxx}" \
186 eval "make all" 186 eval "make all"
187 ) || exit $? 187 ) || exit $?
188 188
189 # build the sources 189 # build the sources
190 # (we cannot use %{l_make}, because teTeX dislikes absolute paths 190 # (we cannot use %{l_make}, because teTeX dislikes absolute paths
191 # for make. Instead we work-around via $PATH. The redundant 191 # for make. Instead we work around via $PATH. The redundant
192 # "eval" around the call is just to shut-up speclint) 192 # "eval" around the call is just to shut up speclint)
193 eval "make all" 193 eval "make all"
194 194
195 %install 195 %install
196 # reinstall teTeX texmf stuff 196 # reinstall teTeX texmf stuff
197 # (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)
200 %{l_gzip} -d -c %{SOURCE tetex-texmf-%{V_texmf}.tar.gz} |\ 200 %{l_gzip} -d -c %{SOURCE tetex-texmf-%{V_texmf}.tar.gz} |\
201 ( umask 0 && cd $RPM_BUILD_ROOT%{l_prefix}/share/texmf && %{l_tar} xf - ) || exit $? 201 ( umask 0 && cd $RPM_BUILD_ROOT%{l_prefix}/share/texmf && %{l_tar} xf - ) || exit $?
202 202
203 # perform the standard installation procdure of teTeX 203 # perform the standard installation procdure of teTeX
204 # (we cannot use %{l_make}, because teTeX dislikes absolute paths 204 # (we cannot use %{l_make}, because teTeX dislikes absolute paths
205 # for make. Instead we work-around via $PATH. The redundant 205 # for make. Instead we work around via $PATH. The redundant
206 # "eval" around the call is just to shut-up speclint) 206 # "eval" around the call is just to shut up speclint)
207 eval "make install" 207 eval "make install"
208 208
209 # create dynamically generated font directory 209 # create dynamically generated font directory
210 %{l_shtool} mkdir -f -p -m 755 \ 210 %{l_shtool} mkdir -f -p -m 755 \
211 $RPM_BUILD_ROOT%{l_prefix}/var/tetex 211 $RPM_BUILD_ROOT%{l_prefix}/var/tetex

mercurial