tetex/tetex.spec

changeset 511
cd3bc1f98306
parent 505
0838649dd325
child 515
2f4b17c140a1
equal deleted inserted replaced
0:be406331bed8 1:d6e3c1352fea
37 Distribution: OpenPKG Community 37 Distribution: OpenPKG Community
38 Class: BASE 38 Class: BASE
39 Group: Typesetting 39 Group: Typesetting
40 License: GPL 40 License: GPL
41 Version: %{V_src} 41 Version: %{V_src}
42 Release: 20120623 42 Release: 20120800
43 43
44 # list of sources 44 # list of sources
45 Source0: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/%{V_base}/distrib/tetex-src-%{V_src}.tar.gz 45 Source0: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/%{V_base}/distrib/tetex-src-%{V_src}.tar.gz
46 Source1: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/%{V_base}/distrib/tetex-texmf-%{V_texmf}.tar.gz 46 Source1: ftp://tug.ctan.org/tex-archive/systems/unix/teTeX/%{V_base}/distrib/tetex-texmf-%{V_texmf}.tar.gz
47 Source2: http://download.openpkg.org/components/versioned/tetex/passivetex-%{V_passivetex}.zip 47 Source2: http://download.openpkg.org/components/versioned/tetex/passivetex-%{V_passivetex}.zip
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'`
150 # configure the system by using the (wrong) paths to the temporary 151 # configure the system by using the (wrong) paths to the temporary
151 # installation area, followed by by a step for fixing the paths 152 # installation area, followed by by a step for fixing the paths
152 # (to the correct values) inside the kpathsea library (which 153 # (to the correct values) inside the kpathsea library (which
153 # performs the run-time searches). This way we get all the magic 154 # performs the run-time searches). This way we get all the magic
154 # of the teTeX build system without problems, but still make sure 155 # of the teTeX build system without problems, but still make sure
181 --with-zlib-include=%{l_prefix}/include 182 --with-zlib-include=%{l_prefix}/include
182 ( cd texk/kpathsea 183 ( cd texk/kpathsea
183 %{l_shtool} subst -v \ 184 %{l_shtool} subst -v \
184 -e "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \ 185 -e "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \
185 `find . -type f -print` 186 `find . -type f -print`
186 eval "make all" 187 eval "make $smpcpu all"
187 ) || exit $? 188 ) || exit $?
188 189
189 # build the sources 190 # build the sources
190 # (we cannot use %{l_make}, because teTeX dislikes absolute paths 191 # (we cannot use %{l_make}, because teTeX dislikes absolute paths
191 # for make. Instead we work-around via $PATH. The redundant 192 # for make. Instead we work-around via $PATH. The redundant
192 # "eval" around the call is just to shut-up speclint) 193 # "eval" around the call is just to shut-up speclint)
193 eval "make all" 194 eval "make $smpcpu all"
194 195
195 %install 196 %install
196 # reinstall teTeX texmf stuff 197 # reinstall teTeX texmf stuff
197 # (because RPM 5 implicitly removes $RPM_BUILD_ROOT at begin of %install) 198 # (because RPM 5 implicitly removes $RPM_BUILD_ROOT at begin of %install)
198 %{l_shtool} mkdir -f -p -m 755 \ 199 %{l_shtool} mkdir -f -p -m 755 \

mercurial