[1533] | 1 | ## -*- coding: utf-8-unix -*- |
---|
[4346] | 2 | ## TODO: for vl6 or higher, R: poppler >= 0.12, BR: poppler-devel >= 0.12 |
---|
[1533] | 3 | %bcond_with firstbuild |
---|
| 4 | |
---|
[2421] | 5 | %define enable_sharedlib 1 |
---|
| 6 | %if %{?_dist_release} == "vl5" |
---|
| 7 | %define enable_sharedlib 0 |
---|
| 8 | %endif |
---|
| 9 | |
---|
[1533] | 10 | %define with_babel 1 |
---|
| 11 | |
---|
| 12 | %define ptexlivever 20100711 |
---|
| 13 | %define texlivesrcver 20091107 |
---|
| 14 | %define texlivever 20091107 |
---|
| 15 | |
---|
| 16 | ## we provides e-pTeX and upTeX |
---|
| 17 | %define with_uptex 0 |
---|
| 18 | %define with_eptex 1 |
---|
| 19 | %define uptexver 0.30 |
---|
| 20 | %define uptex_fontver 0.30 |
---|
| 21 | %define eptexver 100420 |
---|
| 22 | |
---|
| 23 | %define tex_destdir %{_datadir} |
---|
| 24 | %define texmf %{tex_destdir}/texmf |
---|
| 25 | %define texlive_src %{tex_destdir}/texlive-sources |
---|
| 26 | %define build_tex_destdir %{buildroot}%{tex_destdir} |
---|
| 27 | %define build_texmf %{buildroot}%{texmf} |
---|
| 28 | |
---|
| 29 | %define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash |
---|
| 30 | %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash |
---|
| 31 | %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop |
---|
| 32 | %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null |
---|
| 33 | %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null |
---|
[3703] | 34 | %define vartexfonts %{_var}/lib/texmf/fonts |
---|
[1533] | 35 | |
---|
| 36 | Autoreq: 0 |
---|
| 37 | |
---|
| 38 | Summary: The TeX text formatting system |
---|
| 39 | Summary(ja): TeX 文書整形システム |
---|
| 40 | Name: texlive |
---|
| 41 | Version: 2009 |
---|
[7079] | 42 | Release: 23%{?_dist_release} |
---|
[1533] | 43 | License: distributable |
---|
| 44 | Group: Applications/Publishing |
---|
| 45 | ## The TeX Live is located on http://www.tug.org/texlive/ |
---|
| 46 | ## e-pTeX: http://eptex.sourceforge.jp/ |
---|
| 47 | ## upTeX: http://homepage3.nifty.com/ttk/comp/tex/uptex.html |
---|
| 48 | URL: http://tutimura.ath.cx/ptexlive/ |
---|
| 49 | |
---|
| 50 | ## original TeX Live sources |
---|
| 51 | Source: http://tutimura.ath.cx/~nob/tex/ptexlive/ptexlive-%{ptexlivever}.tar.gz |
---|
| 52 | |
---|
| 53 | ##Source1: ftp://tug.org/historic/systems/texlive/2009/%{name}-%{texlivesrcver}-source.tar.xz |
---|
| 54 | ##Source2: ftp://tug.org/historic/systems/texlive/2009/%{name}-%{texlivever}-texmf.tar.xz |
---|
| 55 | ##Source3: ftp://tug.org/historic/systems/texlive/2009/%{name}-%{texlivever}-extra.tar.xz |
---|
| 56 | ##Source4: ftp://tug.org/historic/systems/texlive/2009/%{name}-%{texlivever}-bin.tar.xz |
---|
| 57 | ##Source5: ftp://tug.org/historic/systems/texlive/2009/tlnet/install-tl-unx.tar.gz |
---|
| 58 | |
---|
| 59 | ## pxdvi |
---|
| 60 | Source10: pxdvi.desktop |
---|
| 61 | |
---|
| 62 | ## dvipdfmx |
---|
| 63 | #Source20: |
---|
| 64 | |
---|
| 65 | ## texdoc |
---|
| 66 | ## http://github.com/mpg/texdoc |
---|
| 67 | ## Downloaded mpg-texdoc-0.72-0-gfdb7657.tar.gz |
---|
| 68 | ## Renamed this archive: |
---|
| 69 | # $ tar zxf mpg-texdoc-0.72-0-gfdb7657.tar.gz |
---|
| 70 | # $ mv mpg-texdoc-b66e1e3 texdoc-0.72 |
---|
| 71 | # $ tar zcf texdoc-0.72.tar.gz texdoc-0.72 |
---|
| 72 | #Source90: texdoc-%{texdocver}.tar.gz |
---|
| 73 | |
---|
| 74 | ## Japanese ptex |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | # ## Babel |
---|
| 78 | # ## See [texqa:37398] http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/37398.html |
---|
| 79 | # Source40: http://www.ctan.org/tex-archive/obsolete/systems/win32/fptex/0.7/collection/tex-langother.zip |
---|
| 80 | # Source41: http://www.ctan.org/tex-archive/obsolete/systems/win32/fptex/0.7/package/texlive-base.zip |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | ## e-pTeX, upTeX |
---|
| 84 | Source50: http://homepage3.nifty.com/ttk/comp/tex/uptex-%{uptexver}.tar.gz |
---|
| 85 | Source51: http://homepage3.nifty.com/ttk/comp/tex/uptex_font-%{uptex_fontver}.tar.gz |
---|
| 86 | Source52: http://sourceforge.jp/projects/eptex/downloads/43841/eptex-%{eptexver}.tar.bz2 |
---|
| 87 | |
---|
| 88 | ## etc... |
---|
| 89 | Source100: texlive.cron |
---|
| 90 | Source101: dvi-to-ps.fpi |
---|
| 91 | Source102: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty |
---|
| 92 | Source103: ps-morisawa.map |
---|
| 93 | Source104: ps-morisawa-noEmbed.map |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | # ## do not provide any perl deps (#516350) |
---|
| 97 | # %define __perl_provides %{nil} |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | ###### |
---|
| 101 | # TeX patches |
---|
| 102 | ###### |
---|
| 103 | |
---|
| 104 | ## vine |
---|
| 105 | Patch0: ptexlive-%{ptexlivever}-vine.patch |
---|
| 106 | Patch1: texlive-%{texlivesrcver}-set-selfautodir.patch |
---|
| 107 | ##Patch1: texlive-2009-texmfcnf-selfautodir-vine.patch |
---|
| 108 | Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch |
---|
| 109 | |
---|
[2503] | 110 | ## (p)xdvik |
---|
[1533] | 111 | Patch10: ptexlive-%{ptexlivever}-pxdvik-vine.patch |
---|
[2503] | 112 | Patch11: texlive-%{texlivesrcver}-xdvik-vine.patch |
---|
[1533] | 113 | |
---|
| 114 | ## dvipdfmx |
---|
| 115 | Patch20: ptexlive-%{ptexlivever}-dvipdfmx-vine.patch |
---|
| 116 | |
---|
| 117 | ## e-pTeX + upTeX |
---|
| 118 | Patch50: eptex-100420-vine.patch |
---|
| 119 | Patch51: http://sourceforge.jp/projects/eptex/wiki/FrontPage/attach/eptex-100420-patch1.diff |
---|
| 120 | |
---|
| 121 | ## texdoc |
---|
| 122 | #Patch90: texdoc-0.72-support-zipped-vine.patch |
---|
| 123 | |
---|
| 124 | ## others |
---|
[1973] | 125 | ## libpoppler-0.12 from texlive-bin_2009-7.diff.gz |
---|
| 126 | Patch100: texlive-2009-pdftexdir-libpoppler-0.12.patch |
---|
| 127 | Patch101: texlive-2009-luatexdir-libpoppler-0.12.patch |
---|
[1533] | 128 | |
---|
[1973] | 129 | ## security |
---|
| 130 | ## from Debian |
---|
| 131 | #Patch1000: texlive-2009-CVE-2010-0739.patch |
---|
| 132 | Patch1001: texlive-2009-CVE-2010-0827.patch |
---|
| 133 | ## this overrides the incomplete fix for CVE-2010-0793 |
---|
| 134 | Patch1002: texlive-2009-CVE-2010-1440.patch |
---|
[1533] | 135 | |
---|
[1973] | 136 | |
---|
| 137 | Requires: coreutils |
---|
[1533] | 138 | Requires: ed mktemp |
---|
[1973] | 139 | Requires: tmpwatch |
---|
| 140 | Requires: zlib |
---|
| 141 | Requires: libpng |
---|
| 142 | Requires: gd |
---|
| 143 | Requires: ncurses |
---|
| 144 | Requires: libjpeg |
---|
| 145 | Requires: t1lib |
---|
| 146 | Requires: freetype2 |
---|
[1533] | 147 | Requires: openMotif |
---|
| 148 | Requires: poppler |
---|
| 149 | Requires: openssl |
---|
| 150 | Requires: libpaper |
---|
[1973] | 151 | Requires: fontconfig |
---|
[3944] | 152 | Requires: perl-Tk perl-Tk-TableMatrix |
---|
[1533] | 153 | Requires: nkf |
---|
[1973] | 154 | Requires: ghostscript >= 8.63 |
---|
[2421] | 155 | %if %{?_dist_release} == "vl6" |
---|
[1533] | 156 | Requires: libkpathsea = %{version}-%{release} |
---|
| 157 | Requires: libptexenc = %{version}-%{release} |
---|
[2421] | 158 | %endif |
---|
[3944] | 159 | #%{!?with_firstbuild:Requires: texlive-common = %{version}} |
---|
[2421] | 160 | %if %{?_dist_release} == "vl6" |
---|
[1533] | 161 | %{!?with_firstbuild:Requires: jvf >= 2.0-5} |
---|
[2421] | 162 | %endif |
---|
| 163 | %if %{?_dist_release} == "vl5" |
---|
| 164 | %{!?with_firstbuild:Requires: texlive-jvf >= 2.0-5} |
---|
| 165 | %endif |
---|
[1533] | 166 | Requires: fontconfig >= 2.6.0-2 |
---|
| 167 | Requires(post,postun): fontconfig >= 2.6.0-2 |
---|
| 168 | Requires(post): ed mktemp |
---|
| 169 | Requires(post): vutils >= 2.0.5 |
---|
| 170 | %{!?with_firstbuild:BuildRequires: texlive-common = %{version}} |
---|
| 171 | BuildRequires: texlive-sources = %{version} |
---|
| 172 | BuildRequires: xz |
---|
| 173 | BuildRequires: unzip |
---|
| 174 | BuildRequires: bison flex |
---|
[1973] | 175 | BuildRequires: zlib-devel |
---|
| 176 | BuildRequires: libpng-devel |
---|
| 177 | BuildRequires: gd-devel |
---|
| 178 | BuildRequires: ncurses-devel |
---|
| 179 | BuildRequires: libjpeg-devel |
---|
[1533] | 180 | BuildRequires: t1lib-devel |
---|
| 181 | BuildRequires: XOrg-devel |
---|
| 182 | BuildRequires: freetype2-devel >= 2.1.10 |
---|
| 183 | BuildRequires: autoconf >= 2.63 |
---|
| 184 | BuildRequires: openMotif-devel |
---|
| 185 | BuildRequires: poppler-devel |
---|
| 186 | BuildRequires: openssl-devel |
---|
| 187 | BuildRequires: libpaper-devel |
---|
| 188 | BuildRequires: fontconfig-devel |
---|
| 189 | BuildRequires: nkf |
---|
[3840] | 190 | #BuildRequires: t1utils |
---|
[1533] | 191 | |
---|
| 192 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 193 | |
---|
| 194 | Vendor: Project Vine |
---|
| 195 | Distribution: Vine Linux |
---|
| 196 | Packager: munepi |
---|
| 197 | |
---|
| 198 | |
---|
| 199 | %description |
---|
| 200 | The TeX Live software distribution offers a complete TeX system for a |
---|
| 201 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
| 202 | encompasses programs for editing, typesetting, previewing and printing |
---|
| 203 | of TeX documents in many different languages, and a large collection |
---|
| 204 | of TeX macros and font libraries. |
---|
| 205 | |
---|
| 206 | The distribution includes extensive general documentation about TeX, |
---|
| 207 | as well as the documentation for the included software packages. |
---|
| 208 | |
---|
| 209 | This package provides a Japanese TeX environment |
---|
| 210 | based on ptexlive-%{ptexlivever}. |
---|
| 211 | |
---|
| 212 | |
---|
| 213 | %description -l ja |
---|
| 214 | TeX Live ソフトウェアディストリビューションは、 |
---|
| 215 | さまざまな Unix, Macintosh, Windows、および |
---|
| 216 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
| 217 | 多くの異なった言語を含む TeX ドキュメントの |
---|
| 218 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
| 219 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
| 220 | 同梱しています。 |
---|
| 221 | |
---|
| 222 | このディストリビューションは |
---|
| 223 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
| 224 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
| 225 | |
---|
| 226 | このパッケージは ptexlive-%{ptexlivever} を元にした |
---|
| 227 | 日本語 TeX 環境を提供します。 |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | %package doc |
---|
| 231 | Summary: TeX Live: Documentation files of %{name} |
---|
| 232 | Group: Applications/Publishing |
---|
| 233 | Requires: %{name} = %{version}-%{release} |
---|
[2421] | 234 | %if %{?_dist_release} != "vl5" |
---|
[1542] | 235 | BuildArch: noarch |
---|
[2421] | 236 | %endif |
---|
[1533] | 237 | |
---|
| 238 | %description doc |
---|
| 239 | This package contains documentation files of %{name}. |
---|
| 240 | |
---|
[2421] | 241 | %if %{enable_sharedlib} |
---|
[1533] | 242 | %package -n libkpathsea |
---|
| 243 | Summary: path search library for the TeX Live |
---|
| 244 | Summary(ja): TeX Live 用パス検索ライブラリ |
---|
| 245 | Group: System Environment/Libraries |
---|
| 246 | |
---|
| 247 | %description -n libkpathsea |
---|
| 248 | This package includes runtime part of the Kpathsea library. |
---|
| 249 | |
---|
| 250 | |
---|
| 251 | %package -n libkpathsea-devel |
---|
| 252 | Summary: path search libary and header files for the TeX Live |
---|
| 253 | Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル |
---|
| 254 | Group: Development/Libraries |
---|
| 255 | Requires: libkpathsea = %{version}-%{release} |
---|
| 256 | |
---|
| 257 | %description -n libkpathsea-devel |
---|
| 258 | This package includes static library and header files of the Kpathsea library. |
---|
| 259 | |
---|
| 260 | |
---|
| 261 | %package -n libptexenc |
---|
| 262 | Summary: Kanji code convert library for Japanese pTeX |
---|
| 263 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ |
---|
| 264 | Group: System Environment/Libraries |
---|
| 265 | Requires: libkpathsea = %{version}-%{release} |
---|
| 266 | |
---|
| 267 | %description -n libptexenc |
---|
| 268 | This package includes runtime part of the ptexenc library. |
---|
| 269 | |
---|
| 270 | |
---|
| 271 | %package -n libptexenc-devel |
---|
| 272 | Summary: Kanji code convert library and header files for Japanese pTeX |
---|
| 273 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル |
---|
| 274 | Group: Development/Libraries |
---|
| 275 | Requires: libptexenc = %{version}-%{release} |
---|
| 276 | |
---|
| 277 | %description -n libptexenc-devel |
---|
| 278 | This package includes header files of the ptexenc library. |
---|
[2421] | 279 | %endif |
---|
[1533] | 280 | |
---|
| 281 | |
---|
| 282 | %prep |
---|
| 283 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
| 284 | |
---|
| 285 | #% setup -q -n ptexlive-%{ptexlivever} -a 90 |
---|
| 286 | %setup -q -n ptexlive-%{ptexlivever} |
---|
| 287 | |
---|
| 288 | ## extract texlive-source |
---|
| 289 | %__tar Jxf %{texlive_src}/source/%{name}-%{texlivesrcver}-source.tar.xz || exit 1 |
---|
| 290 | |
---|
| 291 | ## move texlive-source to build/ |
---|
| 292 | %__mkdir_p build && \ |
---|
| 293 | %__mv %{name}-%{texlivesrcver}-source build/ || exit 1 |
---|
| 294 | |
---|
| 295 | ## apply ptexlive |
---|
| 296 | %patch0 -p1 -b .orig |
---|
| 297 | |
---|
| 298 | ## fix $SELFAUTODIR to /usr/share |
---|
| 299 | %patch1 -p1 -b .orig |
---|
| 300 | |
---|
| 301 | %__cat <<EOF > ptexlive.cfg |
---|
| 302 | #KANJI_CODE=EUC |
---|
| 303 | KANJI_CODE=UTF8 |
---|
| 304 | |
---|
| 305 | TEXLIVE_VERSION=2009 |
---|
| 306 | ISO_DIR=%{texlive_src} |
---|
| 307 | TEXLIVE_DIR=%{texlive_src} |
---|
| 308 | ##SRC_DIR=%{_sourcedir} |
---|
| 309 | SRC_TAR=%{SOURCE0} |
---|
| 310 | |
---|
| 311 | ##PREFIX=%{tex_destdir} |
---|
| 312 | PREFIX=$(pwd)/Vine |
---|
| 313 | TMP_PREFIX=$(pwd)/build |
---|
| 314 | TEXSRC_EXTRACTED=$(pwd)/build/%{name}-%{texlivesrcver}-source |
---|
| 315 | ##SRC_TAR=%{SOURCE1} |
---|
| 316 | ##TEXMFDIST=$(pwd)/build/%{name}-%{texlivesrcver}-source/inst/texmf-dist |
---|
| 317 | TEXMFDIST=%{texlive_src}/texmf-dist |
---|
| 318 | |
---|
| 319 | XDVI=echo |
---|
| 320 | PSPDF=echo |
---|
| 321 | |
---|
| 322 | conf_option --enable-luatex |
---|
| 323 | conf_option --enable-xetex |
---|
| 324 | conf_option --enable-xdv2pdf |
---|
| 325 | conf_option --enable-xdvipdfmx |
---|
| 326 | |
---|
| 327 | conf_option --with-xdvi-x-toolkit=motif |
---|
| 328 | # conf_option --without-x |
---|
| 329 | # conf_option --disable-xdvik |
---|
| 330 | # conf_option --disable-oxdvik |
---|
| 331 | # conf_option --disable-pxdvik |
---|
| 332 | |
---|
| 333 | conf_option --with-system-ncurses |
---|
| 334 | conf_option --with-system-zlib |
---|
| 335 | conf_option --with-system-pnglib |
---|
| 336 | conf_option --with-system-t1lib |
---|
[1973] | 337 | conf_option --with-system-xpdf |
---|
[1533] | 338 | conf_option --with-system-freetype |
---|
| 339 | conf_option --with-system-freetype2 |
---|
| 340 | conf_option --with-freetype2-include=`freetype-config --cflags | sed -e 's/-I//' -e 's/ .*//'` |
---|
| 341 | conf_option --with-system-gd |
---|
[2421] | 342 | EOF |
---|
| 343 | |
---|
[2456] | 344 | ## For vl5, libkpathsea and libptexenc libraries are static link |
---|
[2421] | 345 | %if %{enable_sharedlib} |
---|
| 346 | %__cat <<EOF >> ptexlive.cfg |
---|
[1533] | 347 | conf_option --enable-shared |
---|
[2421] | 348 | EOF |
---|
| 349 | %endif |
---|
| 350 | |
---|
| 351 | %__cat <<EOF >> ptexlive.cfg |
---|
[1533] | 352 | conf_option --enable-kanji-iconv |
---|
| 353 | |
---|
| 354 | conf_option --disable-multiplatform |
---|
| 355 | make_option %{?_smp_mflags} |
---|
| 356 | EOF |
---|
| 357 | |
---|
| 358 | ## exec 2extract-src.sh |
---|
| 359 | %__make x |
---|
| 360 | |
---|
| 361 | ## texmf.cnf for Vine Linux |
---|
| 362 | %patch2 -p1 -b .orig |
---|
| 363 | |
---|
[2503] | 364 | ## (p)xdvik for Vine Linux |
---|
[1533] | 365 | %patch10 -p1 -b .orig |
---|
[2503] | 366 | %patch11 -p1 -b .orig |
---|
[1533] | 367 | |
---|
| 368 | ## dvipdfmx for Vine Linux |
---|
| 369 | %patch20 -p1 -b .orig |
---|
| 370 | |
---|
| 371 | ## eptex |
---|
| 372 | (cd .. |
---|
| 373 | %__tar jxf %{SOURCE52} |
---|
| 374 | cd eptex-%{eptexver} |
---|
| 375 | %patch50 -p1 -b .orig |
---|
| 376 | %patch51 -p1 -b .orig |
---|
| 377 | ## apply eptex: exec almost 0eptex.sh |
---|
| 378 | %if %with_eptex |
---|
| 379 | ./0eptex.sh |
---|
| 380 | %endif |
---|
| 381 | ) |
---|
| 382 | |
---|
| 383 | ## texdoc |
---|
| 384 | #%patch90 -p0 -b .orig |
---|
| 385 | |
---|
[1973] | 386 | ## libpoppler-0.12 |
---|
[2421] | 387 | %if %{?_dist_release} != "vl5" |
---|
[1973] | 388 | (cd build/%{name}-%{texlivesrcver}-source |
---|
| 389 | %patch100 -p1 -b .xpdf |
---|
| 390 | %patch101 -p1 -b .xpdf |
---|
| 391 | ) |
---|
[2421] | 392 | %endif |
---|
[1533] | 393 | |
---|
[1973] | 394 | ## apply security patches |
---|
| 395 | (cd build/%{name}-%{texlivesrcver}-source |
---|
| 396 | #%patch1000 |
---|
| 397 | %patch1001 -p1 -b .security |
---|
| 398 | %patch1002 -p1 -b .security |
---|
| 399 | ) |
---|
| 400 | |
---|
| 401 | |
---|
[1533] | 402 | %build |
---|
| 403 | ## NOTE: |
---|
| 404 | ## In this setion, |
---|
| 405 | ## execute almostly 3make-install.sh |
---|
| 406 | set -x |
---|
| 407 | unset TEXINPUTS || : |
---|
| 408 | unset HOME || : |
---|
| 409 | |
---|
| 410 | . ./common.sh |
---|
| 411 | |
---|
| 412 | export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LANG=C |
---|
| 413 | ##%__make c |
---|
| 414 | |
---|
| 415 | PREF=${TEXSRC_EXTRACTED}/inst |
---|
| 416 | |
---|
| 417 | %__mkdir_p ${PREF}/texmf |
---|
| 418 | %__mkdir_p ${PREF}/../Work |
---|
| 419 | pushd ${PREF}/../Work |
---|
| 420 | ../configure --host=%{_host} --build=%{_build} \ |
---|
| 421 | --prefix=${PREF} \ |
---|
| 422 | --datadir=${PREF} \ |
---|
| 423 | \ |
---|
| 424 | --disable-native-texlive-build \ |
---|
| 425 | --enable-multiplatform \ |
---|
| 426 | --disable-omfonts \ |
---|
| 427 | --enable-compiler-warnings=max \ |
---|
| 428 | --without-cxx-runtime-hack \ |
---|
| 429 | --enable-kanji=$KANJI_CODE \ |
---|
| 430 | --with-ptexenc=$KANJI_CODE \ |
---|
| 431 | --disable-all-pkgs \ |
---|
| 432 | --enable-web2c \ |
---|
| 433 | --disable-luatex \ |
---|
| 434 | --disable-xetex \ |
---|
| 435 | --enable-mf \ |
---|
| 436 | --enable-mf-nowin \ |
---|
| 437 | --enable-mp \ |
---|
| 438 | --enable-web-progs \ |
---|
| 439 | --enable-dvipdfmx \ |
---|
| 440 | --enable-dvipsk \ |
---|
| 441 | --enable-pdvipsk \ |
---|
| 442 | --enable-gsftopk \ |
---|
| 443 | --enable-makeindexk \ |
---|
| 444 | --enable-makejvf \ |
---|
| 445 | --enable-mendexk \ |
---|
| 446 | --enable-ps2pkm \ |
---|
| 447 | --enable-xdvik \ |
---|
| 448 | --enable-pxdvik \ |
---|
| 449 | --enable-tetex \ |
---|
| 450 | --enable-texlive \ |
---|
| 451 | $CONF_OPTION |
---|
| 452 | |
---|
| 453 | |
---|
| 454 | (cd .. |
---|
| 455 | ## Avoid pollution from internal libraries. |
---|
[1973] | 456 | %__rm -rf ./libs/{expat,freetype,freetype2,gd,jpeg,libpng,libttf,ncurses,type1,t1lib,unzip,xpdf,zlib} |
---|
[1533] | 457 | |
---|
| 458 | ## XXX Hacks to avoid accidental version clashs with system libraries. |
---|
| 459 | hack_libs=( |
---|
| 460 | zlib |
---|
| 461 | libpng |
---|
| 462 | t1lib |
---|
| 463 | freetype |
---|
| 464 | freetype2 |
---|
| 465 | gd |
---|
[1973] | 466 | xpdf |
---|
[1533] | 467 | ) |
---|
| 468 | for i in "${hack_libs[@]}"; do |
---|
| 469 | %__mkdir_p ./libs/${i} |
---|
| 470 | touch ./libs/${i}/configure |
---|
| 471 | done |
---|
| 472 | ) |
---|
| 473 | |
---|
| 474 | %__make world $MAKE_OPTION %{?_smp_mflags} |
---|
| 475 | popd |
---|
| 476 | |
---|
| 477 | |
---|
| 478 | %install |
---|
[1542] | 479 | ## prepare %%install session |
---|
[1533] | 480 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
| 481 | |
---|
| 482 | set -x |
---|
| 483 | unset TEXINPUTS || : |
---|
| 484 | unset HOME || : |
---|
| 485 | |
---|
| 486 | . ./common.sh |
---|
| 487 | |
---|
| 488 | PREF=${TEXSRC_EXTRACTED}/inst |
---|
| 489 | |
---|
| 490 | pushd ${PREF}/../Work |
---|
| 491 | ## the following two lines are useful for |
---|
| 492 | ## "rpmbuild -ba --short-circuit ~/rpm/SPECS/texlive-vl.spec" |
---|
| 493 | %__rm -rf ${PREF} |
---|
| 494 | %__make world $MAKE_OPTION |
---|
| 495 | popd |
---|
| 496 | |
---|
| 497 | ## execute almostly 4extract-texmf.sh |
---|
| 498 | %__mv ${PREF}/texmf-dist ${PREF}/texmf-dist.install || exit # never use |
---|
| 499 | %__mv ${PREF}/texmf ${PREF}/texmf.install || exit |
---|
| 500 | %__cp -r %{texlive_src}/texmf ${PREF}/ || exit |
---|
| 501 | %__cp -rf ${PREF}/texmf.install/* ${PREF}/texmf/ || exit |
---|
| 502 | |
---|
| 503 | ## copy almost compatible TeX system of teTeX-3.0 |
---|
| 504 | ## NOTE: The size of texmf-dist is about 2GB below: |
---|
| 505 | # 890M doc |
---|
| 506 | # 660M fonts |
---|
| 507 | # 103M source |
---|
| 508 | # |
---|
| 509 | # 68M tex/latex |
---|
| 510 | # 46M tex/generic |
---|
| 511 | # 27M tex/context |
---|
| 512 | ##%__ln_s -f %{texlive_src}/texmf-dist ${PREF}/ |
---|
| 513 | %__mkdir_p ${PREF}/texmf-dist |
---|
| 514 | ##!! [FAKE] copy all directries except doc, fonts, source, tex4ht in texmf-dist |
---|
| 515 | (cd %{texlive_src}/texmf-dist |
---|
| 516 | %__cp -r README metapost scripts bibtex dvips makeindex mft \ |
---|
| 517 | tlpkg context metafont tex omega vtex \ |
---|
| 518 | ${PREF}/texmf-dist/ |
---|
| 519 | ) |
---|
| 520 | ## copy some fonts (almost tetex + tetex-extra) |
---|
| 521 | ## NOTE: this part is in texlive-common since texlive-8vl6 |
---|
| 522 | |
---|
| 523 | #### customize updmap.cfg for each font's map files |
---|
| 524 | %{!?with_firstbuild: \ |
---|
| 525 | %__sed -i -e "s,^\(Map\|MixedMap\),#! \1,g" ${PREF}/texmf/web2c/updmap.cfg} |
---|
[3688] | 526 | %{!?with_firstbuild: \ |
---|
| 527 | %__sed -i -e "s,Map[[:blank:]]*euler.map,Map euler.map," ${PREF}/texmf/web2c/updmap.cfg} |
---|
[1533] | 528 | |
---|
| 529 | ## make some fundamental texmf trees |
---|
| 530 | %__mkdir_p ${PREF}/texmf-config |
---|
| 531 | %__mkdir_p ${PREF}/texmf-var |
---|
| 532 | %__mkdir_p ${PREF}/texmf-local |
---|
| 533 | |
---|
| 534 | ## NOTE: need texmf-dist/tex/latex/ltxmisc url.sty |
---|
| 535 | ./4extract-texmf.sh %{?with_firstbuild: || :}%{!?with_firstbuild: || exit 1} |
---|
| 536 | |
---|
| 537 | ## post 0eptex.sh |
---|
| 538 | %if %with_eptex |
---|
| 539 | (cd ../eptex-%{eptexver} |
---|
| 540 | ## copying distfiles |
---|
| 541 | echo "[copying] eptex.src" |
---|
| 542 | %__mkdir -p ${TEXMF}/ptex/plain/base |
---|
| 543 | %__cp eptex.src ${TEXMF}/ptex/plain/base/ || exit 1 |
---|
| 544 | echo "[copying] eptexdefs.lib" |
---|
| 545 | cp eptexdefs.lib $TEXMF/ptex/plain/base/ || exit 1 |
---|
| 546 | echo "[copying] language.def" |
---|
| 547 | %__mkdir -p ${TEXMF}/ptex/generic/config |
---|
| 548 | %__cp language.def ${TEXMF}/ptex/generic/config/ || exit 1 |
---|
| 549 | ) |
---|
| 550 | %endif |
---|
| 551 | |
---|
| 552 | ##!! DO NOT execute 5macro.sh |
---|
| 553 | # ./5macro.sh clean default utf %{?with_firstbuild: || :}%{!?with_firstbuild: || exit 1} |
---|
| 554 | # ./5macro.sh otf %{?with_firstbuild: || :}%{!?with_firstbuild: || exit 1} |
---|
| 555 | |
---|
| 556 | ## execute 6babel.sh |
---|
| 557 | %if %with_babel |
---|
| 558 | # %__unzip -o -d babel %{SOURCE40} |
---|
| 559 | # %__unzip -o -d babel %{SOURCE41} |
---|
| 560 | # %__install -m0644 \ |
---|
| 561 | # babel/texmf/tex/generic/hyphen/cathyph.tex \ |
---|
| 562 | # babel/texmf/tex/generic/hyphen/cyhyph.tex \ |
---|
| 563 | # ${TEXMF}/tex/generic/hyphen/ || exit 1 |
---|
| 564 | %{!?with_firstbuild: ../eptex-%{eptexver}/6babel.sh || exit 1} |
---|
| 565 | ## check 6babel.sh |
---|
| 566 | %{!?with_firstbuild: [ -f ${PREF}/texmf/doc/japanese/sample.tex ] || exit 1} |
---|
| 567 | %endif |
---|
| 568 | |
---|
| 569 | # ## update texdoc |
---|
| 570 | # cd texdoc-%{texdocver} || exit 1 |
---|
| 571 | # %__rm -rf ${PREF}/texmf/texdoc || exit 1 |
---|
| 572 | # %__mkdir_p ${PREF}/texmf/texdoc |
---|
| 573 | # %__cp -fa texdoc.cnf ${PREF}/texmf/texdoc/ || exit 1 |
---|
| 574 | |
---|
| 575 | # %__rm -rf ${PREF}/texmf/scripts/texdoc || exit 1 |
---|
| 576 | # %__rm -f script/*.orig || exit 1 |
---|
| 577 | # %__cp -ra script ${PREF}/texmf/scripts/texdoc || exit 1 |
---|
| 578 | # %__chmod 755 ${PREF}/texmf/scripts/texdoc/* || exit 1 |
---|
| 579 | |
---|
| 580 | # %__rm -rf ${PREF}/texmf/doc/texdoc || exit 1 |
---|
| 581 | # %__cp -ra doc ${PREF}/texmf/doc/texdoc || exit 1 |
---|
| 582 | # %__cp -a News Todo ${PREF}/texmf/doc/texdoc/ || exit 1 |
---|
| 583 | # cd - |
---|
| 584 | # # TODO: |
---|
| 585 | # # %{!?with_firstbuild: \ |
---|
| 586 | # # cd ${PREF}/texmf/doc/texdoc && %__make || exit 1} |
---|
| 587 | |
---|
| 588 | |
---|
| 589 | ## install |
---|
| 590 | %__mkdir_p %{buildroot}%{_prefix} |
---|
| 591 | (cd ${PREF} |
---|
| 592 | %__rm -f bin/man |
---|
| 593 | %__cp -r bin %{buildroot}%{_bindir} |
---|
| 594 | %__cp -r lib %{buildroot}%{_libdir} |
---|
| 595 | %__cp -r include %{buildroot}%{_includedir} |
---|
| 596 | |
---|
| 597 | ##NOTE: use man, info files from texlive-sources |
---|
| 598 | %__rm -rf texmf/doc/info |
---|
| 599 | %__rm -rf texmf/doc/man |
---|
| 600 | |
---|
| 601 | %__mkdir_p %{build_tex_destdir} |
---|
| 602 | ## NOTE: texmf-dist is contained in texlive-common package |
---|
| 603 | ##%__cp -r texmf{,-dist,-config,-var,-local} %{build_tex_destdir}/ || exit 1 |
---|
| 604 | %__cp -r texmf{,-config,-var,-local} %{build_tex_destdir}/ || exit 1 |
---|
| 605 | ) |
---|
| 606 | |
---|
| 607 | %__mkdir_p %{build_texmf}/fonts/truetype |
---|
| 608 | %__mkdir_p %{build_texmf}/fonts/opentype |
---|
| 609 | |
---|
| 610 | ## dvipdfmx: our map file |
---|
| 611 | %__mkdir_p %{build_texmf}/fonts/map/dvipdfmx |
---|
| 612 | touch %{build_texmf}/fonts/map/dvipdfmx/vine.map |
---|
| 613 | |
---|
| 614 | ## delete useless files (conflict with jvf package) |
---|
| 615 | # rm -rf %{build_texmf}/fonts/vf/ptex |
---|
| 616 | # rm -rf %{build_texmf}/fonts/tfm/ptex/*[a-zA-Z].tfm |
---|
| 617 | %__rm %{build_texmf}/fonts/vf/ptex/{min,tmin,goth,tgoth}{5,6,7,8,9,10}.vf || exit 1 |
---|
| 618 | |
---|
| 619 | ## install jtygm.sty |
---|
| 620 | %__install -m0644 %{SOURCE102} %{build_texmf}/ptex/platex/base/ || exit 1 |
---|
| 621 | |
---|
| 622 | ## morisawa map files remaped PS Kanji (CIDFont) Name |
---|
| 623 | %__install -m 0644 %{SOURCE103} %{SOURCE104} \ |
---|
| 624 | %{buildroot}%{texmf}/fonts/map/dvipdfm/ptexlive/ |
---|
| 625 | |
---|
| 626 | |
---|
| 627 | ## remove asymptote directries, which provides asymptote package |
---|
| 628 | find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf |
---|
| 629 | # find %{buildroot} -name "Makefile" | xargs %__rm -f |
---|
| 630 | |
---|
| 631 | # ## remove xindy |
---|
| 632 | # find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf |
---|
| 633 | |
---|
| 634 | # ## remove tex4ht |
---|
| 635 | # find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf |
---|
| 636 | |
---|
| 637 | ## relocate binaries to %{_bindir} and fix relative symlinks |
---|
| 638 | pushd %{buildroot}%{_bindir} |
---|
| 639 | for i in `find . -type l`; do |
---|
| 640 | if [ "`readlink $i | grep '..' | wc -l`" == "1" ]; then |
---|
| 641 | l=`readlink $i | sed s,../,../share/,` |
---|
| 642 | %__ln_s -f $l $i |
---|
| 643 | fi |
---|
| 644 | done |
---|
| 645 | popd |
---|
[3944] | 646 | ## if the real file of a symlink on /usr/bin is contained |
---|
| 647 | ## in texlive-collection-*, remove its symlink |
---|
| 648 | del_symlnks=( |
---|
| 649 | texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py |
---|
| 650 | texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph |
---|
| 651 | texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl |
---|
| 652 | texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man |
---|
| 653 | texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl |
---|
| 654 | texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh |
---|
| 655 | texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl |
---|
| 656 | texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl |
---|
| 657 | texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl |
---|
| 658 | texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper |
---|
| 659 | texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps |
---|
| 660 | texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl |
---|
| 661 | texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff |
---|
| 662 | texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten |
---|
| 663 | texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser |
---|
| 664 | texlive-collection-context,/usr/bin/context,/usr/share/texmf-dist/scripts/context/stubs/unix/context |
---|
| 665 | texlive-collection-context,/usr/bin/ctxtools,/usr/share/texmf-dist/scripts/context/stubs/unix/ctxtools |
---|
| 666 | texlive-collection-context,/usr/bin/luatools,/usr/share/texmf-dist/scripts/context/lua/luatools.lua |
---|
| 667 | texlive-collection-context,/usr/bin/makempy,/usr/share/texmf-dist/scripts/context/stubs/unix/makempy |
---|
| 668 | texlive-collection-context,/usr/bin/mpstools,/usr/share/texmf-dist/scripts/context/stubs/unix/mpstools |
---|
| 669 | texlive-collection-context,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/stubs/unix/mptopdf |
---|
| 670 | texlive-collection-context,/usr/bin/mtxrun,/usr/share/texmf-dist/scripts/context/lua/mtxrun.lua |
---|
| 671 | texlive-collection-context,/usr/bin/mtxtools,/usr/share/texmf-dist/scripts/context/stubs/unix/mtxtools |
---|
| 672 | texlive-collection-context,/usr/bin/pdftools,/usr/share/texmf-dist/scripts/context/stubs/unix/pdftools |
---|
| 673 | texlive-collection-context,/usr/bin/pstopdf,/usr/share/texmf-dist/scripts/context/stubs/unix/pstopdf |
---|
| 674 | texlive-collection-context,/usr/bin/rlxtools,/usr/share/texmf-dist/scripts/context/stubs/unix/rlxtools |
---|
| 675 | texlive-collection-context,/usr/bin/runtools,/usr/share/texmf-dist/scripts/context/stubs/unix/runtools |
---|
| 676 | texlive-collection-context,/usr/bin/texexec,/usr/share/texmf-dist/scripts/context/stubs/unix/texexec |
---|
| 677 | texlive-collection-context,/usr/bin/texfont,/usr/share/texmf-dist/scripts/context/stubs/unix/texfont |
---|
| 678 | texlive-collection-context,/usr/bin/texmfstart,/usr/share/texmf-dist/scripts/context/ruby/texmfstart.rb |
---|
| 679 | texlive-collection-context,/usr/bin/textools,/usr/share/texmf-dist/scripts/context/stubs/unix/textools |
---|
| 680 | texlive-collection-context,/usr/bin/texutil,/usr/share/texmf-dist/scripts/context/stubs/unix/texutil |
---|
| 681 | texlive-collection-context,/usr/bin/tmftools,/usr/share/texmf-dist/scripts/context/stubs/unix/tmftools |
---|
| 682 | texlive-collection-context,/usr/bin/xmltools,/usr/share/texmf-dist/scripts/context/stubs/unix/xmltools |
---|
| 683 | texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm |
---|
| 684 | texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst |
---|
| 685 | texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc |
---|
| 686 | texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl |
---|
| 687 | texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm |
---|
| 688 | texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font |
---|
| 689 | texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx |
---|
| 690 | texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx |
---|
| 691 | texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs |
---|
| 692 | texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp |
---|
| 693 | texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl |
---|
| 694 | texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex |
---|
| 695 | texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/bengali/ebong.py |
---|
| 696 | texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl |
---|
| 697 | texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries |
---|
| 698 | texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl |
---|
| 699 | texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu |
---|
| 700 | texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex |
---|
| 701 | texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu |
---|
| 702 | texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf |
---|
| 703 | texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl |
---|
| 704 | texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl |
---|
| 705 | texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl |
---|
| 706 | texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl |
---|
| 707 | texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu |
---|
| 708 | texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf |
---|
| 709 | texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk |
---|
| 710 | texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex |
---|
| 711 | texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf.pl |
---|
| 712 | texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl |
---|
| 713 | ) |
---|
| 714 | for i in ${del_symlnks[@]}; do |
---|
| 715 | %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1 |
---|
| 716 | done |
---|
[1533] | 717 | |
---|
| 718 | # ## compress pdf files in texmf/doc |
---|
| 719 | # find %{build_tex_destdir}/texmf/doc -name "*.pdf" -exec xz {} \; |
---|
| 720 | |
---|
| 721 | ## compress info files |
---|
| 722 | %__rm -f %{buildroot}%{_infodir}/dir |
---|
| 723 | %__gzip -9nf %{buildroot}%{_infodir}/*info* ||: |
---|
| 724 | |
---|
| 725 | ## desktop things |
---|
| 726 | %__mkdir_p %{buildroot}%{_datadir}/applications |
---|
| 727 | %__install -c %{SOURCE10} %{buildroot}%{_datadir}/applications/pxdvi.desktop |
---|
| 728 | |
---|
| 729 | # for created fonts |
---|
| 730 | %__mkdir_p %{buildroot}%{vartexfonts} |
---|
| 731 | %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily |
---|
| 732 | %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/ |
---|
| 733 | |
---|
| 734 | ## set executable bit for the library |
---|
[2421] | 735 | %if %{enable_sharedlib} |
---|
[1533] | 736 | %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.* |
---|
| 737 | %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.* |
---|
[2421] | 738 | %endif |
---|
[1533] | 739 | |
---|
| 740 | ## remove unpackaging files |
---|
| 741 | find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f |
---|
| 742 | find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f |
---|
| 743 | |
---|
| 744 | ### Files list |
---|
| 745 | find %{buildroot} -type f -or -type l | \ |
---|
| 746 | %__sed -e "s|%{buildroot}||g" | \ |
---|
| 747 | %__grep -v -e "^%{_sysconfdir}" -e ".patch$" -e "\.diff$" -e "\.orig$" | \ |
---|
| 748 | %__grep -v "%{_includedir}" | \ |
---|
| 749 | %__grep -v "%{_libdir}" | \ |
---|
| 750 | %__grep -v "%{_infodir}" | \ |
---|
| 751 | %__sed -e "s|.*\.\(cnf\|cfg\)$|%config(noreplace) &|" \ |
---|
| 752 | -e "s|.*ls-R$|%ghost &|" \ |
---|
| 753 | -e "s|^.*/updmap$|%config &|" \ |
---|
| 754 | -e "s|%{texmf}*/dvips/config/\(psfonts.*\|ps2pk.*\|pdftex.*\|dvipdfm.*\|.*35\)\.map$|%ghost &|" \ |
---|
| 755 | -e "s|%{texmf}*/web2c/.*\.\(fmt\|efmt\|log\|base\|mem\|oft\)$|%config &|" \ |
---|
| 756 | -e "s|%{texmf}*/dvips/config/config\.\(generic\|pdf\|ps\|www\)$|%config &|" \ |
---|
| 757 | -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \ |
---|
| 758 | -e "s|%{texmf}*/pdftex/config/pdftex.cfg$|%config &|" \ |
---|
| 759 | -e "s|%{texmf}*/xdvi/vfontmap$|%config &|" \ |
---|
| 760 | -e "s|%{texmf}*/xdvi/XDvi|%config &|" \ |
---|
| 761 | -e "s|%{_mandir}/.*|&*|" \ |
---|
| 762 | > filelist.full |
---|
| 763 | |
---|
| 764 | find %{buildroot}%{texmf} -type d | \ |
---|
| 765 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
| 766 | -e "s|$|/|" >> filelist.full |
---|
| 767 | |
---|
| 768 | ## subpackages |
---|
| 769 | %__grep "/texmf/doc/" filelist.full > filelist.doc |
---|
| 770 | cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp |
---|
| 771 | %__mv -f filelist.tmp filelist.full |
---|
| 772 | |
---|
| 773 | |
---|
| 774 | %clean |
---|
| 775 | %__rm -rf %{buildroot} |
---|
| 776 | |
---|
| 777 | |
---|
[4152] | 778 | %pre |
---|
| 779 | ## from texlive-tetex-trans |
---|
| 780 | if [ $1 -eq 1 ]; then |
---|
| 781 | _trans_time=$(date +%Y%m%d) |
---|
| 782 | echo "Running transitional process of your TeX system ... " |
---|
| 783 | for dir in %{texmf}-var %{texmf}-config; do |
---|
| 784 | _trans_dir=${dir}.${_trans_time}.rpmorig |
---|
| 785 | [ -d ${_trans_dir}.old ] && \ |
---|
| 786 | echo -n " " && \ |
---|
| 787 | echo "Found ${_trans_dir}.old: " && \ |
---|
| 788 | echo -n " " && \ |
---|
| 789 | %__rm -rvf ${_trans_dir}.old |
---|
| 790 | [ -d ${_trans_dir} ] && \ |
---|
| 791 | echo -n " " && \ |
---|
| 792 | echo "Found ${_trans_dir}: " && \ |
---|
| 793 | echo -n " " && \ |
---|
| 794 | %__mv -v ${_trans_dir} ${_trans_dir}.old |
---|
| 795 | [ -d ${dir} ] && \ |
---|
| 796 | echo -n " " && \ |
---|
| 797 | echo "Found ${dir}: " && \ |
---|
| 798 | echo -n " " && \ |
---|
| 799 | %__mv -v ${dir} ${_trans_dir} |
---|
| 800 | done |
---|
| 801 | echo "done." |
---|
| 802 | fi |
---|
| 803 | exit 0 |
---|
| 804 | |
---|
| 805 | |
---|
[1533] | 806 | %post |
---|
| 807 | ## dvipdfmx |
---|
| 808 | ## Create our own cid-x.map |
---|
| 809 | ( %{exec_upddeffont} ) ||: |
---|
| 810 | |
---|
| 811 | %{exec_texhash} |
---|
| 812 | %{exec_updmap} --enable KanjiMap vine.map >/dev/null 2>&1 |
---|
| 813 | # echo -n " " |
---|
| 814 | # echo -n "Running updmap ... " && %{exec_updmap} >/dev/null 2>&1 && echo "done." |
---|
| 815 | # echo -n " " |
---|
| 816 | # echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done." |
---|
| 817 | |
---|
| 818 | |
---|
| 819 | %preun |
---|
| 820 | if [ "$1" = 0 ]; then |
---|
[3840] | 821 | %__rm -rf %{vartexfonts} |
---|
| 822 | |
---|
[1533] | 823 | ## dvipdfmx |
---|
| 824 | for i in %{texmf}/fonts/truetype/* |
---|
| 825 | do |
---|
| 826 | if [ -L "$i" ]; then |
---|
| 827 | %__rm -f "$i" |
---|
| 828 | fi |
---|
| 829 | done |
---|
| 830 | fi |
---|
| 831 | |
---|
| 832 | |
---|
[2421] | 833 | %if %{enable_sharedlib} |
---|
[1533] | 834 | %post -n libkpathsea |
---|
| 835 | /sbin/ldconfig |
---|
| 836 | # /sbin/install-info %{_infodir}/kpathsea.info.* %{_infodir}/dir |
---|
| 837 | |
---|
| 838 | %preun -n libkpathsea |
---|
| 839 | # if [ "$1" = 0 ]; then |
---|
| 840 | # /sbin/install-info --delete %{_infodir}/kpathsea.info.* %{_infodir}/dir |
---|
| 841 | # fi |
---|
| 842 | |
---|
| 843 | %postun -n libkpathsea |
---|
| 844 | /sbin/ldconfig |
---|
| 845 | |
---|
| 846 | %post -n libptexenc |
---|
| 847 | /sbin/ldconfig |
---|
| 848 | |
---|
| 849 | %postun -n libptexenc |
---|
| 850 | /sbin/ldconfig |
---|
[2421] | 851 | %endif |
---|
[1533] | 852 | |
---|
[5503] | 853 | %posttrans |
---|
[3910] | 854 | %__mkdir_p %{vartexfonts} |
---|
[5503] | 855 | %__chmod 1777 %{vartexfonts} |
---|
[1533] | 856 | |
---|
| 857 | %triggerin -- ghostscript |
---|
| 858 | %__rm -f %{texmf}/fonts/cmap/ghostscript |
---|
| 859 | if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then |
---|
| 860 | %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript |
---|
| 861 | elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then |
---|
| 862 | %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript |
---|
| 863 | fi |
---|
| 864 | %{exec_texhash} |
---|
| 865 | |
---|
| 866 | |
---|
| 867 | %files -f filelist.full |
---|
| 868 | %defattr(-,root,root) |
---|
[3840] | 869 | %attr(1777,root,root) %dir %{vartexfonts} |
---|
[1533] | 870 | %config %{_sysconfdir}/cron.daily/texlive.cron |
---|
| 871 | |
---|
| 872 | %files doc -f filelist.doc |
---|
| 873 | %defattr(-,root,root) |
---|
| 874 | |
---|
[2421] | 875 | %if %{enable_sharedlib} |
---|
[1533] | 876 | %files -n libkpathsea |
---|
| 877 | %defattr(-,root,root) |
---|
| 878 | %{_libdir}/libkpathsea.so.* |
---|
| 879 | # %{_infodir}/kpathsea.info* |
---|
| 880 | |
---|
| 881 | %files -n libkpathsea-devel |
---|
| 882 | %defattr(-,root,root) |
---|
| 883 | %{_libdir}/libkpathsea.so |
---|
| 884 | %dir %{_includedir}/kpathsea |
---|
| 885 | %{_includedir}/kpathsea/* |
---|
| 886 | |
---|
| 887 | %files -n libptexenc |
---|
| 888 | %defattr(-,root,root) |
---|
| 889 | %{_libdir}/libptexenc.so.* |
---|
| 890 | |
---|
| 891 | %files -n libptexenc-devel |
---|
| 892 | %defattr(-,root,root) |
---|
| 893 | %{_libdir}/libptexenc.so |
---|
| 894 | %dir %{_includedir}/ptexenc |
---|
| 895 | %{_includedir}/ptexenc/* |
---|
[2421] | 896 | %endif |
---|
[1533] | 897 | |
---|
| 898 | |
---|
| 899 | %changelog |
---|
[7079] | 900 | * Wed Nov 7 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2009-23 |
---|
| 901 | - change default dvips to pdvips for pxdvi(k) |
---|
| 902 | |
---|
[5503] | 903 | * Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22 |
---|
| 904 | - make the directory VARTEXFONTS (%%posttrans) |
---|
| 905 | - dropped %%triggerpostun -- texlive < 2009-17vl6 |
---|
| 906 | |
---|
[4346] | 907 | * Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21 |
---|
| 908 | - fixed ptexlive-20100711-dvipdfmx-vine.patch |
---|
| 909 | - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked |
---|
| 910 | |
---|
[4152] | 911 | * Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20 |
---|
| 912 | - added %%pre to avoid conflictions of texmf-{config,var} |
---|
| 913 | |
---|
[3944] | 914 | * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19 |
---|
| 915 | - dropped Requires: texlive-common |
---|
| 916 | - added perl-Tk-TableMatrix |
---|
| 917 | - supported texdoctk |
---|
| 918 | - removed broken symbolic links in /usr/bin |
---|
| 919 | - for each these symbolic links, the package of its real file/path |
---|
| 920 | should be its owner. |
---|
| 921 | |
---|
[3910] | 922 | * Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18 |
---|
| 923 | - added %%triggerpostun -- texlive < 2009-17vl6 |
---|
| 924 | - make the directory VARTEXFONTS |
---|
| 925 | |
---|
[3840] | 926 | * Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17 |
---|
| 927 | - fixed %%dir VARTEXFONTS around in %%files |
---|
| 928 | - dropped BuildRequires: t1utils |
---|
| 929 | |
---|
[3703] | 930 | * Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16 |
---|
| 931 | - updated texlive-20091107-texmfcnf-vine.patch, texlive.cron |
---|
| 932 | - changed VARTEXFONTS to /var/lib/texmf/fonts |
---|
| 933 | |
---|
[3688] | 934 | * Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15 |
---|
| 935 | - fixed updmap.cfg |
---|
| 936 | |
---|
[3150] | 937 | * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14 |
---|
| 938 | - dropped Requires: texlive-macros |
---|
| 939 | |
---|
[2503] | 940 | * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13 |
---|
| 941 | - updated ptexlive-20100711-pxdvik-vine.patch |
---|
| 942 | and added texlive-20091107-xdvik-vine.patch |
---|
| 943 | - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi |
---|
| 944 | |
---|
[2456] | 945 | * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12 |
---|
[2421] | 946 | - supported Vine Linux 5 |
---|
[2456] | 947 | - for vl5, changed a requirement of Japanese VF package |
---|
| 948 | - added Requires: texlive-jvf = 2009 (vl5) |
---|
[2503] | 949 | - dropped dependencies of Provides:/Obsoletes: tags |
---|
| 950 | - merged these dependencies in texlive-common-vl.spec |
---|
[2421] | 951 | |
---|
[2257] | 952 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11 |
---|
| 953 | - rebuilt with poppler-0.14.2 (libpoppler has been up to so.7) |
---|
| 954 | |
---|
[1973] | 955 | * Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10 |
---|
| 956 | - applied some security patches from Debian |
---|
| 957 | - texlive-2009-CVE-2010-0827.patch |
---|
| 958 | - texlive-2009-CVE-2010-1440.patch |
---|
| 959 | - applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian |
---|
| 960 | - applied texlive-2009-luatexdir-libpoppler-0.12.patch |
---|
| 961 | based on texlive-2009-pdftexdir-libpoppler-0.12.patch |
---|
| 962 | - fixed some dependencies |
---|
| 963 | |
---|
[1542] | 964 | * Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9 |
---|
| 965 | - added BuildArch: noarch in %%package doc |
---|
| 966 | - removed some comment-out sentences |
---|
| 967 | |
---|
[1533] | 968 | * Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8 |
---|
| 969 | - separeted texmf-dist to texlive-common package |
---|
| 970 | |
---|
| 971 | * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7 |
---|
| 972 | - unpacked texlive-20091107-source.tar.xz |
---|
| 973 | - babel is available now |
---|
| 974 | - applied eptex-100420 and some patches: |
---|
| 975 | - eptex-100420-vine.patch |
---|
| 976 | - eptex-100420-patch1.diff |
---|
| 977 | |
---|
| 978 | * Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6 |
---|
| 979 | - updated ptexlive-20100711 |
---|
| 980 | |
---|
| 981 | * Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5 |
---|
| 982 | - customized updmap.cfg to correspond installed fonts |
---|
| 983 | |
---|
| 984 | * Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4 |
---|
| 985 | - fixed insttexfont() |
---|
| 986 | |
---|
| 987 | * Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3 |
---|
| 988 | - added jvf of MORISAWA basic 5 fonts |
---|
| 989 | - added cm-super, mathdesign in fntlst |
---|
| 990 | |
---|
| 991 | * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2 |
---|
| 992 | - define insttexfont() in %%install |
---|
| 993 | - copy almost compatible tetex-3.0 |
---|
| 994 | |
---|
| 995 | * Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1 |
---|
| 996 | - ptexlive-20090322 + TeXLive 2009 |
---|
| 997 | - added BuildRequires: openssl-devel |
---|
| 998 | |
---|
| 999 | * Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206 |
---|
| 1000 | - ptexlive-20091009 + TeXLive 2008 |
---|