[1533] | 1 | ## -*- coding: utf-8-unix -*- |
---|
| 2 | %bcond_with firstbuild |
---|
| 3 | |
---|
[7148] | 4 | # * texmf/web2c/texmf.cnf |
---|
| 5 | # use BUILD |
---|
| 6 | # * texmf/xdvi |
---|
| 7 | # use BUILD |
---|
[2421] | 8 | |
---|
[7148] | 9 | # * depend libX* |
---|
| 10 | # inimf |
---|
| 11 | # mf |
---|
| 12 | # pdfclose |
---|
| 13 | # pdfopen |
---|
| 14 | # pxdvi-motif |
---|
| 15 | # xdvi-motif |
---|
| 16 | |
---|
[5207] | 17 | %global _use_internal_dependency_generator 0 |
---|
[5214] | 18 | %global __find_provides %{SOURCE99} |
---|
[5207] | 19 | %global __find_requires %{nil} |
---|
[1533] | 20 | |
---|
[7148] | 21 | %define texlivesrcver 20120701 |
---|
| 22 | %define texlivever 20120701 |
---|
[1533] | 23 | |
---|
[7148] | 24 | %define aliasttfdir %{texmfsysvar}/fonts/truetype/vine |
---|
| 25 | %define texmfsysconfig %{_sysconfdir}/texmf |
---|
| 26 | %define texmfsysvar %{_var}/lib/texmf |
---|
| 27 | %define vartexfonts %{texmfsysvar}/fonts |
---|
[1533] | 28 | |
---|
| 29 | %define tex_destdir %{_datadir} |
---|
| 30 | %define texmf %{tex_destdir}/texmf |
---|
| 31 | %define texlive_src %{tex_destdir}/texlive-sources |
---|
| 32 | %define build_tex_destdir %{buildroot}%{tex_destdir} |
---|
| 33 | %define build_texmf %{buildroot}%{texmf} |
---|
| 34 | |
---|
[7148] | 35 | ## use some macros for %post, %posttrans |
---|
| 36 | %define touch_run(%1) %{expand:( %__mkdir_p /var/run/texlive; touch /var/run/texlive/run-%1; ) |
---|
| 37 | } |
---|
| 38 | %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && \\\ |
---|
| 39 | %{_sbindir}/update-defaultfont 2> /dev/null |
---|
| 40 | %define exec_texhash [ -e /var/run/texlive/run-texhash ] && ( \\\ |
---|
| 41 | [ -x %{_bindir}/texhash ] && \\\ |
---|
| 42 | echo -n " "; echo -n "Running texhash... "; \\\ |
---|
| 43 | %{_bindir}/texhash 2> /dev/null; \\\ |
---|
| 44 | echo "done." ) && %__rm -f /var/run/texlive/run-texhash; |
---|
| 45 | %define exec_mtxrun [ -e /var/run/texlive/run-mtxrun ] && ( \\\ |
---|
| 46 | [ -x %{_bindir}/mtxrun ] && \\\ |
---|
| 47 | echo -n " "; echo -n "Running mtxrun... "; \\\ |
---|
| 48 | export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; \\\ |
---|
| 49 | %{_bindir}/mtxrun --generate &> /dev/null; \\\ |
---|
| 50 | echo "done." ) && %__rm -f /var/run/texlive/run-mtxrun; |
---|
| 51 | %define exec_fmtutil [ -e /var/run/texlive/run-fmtutil ] && ( \\\ |
---|
| 52 | [ -x %{_bindir}/fmtutil-sys ] && \\\ |
---|
| 53 | echo -n " "; echo -n "Running fmtutil-sys... "; \\\ |
---|
| 54 | %{_bindir}/fmtutil-sys --all &> /dev/null; \\\ |
---|
| 55 | echo "done." ) && %__rm -f /var/run/texlive/run-fmtutil; |
---|
| 56 | %define exec_updmap [ -e /var/run/texlive/run-updmap ] && ( \\\ |
---|
| 57 | [ -x %{_bindir}/updmap-sys ] && \\\ |
---|
| 58 | echo -n " "; echo -n "Running updmap-sys... "; \\\ |
---|
| 59 | %{_bindir}/updmap-sys --nohash --quiet &> /dev/null; \\\ |
---|
| 60 | echo "done." ) && %__rm -f /var/run/texlive/run-updmap; |
---|
[1533] | 61 | |
---|
| 62 | Summary: The TeX text formatting system |
---|
| 63 | Summary(ja): TeX 文書整形システム |
---|
| 64 | Name: texlive |
---|
[7148] | 65 | Version: 2012 |
---|
[7154] | 66 | Release: 2%{?_dist_release} |
---|
[1533] | 67 | License: distributable |
---|
| 68 | Group: Applications/Publishing |
---|
[5207] | 69 | URL: http://www.tug.org/texlive/ |
---|
[1533] | 70 | |
---|
[7148] | 71 | ## original TeX Live source |
---|
| 72 | Source: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivesrcver}-source.tar.xz |
---|
[1533] | 73 | |
---|
[7148] | 74 | ## pxdvi pmetapost |
---|
| 75 | # $ wget -N http://www.logic.at/people/preining/build-tlptexlive-latest.zip |
---|
| 76 | # $ stat -c %y build-tlptexlive-latest.zip |
---|
| 77 | # 2012-11-07 09:23:34.000000000 +0900 |
---|
| 78 | # $ sha1sum build-tlptexlive-latest.zip |
---|
| 79 | # d863f331ce51257bba2266ddff15c90ad59bef96 build-tlptexlive-latest.zip |
---|
| 80 | # $ mv build-tlptexlive-latest.zip build-tlptexlive-20121107.zip |
---|
| 81 | Source1: http://www.logic.at/people/preining/build-tlptexlive-20121107.zip |
---|
| 82 | Source2: http://www.tug.org/texlive/updmap-kanji.html |
---|
[1533] | 83 | |
---|
[7148] | 84 | ## texmf dir. |
---|
| 85 | Source5: texlive-sources-%{texlivesrcver}-texmf.tar.xz |
---|
| 86 | #Source6: updmap-hdr.cfg.texlive-%{texlivesrcver} |
---|
| 87 | Source7: updmap.cfg.texlive-%{texlivesrcver} |
---|
| 88 | |
---|
[5207] | 89 | ## desktop files |
---|
[1533] | 90 | Source10: pxdvi.desktop |
---|
[5207] | 91 | Source11: texdoctk.desktop |
---|
[1533] | 92 | |
---|
[5214] | 93 | ## find library sonames for libkpathsea and libptexenc |
---|
| 94 | Source99: find-provides-texlive.sh |
---|
| 95 | |
---|
[1533] | 96 | ## etc... |
---|
[7148] | 97 | #Source100: texlive.cron |
---|
| 98 | Source101: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty |
---|
| 99 | Source102: http://mirrors.ctan.org/obsolete/support/pdftexenc/cmex.enc |
---|
[1533] | 100 | |
---|
| 101 | |
---|
| 102 | ###### |
---|
| 103 | # TeX patches |
---|
| 104 | ###### |
---|
| 105 | |
---|
| 106 | ## vine |
---|
[7148] | 107 | Patch0: reautoconf-parallel.diff |
---|
[5207] | 108 | Patch1: texlive-%{texlivesrcver}-vine.patch |
---|
[1533] | 109 | Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch |
---|
[5207] | 110 | Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch |
---|
[7148] | 111 | Patch10: texlive-%{texlivesrcver}-pxdvik-vine.patch |
---|
[1533] | 112 | |
---|
[1973] | 113 | ## security |
---|
[1533] | 114 | |
---|
[1973] | 115 | Requires: coreutils |
---|
[1533] | 116 | Requires: ed mktemp |
---|
[1973] | 117 | Requires: tmpwatch |
---|
| 118 | Requires: zlib |
---|
| 119 | Requires: libpng |
---|
| 120 | Requires: gd |
---|
| 121 | Requires: ncurses |
---|
| 122 | Requires: libjpeg |
---|
| 123 | Requires: t1lib |
---|
| 124 | Requires: freetype2 |
---|
[1533] | 125 | Requires: openMotif |
---|
[7154] | 126 | Requires: poppler >= 0.20 |
---|
[1533] | 127 | Requires: openssl |
---|
| 128 | Requires: libpaper |
---|
[1973] | 129 | Requires: fontconfig |
---|
[3944] | 130 | Requires: perl-Tk perl-Tk-TableMatrix |
---|
[1533] | 131 | Requires: nkf |
---|
[7148] | 132 | Requires: ghostscript >= 8.71 |
---|
[1533] | 133 | Requires: libkpathsea = %{version}-%{release} |
---|
| 134 | Requires: libptexenc = %{version}-%{release} |
---|
[7148] | 135 | %{!?with_firstbuild:Requires: jvf >= 7.1} |
---|
[1533] | 136 | Requires: fontconfig >= 2.6.0-2 |
---|
| 137 | Requires(post,postun): fontconfig >= 2.6.0-2 |
---|
| 138 | Requires(post): ed mktemp |
---|
[7148] | 139 | Requires(post): vutils >= 7.1 |
---|
| 140 | %{!?with_firstbuild:Requires: texlive-common = %{version}} |
---|
| 141 | #BuildRequires: texlive-sources = %{version} |
---|
[1533] | 142 | BuildRequires: xz |
---|
| 143 | BuildRequires: unzip |
---|
| 144 | BuildRequires: bison flex |
---|
[5207] | 145 | BuildRequires: bzip2-devel |
---|
[1973] | 146 | BuildRequires: zlib-devel |
---|
| 147 | BuildRequires: libpng-devel |
---|
| 148 | BuildRequires: gd-devel |
---|
| 149 | BuildRequires: ncurses-devel |
---|
| 150 | BuildRequires: libjpeg-devel |
---|
[1533] | 151 | BuildRequires: t1lib-devel |
---|
| 152 | BuildRequires: XOrg-devel |
---|
| 153 | BuildRequires: freetype2-devel >= 2.1.10 |
---|
[5207] | 154 | BuildRequires: autoconf >= 2.68 |
---|
[1533] | 155 | BuildRequires: openMotif-devel |
---|
[7154] | 156 | BuildRequires: poppler-devel >= 0.20 |
---|
[1533] | 157 | BuildRequires: openssl-devel |
---|
| 158 | BuildRequires: libpaper-devel |
---|
| 159 | BuildRequires: fontconfig-devel |
---|
| 160 | BuildRequires: nkf |
---|
| 161 | |
---|
| 162 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 163 | |
---|
| 164 | Vendor: Project Vine |
---|
| 165 | Distribution: Vine Linux |
---|
| 166 | Packager: munepi |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | %description |
---|
| 170 | The TeX Live software distribution offers a complete TeX system for a |
---|
| 171 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
| 172 | encompasses programs for editing, typesetting, previewing and printing |
---|
| 173 | of TeX documents in many different languages, and a large collection |
---|
| 174 | of TeX macros and font libraries. |
---|
| 175 | |
---|
| 176 | The distribution includes extensive general documentation about TeX, |
---|
| 177 | as well as the documentation for the included software packages. |
---|
| 178 | |
---|
| 179 | |
---|
| 180 | %description -l ja |
---|
| 181 | TeX Live ソフトウェアディストリビューションは、 |
---|
| 182 | さまざまな Unix, Macintosh, Windows、および |
---|
| 183 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
| 184 | 多くの異なった言語を含む TeX ドキュメントの |
---|
| 185 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
| 186 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
| 187 | 同梱しています。 |
---|
| 188 | |
---|
| 189 | このディストリビューションは |
---|
| 190 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
| 191 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | %package doc |
---|
| 195 | Summary: TeX Live: Documentation files of %{name} |
---|
| 196 | Group: Applications/Publishing |
---|
| 197 | Requires: %{name} = %{version}-%{release} |
---|
[1542] | 198 | BuildArch: noarch |
---|
[1533] | 199 | |
---|
| 200 | %description doc |
---|
| 201 | This package contains documentation files of %{name}. |
---|
| 202 | |
---|
| 203 | %package -n libkpathsea |
---|
| 204 | Summary: path search library for the TeX Live |
---|
| 205 | Summary(ja): TeX Live 用パス検索ライブラリ |
---|
| 206 | Group: System Environment/Libraries |
---|
| 207 | |
---|
| 208 | %description -n libkpathsea |
---|
| 209 | This package includes runtime part of the Kpathsea library. |
---|
| 210 | |
---|
| 211 | |
---|
| 212 | %package -n libkpathsea-devel |
---|
| 213 | Summary: path search libary and header files for the TeX Live |
---|
| 214 | Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル |
---|
| 215 | Group: Development/Libraries |
---|
| 216 | Requires: libkpathsea = %{version}-%{release} |
---|
| 217 | |
---|
| 218 | %description -n libkpathsea-devel |
---|
| 219 | This package includes static library and header files of the Kpathsea library. |
---|
| 220 | |
---|
| 221 | |
---|
| 222 | %package -n libptexenc |
---|
| 223 | Summary: Kanji code convert library for Japanese pTeX |
---|
| 224 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ |
---|
| 225 | Group: System Environment/Libraries |
---|
| 226 | Requires: libkpathsea = %{version}-%{release} |
---|
| 227 | |
---|
| 228 | %description -n libptexenc |
---|
| 229 | This package includes runtime part of the ptexenc library. |
---|
| 230 | |
---|
| 231 | |
---|
| 232 | %package -n libptexenc-devel |
---|
| 233 | Summary: Kanji code convert library and header files for Japanese pTeX |
---|
| 234 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル |
---|
| 235 | Group: Development/Libraries |
---|
| 236 | Requires: libptexenc = %{version}-%{release} |
---|
| 237 | |
---|
| 238 | %description -n libptexenc-devel |
---|
| 239 | This package includes header files of the ptexenc library. |
---|
| 240 | |
---|
| 241 | |
---|
| 242 | %prep |
---|
| 243 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
| 244 | |
---|
[7148] | 245 | %setup -q -n %{name}-%{texlivesrcver}-source -a 1 |
---|
[1533] | 246 | |
---|
[7148] | 247 | %patch0 -p0 -b .parallel |
---|
[5207] | 248 | %patch1 -p1 -b .vine |
---|
| 249 | %patch2 -p1 -b .vine |
---|
| 250 | %patch3 -p1 -b .vine |
---|
[7148] | 251 | |
---|
| 252 | ## Applying tlptexlive that provides pxdvi(k) and pmpost |
---|
| 253 | sedwrite(){ |
---|
| 254 | echo "rewriting `basename $1` by \"$2\"" |
---|
| 255 | if [ ! -f "$1" ]; then |
---|
| 256 | echo -e "'$1' does not exist"; exit 1 |
---|
| 257 | fi |
---|
| 258 | perl -pi -e "$2" "$1" || exit 1 |
---|
| 259 | } |
---|
| 260 | |
---|
| 261 | # pxdvi |
---|
| 262 | echo "preparing pxdvi" |
---|
| 263 | %__cp -pR texk/xdvik texk/pxdvik |
---|
| 264 | # echo "patching pxdvi patches" |
---|
| 265 | # #patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/xdvik-20111212-texlive2011.diff |
---|
| 266 | echo "patching with xdvik-20120415-texlive2011.diff" |
---|
| 267 | patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/xdvik-20120415-texlive2011.diff |
---|
| 268 | echo "patching with pxdvik-20111126-density.diff" |
---|
| 269 | patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/pxdvik-20111126-density.diff |
---|
| 270 | echo "patching with pxdvik-20111212-uptex.diff" |
---|
| 271 | patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/pxdvik-20111212-uptex.diff |
---|
| 272 | sedwrite libs/freetype2/freetype-2.4.*/modules.cfg 's/# (AUX_MODULES \+= otvalid)/\1/' |
---|
| 273 | sedwrite m4/kpse-pkgs.m4 "s/xdvik/xdvik\npxdvik/" |
---|
| 274 | |
---|
| 275 | # customize pxdvik for Vine Linux |
---|
[5207] | 276 | %patch10 -p1 -b .vine |
---|
[1533] | 277 | |
---|
[7148] | 278 | # # include in svn r26399 |
---|
| 279 | # # make sure that the web version of ovp2ovf is built |
---|
| 280 | # echo "patching for wovp2ovf" |
---|
| 281 | # patch -d texk -p0 < $(pwd)/build-tlptexlive/ovp2ovf_web.patch |
---|
[1533] | 282 | |
---|
[7148] | 283 | # pmpost |
---|
| 284 | echo "patching pmpost" |
---|
| 285 | patch -d texk -p0 < $(pwd)/build-tlptexlive/pmpost-20121106-tl12.diff |
---|
| 286 | patch -d texk -p0 < $(pwd)/build-tlptexlive/pmpost-svg-20120119-tl11.diff |
---|
[1973] | 287 | |
---|
[7148] | 288 | echo "running reautoconf" |
---|
| 289 | ./reautoconf || exit 1 |
---|
[1973] | 290 | |
---|
[7148] | 291 | |
---|
[1533] | 292 | %build |
---|
| 293 | set -x |
---|
| 294 | unset TEXINPUTS || : |
---|
| 295 | unset HOME || : |
---|
| 296 | |
---|
[7148] | 297 | export CFLAGS="$RPM_OPT_FLAGS" \ |
---|
[5207] | 298 | CXXFLAGS="$RPM_OPT_FLAGS" \ |
---|
| 299 | LANG=C |
---|
[1533] | 300 | |
---|
[7148] | 301 | PREFIX=$(pwd)/work |
---|
[1533] | 302 | |
---|
[7148] | 303 | TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif |
---|
| 304 | TL_MAKE_FLAGS=-j$(/usr/bin/getconf _NPROCESSORS_ONLN) |
---|
[1533] | 305 | |
---|
[7148] | 306 | TL_CONFIGURE_ARGS=" \ |
---|
| 307 | --disable-multiplatform \ |
---|
| 308 | --disable-native-texlive-build \ |
---|
| 309 | --with-banner-add=\"/Vine Linux\" \ |
---|
| 310 | --enable-shared --disable-static \ |
---|
| 311 | --enable-compiler-warnings=max \ |
---|
| 312 | --without-cxx-runtime-hack \ |
---|
| 313 | \ |
---|
| 314 | --enable-web2c \ |
---|
| 315 | --enable-web-progs --enable-dvipdfmx --enable-mendexk \ |
---|
| 316 | --enable-makejvf --enable-pxdvik --enable-dvipsk \ |
---|
| 317 | --enable-tetex --enable-texlive \ |
---|
| 318 | \ |
---|
| 319 | --with-system-xpdf \ |
---|
| 320 | --with-system-gd \ |
---|
| 321 | --with-system-t1lib \ |
---|
| 322 | --with-system-libpng \ |
---|
| 323 | --with-system-zlib \ |
---|
| 324 | --with-system-freetype2 \ |
---|
| 325 | --with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \ |
---|
| 326 | --with-pic \ |
---|
| 327 | --with-xdvi-x-toolkit=motif \ |
---|
| 328 | \ |
---|
| 329 | --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \ |
---|
| 330 | --disable-dvi2tty \ |
---|
| 331 | --disable-t1utils --disable-psutils --disable-detex \ |
---|
| 332 | --disable-dvipng --disable-lcdf-typetools \ |
---|
| 333 | " |
---|
| 334 | |
---|
| 335 | export TL_CONF_XDVI_TOOLKIT TL_MAKE_FLAGS TL_CONFIGURE_ARGS |
---|
| 336 | |
---|
| 337 | TL_MAKE=%__make ./Build || exit 1 |
---|
| 338 | |
---|
[1533] | 339 | %install |
---|
[1542] | 340 | ## prepare %%install session |
---|
[1533] | 341 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
| 342 | |
---|
[7148] | 343 | ## copy inst dir. to /usr |
---|
| 344 | %__mkdir_p %{buildroot} |
---|
| 345 | %__cp -a inst %{buildroot}%{_prefix} || exit 1 |
---|
| 346 | %ifarch x86_64 |
---|
| 347 | %__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} |
---|
[5289] | 348 | %endif |
---|
[7148] | 349 | ## replace texmf with that of texlive-sources |
---|
| 350 | %__rm -rf %{build_texmf} %{build_texmf}-dist || exit 1 |
---|
| 351 | %__tar -C %{buildroot}%{_datadir} -xpf %{SOURCE5} || exit 1 |
---|
| 352 | ## override texmf/web2c/texmf.cnf and texmf/xdvi dir. |
---|
| 353 | %__cp -a inst/share/texmf/web2c/texmf.cnf %{build_texmf}/web2c/texmf.cnf || exit 1 |
---|
| 354 | %__rm -rf %{build_texmf}/xdvi || exit 1 |
---|
| 355 | %__cp -a inst/share/texmf/xdvi %{build_texmf}/xdvi || exit 1 |
---|
[5248] | 356 | |
---|
[5207] | 357 | ## make some fundamental texmf trees |
---|
[7148] | 358 | %__mkdir_p %{build_texmf}-{local,dist} |
---|
| 359 | %__mkdir_p %{buildroot}%{texmfsysconfig} |
---|
| 360 | %__mkdir_p %{buildroot}%{texmfsysvar} |
---|
[5207] | 361 | %__mkdir_p %{build_texmf}/fonts/{truetype,opentype} |
---|
[5248] | 362 | texmf_local_dirs=( |
---|
| 363 | bibtex/bib/local |
---|
| 364 | bibtex/bst/local |
---|
| 365 | dvips/local |
---|
| 366 | fonts/source/local |
---|
| 367 | fonts/tfm/local |
---|
| 368 | fonts/opentype/local |
---|
| 369 | fonts/truetype/local |
---|
| 370 | fonts/type1/local |
---|
| 371 | fonts/vf/local |
---|
| 372 | metapost/local |
---|
| 373 | pbibtex/bib/local |
---|
| 374 | pbibtex/bst/local |
---|
| 375 | tex/latex/local |
---|
| 376 | tex/plain/local |
---|
| 377 | tex/platex/local |
---|
| 378 | web2c |
---|
| 379 | ) |
---|
[7148] | 380 | for x in ${texmf_local_dirs[@]}; do |
---|
| 381 | %__mkdir_p %{build_texmf}-local/${x} |
---|
[5248] | 382 | done |
---|
| 383 | |
---|
[6253] | 384 | |
---|
[3944] | 385 | ## if the real file of a symlink on /usr/bin is contained |
---|
| 386 | ## in texlive-collection-*, remove its symlink |
---|
| 387 | del_symlnks=( |
---|
[5207] | 388 | texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh |
---|
[7148] | 389 | texlive-collection-bibtexextra,/usr/bin/listbib,/usr/share/texmf-dist/scripts/listbib/listbib |
---|
| 390 | texlive-collection-bibtexextra,/usr/bin/urlbst,/usr/share/texmf-dist/scripts/urlbst/urlbst |
---|
[5207] | 391 | texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex |
---|
| 392 | texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc |
---|
[7148] | 393 | texlive-collection-binextra,/usr/bin/ctanify,/usr/share/texmf-dist/scripts/ctanify/ctanify |
---|
| 394 | texlive-collection-binextra,/usr/bin/ctanupload,/usr/share/texmf-dist/scripts/ctanupload/ctanupload.pl |
---|
[5207] | 395 | texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro |
---|
[3944] | 396 | texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py |
---|
| 397 | texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph |
---|
| 398 | texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl |
---|
[5207] | 399 | texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl |
---|
[3944] | 400 | texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man |
---|
[5207] | 401 | texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl |
---|
| 402 | texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl |
---|
[7148] | 403 | texlive-collection-binextra,/usr/bin/latexfileversion,/usr/share/texmf-dist/scripts/latexfileversion/latexfileversion |
---|
[3944] | 404 | texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl |
---|
[5207] | 405 | texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl |
---|
[3944] | 406 | texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh |
---|
[7148] | 407 | texlive-collection-binextra,/usr/bin/match_parens,/usr/share/texmf-dist/scripts/match_parens/match_parens |
---|
[3944] | 408 | texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl |
---|
[5207] | 409 | texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180 |
---|
| 410 | texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270 |
---|
| 411 | texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90 |
---|
| 412 | texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook |
---|
[3944] | 413 | texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl |
---|
[5207] | 414 | texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip |
---|
| 415 | texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam |
---|
| 416 | texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod |
---|
| 417 | texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up |
---|
| 418 | texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up |
---|
| 419 | texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin |
---|
| 420 | texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup |
---|
| 421 | texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun |
---|
[3944] | 422 | texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl |
---|
| 423 | texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper |
---|
| 424 | texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps |
---|
[5207] | 425 | texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl |
---|
[3944] | 426 | texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl |
---|
[5207] | 427 | texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl |
---|
[3944] | 428 | texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff |
---|
| 429 | texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten |
---|
[7148] | 430 | texlive-collection-binextra,/usr/bin/texliveonfly,/usr/share/texmf-dist/scripts/texliveonfly/texliveonfly.py |
---|
[3944] | 431 | texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser |
---|
[7148] | 432 | texlive-collection-binextra,/usr/bin/typeoutfileinfo,/usr/share/texmf-dist/scripts/typeoutfileinfo/typeoutfileinfo.sh |
---|
[3944] | 433 | texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm |
---|
| 434 | texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst |
---|
[7148] | 435 | texlive-collection-fontutils,/usr/bin/dosepsbin,/usr/share/texmf-dist/scripts/dosepsbin/dosepsbin.pl |
---|
[3944] | 436 | texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl |
---|
[7148] | 437 | texlive-collection-fontutils,/usr/bin/mf2pt1,/usr/share/texmf-dist/scripts/mf2pt1/mf2pt1.pl |
---|
[3944] | 438 | texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font |
---|
| 439 | texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx |
---|
| 440 | texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp |
---|
| 441 | texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl |
---|
[5207] | 442 | texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh |
---|
| 443 | texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh |
---|
| 444 | texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh |
---|
| 445 | texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh |
---|
| 446 | texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh |
---|
| 447 | texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh |
---|
| 448 | texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh |
---|
| 449 | texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh |
---|
| 450 | texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl |
---|
[7148] | 451 | texlive-collection-langcjk,/usr/bin/convbkmk,/usr/share/texmf-dist/scripts/uptex/convbkmk.rb |
---|
| 452 | texlive-collection-langcjk,/usr/bin/updmap-setup-kanji,/usr/share/texmf-dist/scripts/jfontmaps/updmap-setup-kanji.pl |
---|
[3944] | 453 | texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex |
---|
[5207] | 454 | texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py |
---|
| 455 | texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl |
---|
[3944] | 456 | texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl |
---|
[5207] | 457 | texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex |
---|
[7148] | 458 | texlive-collection-latexextra,/usr/bin/exceltex,/usr/share/texmf-dist/scripts/exceltex/exceltex |
---|
[3944] | 459 | texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries |
---|
| 460 | texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl |
---|
[5207] | 461 | texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl |
---|
[3944] | 462 | texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf |
---|
| 463 | texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl |
---|
| 464 | texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl |
---|
| 465 | texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl |
---|
| 466 | texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl |
---|
[7148] | 467 | texlive-collection-luatex,/usr/bin/checkcites,/usr/share/texmf-dist/scripts/checkcites/checkcites.lua |
---|
[5207] | 468 | texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua |
---|
[7148] | 469 | texlive-collection-music,/usr/bin/m-tx,/usr/share/texmf-dist/scripts/m-tx/m-tx.lua |
---|
[5207] | 470 | texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua |
---|
| 471 | texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua |
---|
[7148] | 472 | texlive-collection-music,/usr/bin/pmx2pdf,/usr/share/texmf-dist/scripts/pmx/pmx2pdf.lua |
---|
[3944] | 473 | texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu |
---|
[5207] | 474 | texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb |
---|
| 475 | texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl |
---|
[3944] | 476 | texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex |
---|
[5207] | 477 | texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl |
---|
[7148] | 478 | texlive-collection-pstricks,/usr/bin/pedigree,/usr/share/texmf-dist/scripts/pedigree-perl/pedigree.pl |
---|
[5207] | 479 | texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf |
---|
[3944] | 480 | texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl |
---|
| 481 | ) |
---|
| 482 | for i in ${del_symlnks[@]}; do |
---|
| 483 | %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1 |
---|
| 484 | done |
---|
[1533] | 485 | |
---|
[7148] | 486 | ## we replace texmf/web2c/updmap{,-hdr}.cfg with our updmap files |
---|
| 487 | %__cp -a %{SOURCE7} %{build_texmf}/web2c/updmap.cfg || exit 1 |
---|
| 488 | %__mkdir_p %{buildroot}%{texmfsysconfig}/web2c |
---|
| 489 | %__cp -a %{SOURCE7} %{buildroot}%{texmfsysconfig}/web2c/updmap.cfg || exit 1 |
---|
[1533] | 490 | |
---|
[7148] | 491 | ## use our map files for dvipdfmx |
---|
| 492 | %__mkdir_p %{buildroot}%{aliasttfdir} |
---|
| 493 | %__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine |
---|
[7154] | 494 | for x in ptex uptex otf otf-up; do |
---|
| 495 | touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/${x}-vine.map |
---|
| 496 | done |
---|
| 497 | for x in FutoGo-Bold FutoMin-Bold Gothic-Medium MaruGo-Medium Mincho-Medium; do |
---|
| 498 | touch %{buildroot}%{aliasttfdir}/${x}.ttf |
---|
| 499 | done |
---|
[1533] | 500 | |
---|
[7148] | 501 | ## install updmap-kanji.html |
---|
| 502 | %__mkdir_p %{build_texmf}/doc/fonts/jfontmaps |
---|
| 503 | %__install -m0644 %{SOURCE2} %{build_texmf}/doc/fonts/jfontmaps/ || exit 1 |
---|
| 504 | ## install jtygm.sty |
---|
| 505 | %__mkdir_p %{build_texmf}/tex/platex/base |
---|
| 506 | %__install -m0644 %{SOURCE101} %{build_texmf}/tex/platex/base/ || exit 1 |
---|
| 507 | ## install cmex.enc |
---|
| 508 | %__mkdir_p %{build_texmf}/fonts/enc/pdftex/cmex |
---|
| 509 | %__install -m0644 %{SOURCE102} %{build_texmf}/fonts/enc/pdftex/cmex/ || exit 1 |
---|
[5207] | 510 | |
---|
[1533] | 511 | ## desktop things |
---|
| 512 | %__mkdir_p %{buildroot}%{_datadir}/applications |
---|
[5207] | 513 | %__install -m0644 -c %{SOURCE10} %{SOURCE11} \ |
---|
| 514 | %{buildroot}%{_datadir}/applications/ |
---|
[1533] | 515 | |
---|
| 516 | # for created fonts |
---|
| 517 | %__mkdir_p %{buildroot}%{vartexfonts} |
---|
[7148] | 518 | # %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily |
---|
| 519 | # %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/ |
---|
[1533] | 520 | |
---|
| 521 | ## set executable bit for the library |
---|
| 522 | %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.* |
---|
| 523 | %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.* |
---|
| 524 | |
---|
[7148] | 525 | # configure ConTeXt |
---|
| 526 | for x in context ctxtools luatools texexec texmfstart; do |
---|
| 527 | %__sed -i -e 's|mtxrun|export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; mtxrun|' %{buildroot}%{_bindir}/${x} |
---|
| 528 | done |
---|
| 529 | |
---|
| 530 | # touch ghosts |
---|
| 531 | touch %{build_texmf}/ls-R |
---|
| 532 | touch %{build_texmf}-dist/ls-R |
---|
| 533 | touch %{buildroot}%{texmfsysconfig}/ls-R |
---|
| 534 | touch %{buildroot}%{texmfsysvar}/ls-R |
---|
| 535 | |
---|
[7154] | 536 | ## remove unpackaging files |
---|
| 537 | find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f || exit 1 |
---|
| 538 | find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f || exit 1 |
---|
[7148] | 539 | %__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1 |
---|
[7154] | 540 | find %{build_texmf}/fonts/map -type d | %__grep "updmap" | xargs %__rm -rf || exit 1 |
---|
[7148] | 541 | find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1 |
---|
[7154] | 542 | %__rm -f %{build_texmf}/dvipdfm/config/config-win32 || exit 1 |
---|
| 543 | %__rm -f %{buildroot}%{_infodir}/* |
---|
[7148] | 544 | |
---|
[1533] | 545 | |
---|
| 546 | ### Files list |
---|
| 547 | find %{buildroot} -type f -or -type l | \ |
---|
| 548 | %__sed -e "s|%{buildroot}||g" | \ |
---|
[7148] | 549 | %__grep -v -e ".patch$" -e "\.diff$" -e "\.orig$" | \ |
---|
[1533] | 550 | %__grep -v "%{_includedir}" | \ |
---|
| 551 | %__grep -v "%{_libdir}" | \ |
---|
| 552 | %__grep -v "%{_infodir}" | \ |
---|
[7154] | 553 | %__sed -e "s|.*ls-R$|%ghost &|" \ |
---|
| 554 | -e "s|%{texmfsysvar}/fonts/map/dvipdfmx/vine/.*\.map$|%ghost &|" \ |
---|
| 555 | -e "s|%{aliasttfdir}/.*\.ttf$|%ghost &|" \ |
---|
| 556 | -e "s|.*/updmap.*\.cfg$|%config(noreplace) &|" \ |
---|
| 557 | -e "s|.*/dvipdfmx\.cfg$|%config(noreplace) &|" \ |
---|
| 558 | -e "s|.*xdvi\.cfg$|%config(noreplace) &|" \ |
---|
| 559 | -e "s|.*\.cnf$|%config(noreplace) &|" \ |
---|
| 560 | -e "s|%{texmf}*/xdvi/XDvi|%config(noreplace) &|" \ |
---|
| 561 | -e "s|%{texmf}/web2c/texmfcnf\.lua$|%config(noreplace) &|" \ |
---|
| 562 | -e "s|^.*/updmap/$|%config &|" \ |
---|
| 563 | -e "s|%{texmf}*/texconfig/tcfmgr.map$|%config &|" \ |
---|
| 564 | -e "s|%{texmf}*/dvips/config/.*$|%config &|" \ |
---|
| 565 | -e "s|%{texmf}*/dvips/tetex/config.*$|%config &|" \ |
---|
| 566 | -e "s|%{texmf}*/dvipdfm/config/config$|%config &|" \ |
---|
| 567 | -e "s|%{texmf}*/fonts/map/dvips/tetex/.*.map$|%config &|" \ |
---|
| 568 | -e "s|%{texmf}*/fonts/map/dvipdfmx/.*.map$|%config &|" \ |
---|
[1533] | 569 | -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \ |
---|
[7154] | 570 | -e "s|%{texmf}*/ttf2pk/ttf2pk\.cfg$|%config &|" \ |
---|
| 571 | -e "s|%{texmf}*/hbf2gf/.*\.cfg$|%config &|" \ |
---|
| 572 | -e "s|%{texmf}*/chktex/chktexrc$|%config &|" \ |
---|
[1533] | 573 | -e "s|%{_mandir}/.*|&*|" \ |
---|
[7148] | 574 | > %{_builddir}/filelist.full |
---|
[1533] | 575 | |
---|
[5207] | 576 | find %{buildroot}%{texmf}* -type d | \ |
---|
[1533] | 577 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
[7148] | 578 | -e "s|$|/|" >> %{_builddir}/filelist.full |
---|
[1533] | 579 | |
---|
| 580 | ## subpackages |
---|
[7148] | 581 | %__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/filelist.full > %{_builddir}/filelist.doc |
---|
| 582 | cat %{_builddir}/filelist.doc \ |
---|
| 583 | %{_builddir}/filelist.full | \ |
---|
| 584 | sort | uniq -u > %{_builddir}/filelist.tmp |
---|
| 585 | %__mv -f %{_builddir}/filelist.tmp %{_builddir}/filelist.full |
---|
[1533] | 586 | |
---|
| 587 | |
---|
| 588 | %clean |
---|
| 589 | %__rm -rf %{buildroot} |
---|
| 590 | |
---|
| 591 | |
---|
[5207] | 592 | %pretrans |
---|
[7148] | 593 | rpm -q texlive | grep -q -e 2009 -e 2011 |
---|
[5207] | 594 | [ $? -eq 1 ] && exit 0 |
---|
[7148] | 595 | ## upgrade TeX Live to 2012 |
---|
[5207] | 596 | _trans_time=$(date +%Y%m%d) |
---|
| 597 | echo "Running transitional process of your TeX system ... " |
---|
| 598 | for dir in %{texmf}-var %{texmf}-config; do |
---|
| 599 | _trans_dir=${dir}.${_trans_time}.rpmorig |
---|
| 600 | [ -d ${_trans_dir}.old ] && \ |
---|
| 601 | echo -n " " && \ |
---|
| 602 | echo "Found ${_trans_dir}.old: " && \ |
---|
| 603 | echo -n " " && \ |
---|
| 604 | %__rm -rvf ${_trans_dir}.old |
---|
| 605 | [ -d ${_trans_dir} ] && \ |
---|
| 606 | echo -n " " && \ |
---|
| 607 | echo "Found ${_trans_dir}: " && \ |
---|
| 608 | echo -n " " && \ |
---|
| 609 | %__mv -v ${_trans_dir} ${_trans_dir}.old |
---|
| 610 | [ -d ${dir} ] && \ |
---|
| 611 | echo -n " " && \ |
---|
| 612 | echo "Found ${dir}: " && \ |
---|
| 613 | echo -n " " && \ |
---|
| 614 | %__mv -v ${dir} ${_trans_dir} |
---|
| 615 | done |
---|
| 616 | echo "done." |
---|
[4152] | 617 | |
---|
[7148] | 618 | %preun |
---|
| 619 | if [ "$1" = 0 ]; then |
---|
[7154] | 620 | %__rm -rf %{vartexfonts} |
---|
[7148] | 621 | fi |
---|
| 622 | exit 0 |
---|
[4152] | 623 | |
---|
[1533] | 624 | %post |
---|
[7148] | 625 | %touch_run texhash |
---|
| 626 | %touch_run updmap |
---|
| 627 | %touch_run mtxrun |
---|
| 628 | %touch_run fmtutil |
---|
| 629 | exit 0 |
---|
| 630 | |
---|
| 631 | %posttrans |
---|
| 632 | %__mkdir_p %{vartexfonts} |
---|
| 633 | %__chmod 1777 %{vartexfonts} |
---|
| 634 | ## create our map files {ptex,uptex,otf,otf-up}-vine.map |
---|
[1533] | 635 | ( %{exec_upddeffont} ) ||: |
---|
| 636 | |
---|
| 637 | %{exec_texhash} |
---|
[7148] | 638 | %{exec_mtxrun} |
---|
| 639 | %{exec_updmap} |
---|
| 640 | %{exec_fmtutil} |
---|
[5207] | 641 | exit 0 |
---|
[1533] | 642 | |
---|
| 643 | %post -n libkpathsea |
---|
| 644 | /sbin/ldconfig |
---|
[7148] | 645 | # for x in kpathsea tds web2c; do |
---|
| 646 | # /sbin/install-info %{_infodir}/${x}.info.* %{_infodir}/dir |
---|
| 647 | # done |
---|
[1533] | 648 | |
---|
[7148] | 649 | # %preun -n libkpathsea |
---|
[1533] | 650 | # if [ "$1" = 0 ]; then |
---|
[7148] | 651 | # for x in kpathsea tds web2c; do |
---|
| 652 | # /sbin/install-info --delete %{_infodir}/${x}.info.* %{_infodir}/dir |
---|
| 653 | # done |
---|
[1533] | 654 | # fi |
---|
| 655 | |
---|
| 656 | %postun -n libkpathsea |
---|
| 657 | /sbin/ldconfig |
---|
| 658 | |
---|
| 659 | %post -n libptexenc |
---|
| 660 | /sbin/ldconfig |
---|
| 661 | |
---|
| 662 | %postun -n libptexenc |
---|
| 663 | /sbin/ldconfig |
---|
| 664 | |
---|
| 665 | %triggerin -- ghostscript |
---|
| 666 | %__rm -f %{texmf}/fonts/cmap/ghostscript |
---|
| 667 | if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then |
---|
| 668 | %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript |
---|
| 669 | elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then |
---|
| 670 | %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript |
---|
| 671 | fi |
---|
[7154] | 672 | %touch_run texhash |
---|
| 673 | exit 0 |
---|
[1533] | 674 | |
---|
| 675 | |
---|
[7148] | 676 | %files -f %{_builddir}/filelist.full |
---|
[1533] | 677 | %defattr(-,root,root) |
---|
[7148] | 678 | %dir %{aliasttfdir} |
---|
[3840] | 679 | %attr(1777,root,root) %dir %{vartexfonts} |
---|
[7148] | 680 | # %config %{_sysconfdir}/cron.daily/texlive.cron |
---|
[1533] | 681 | |
---|
[7148] | 682 | %files doc -f %{_builddir}/filelist.doc |
---|
[1533] | 683 | %defattr(-,root,root) |
---|
| 684 | |
---|
| 685 | %files -n libkpathsea |
---|
| 686 | %defattr(-,root,root) |
---|
| 687 | %{_libdir}/libkpathsea.so.* |
---|
| 688 | # %{_infodir}/kpathsea.info* |
---|
| 689 | |
---|
| 690 | %files -n libkpathsea-devel |
---|
| 691 | %defattr(-,root,root) |
---|
| 692 | %{_libdir}/libkpathsea.so |
---|
| 693 | %dir %{_includedir}/kpathsea |
---|
| 694 | %{_includedir}/kpathsea/* |
---|
| 695 | |
---|
| 696 | %files -n libptexenc |
---|
| 697 | %defattr(-,root,root) |
---|
| 698 | %{_libdir}/libptexenc.so.* |
---|
| 699 | |
---|
| 700 | %files -n libptexenc-devel |
---|
| 701 | %defattr(-,root,root) |
---|
| 702 | %{_libdir}/libptexenc.so |
---|
| 703 | %dir %{_includedir}/ptexenc |
---|
| 704 | %{_includedir}/ptexenc/* |
---|
| 705 | |
---|
| 706 | |
---|
| 707 | %changelog |
---|
[7154] | 708 | * Mon Nov 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-2 |
---|
| 709 | - fixed Source7: updmap.cfg.texlive-20120701 |
---|
| 710 | (upto /etc/texmf/web2c/updmap.cfg) |
---|
| 711 | - fixex %%triggerin -- ghostscript |
---|
| 712 | - replaced %%exec_texhash with %%touch_run texhash |
---|
| 713 | |
---|
[7148] | 714 | * Wed Nov 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1 |
---|
| 715 | - TeX Live 2012 + tlptexlive 20121107 |
---|
| 716 | |
---|
[7042] | 717 | * Tue Oct 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-7 |
---|
| 718 | - drop BR: poppler-devel temporaly |
---|
| 719 | - modify tl11supp-120120-vine.patch, texlive-20110705-vine.patch to do that |
---|
| 720 | |
---|
[6253] | 721 | * Mon May 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-6 |
---|
| 722 | - build with poppler-0.18.4 |
---|
| 723 | - remove tlmgr |
---|
| 724 | |
---|
[5502] | 725 | * Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-5 |
---|
| 726 | - updated to tl11supp-120120 |
---|
| 727 | - run %%{exec_fmtutil} at %%post when upgrading |
---|
| 728 | |
---|
[5289] | 729 | * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-4 |
---|
| 730 | - updated to tl11supp-111214 |
---|
| 731 | |
---|
[5248] | 732 | * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3 |
---|
| 733 | - added BuildRequires: texlive-common |
---|
| 734 | - Babel needs docstrip.tex, which is contained in texlive-collection-latex |
---|
| 735 | - check japanese.ldf |
---|
| 736 | - updated tl11supp-111120-vine.patch |
---|
| 737 | - added the following options to $$TL_CONFIGURE_ARGS: |
---|
| 738 | --disable-detex |
---|
| 739 | --disable-dvipng |
---|
| 740 | --disable-lcdf-typetools |
---|
| 741 | - remove some files of asymptote |
---|
| 742 | - remove a man file of latexmk |
---|
| 743 | - remove man files of lcdf-typetools |
---|
| 744 | - remove man files of dvipng |
---|
| 745 | - remove a man file of detex |
---|
| 746 | |
---|
[5214] | 747 | * Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2 |
---|
| 748 | - added find-provides-texlive.sh and set it to %%__find_provides |
---|
| 749 | - use to find library sonames for libkpathsea and libptexenc |
---|
| 750 | - added cmex.enc (%%{SOURCE110}) |
---|
| 751 | - do not install cmex.enc in our TDS, yet |
---|
| 752 | - removed some unused directories in texmf/fonts/map |
---|
| 753 | - removed man files of lcdf-typetools |
---|
| 754 | - moved texdoc{,tk} and its related files to texlive-doc |
---|
| 755 | |
---|
[5207] | 756 | * Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1 |
---|
| 757 | - TeX Live 2011 + tl11supp-111120 |
---|
| 758 | |
---|
| 759 | * Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22 |
---|
| 760 | - make the directory VARTEXFONTS (%%posttrans) |
---|
| 761 | - dropped %%triggerpostun -- texlive < 2009-17vl6 |
---|
| 762 | |
---|
[4346] | 763 | * Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21 |
---|
| 764 | - fixed ptexlive-20100711-dvipdfmx-vine.patch |
---|
| 765 | - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked |
---|
| 766 | |
---|
[4152] | 767 | * Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20 |
---|
| 768 | - added %%pre to avoid conflictions of texmf-{config,var} |
---|
| 769 | |
---|
[3944] | 770 | * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19 |
---|
| 771 | - dropped Requires: texlive-common |
---|
| 772 | - added perl-Tk-TableMatrix |
---|
| 773 | - supported texdoctk |
---|
| 774 | - removed broken symbolic links in /usr/bin |
---|
| 775 | - for each these symbolic links, the package of its real file/path |
---|
| 776 | should be its owner. |
---|
| 777 | |
---|
[3910] | 778 | * Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18 |
---|
| 779 | - added %%triggerpostun -- texlive < 2009-17vl6 |
---|
| 780 | - make the directory VARTEXFONTS |
---|
| 781 | |
---|
[3840] | 782 | * Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17 |
---|
| 783 | - fixed %%dir VARTEXFONTS around in %%files |
---|
| 784 | - dropped BuildRequires: t1utils |
---|
| 785 | |
---|
[3703] | 786 | * Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16 |
---|
| 787 | - updated texlive-20091107-texmfcnf-vine.patch, texlive.cron |
---|
| 788 | - changed VARTEXFONTS to /var/lib/texmf/fonts |
---|
| 789 | |
---|
[3688] | 790 | * Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15 |
---|
| 791 | - fixed updmap.cfg |
---|
| 792 | |
---|
[3150] | 793 | * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14 |
---|
| 794 | - dropped Requires: texlive-macros |
---|
| 795 | |
---|
[2503] | 796 | * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13 |
---|
| 797 | - updated ptexlive-20100711-pxdvik-vine.patch |
---|
| 798 | and added texlive-20091107-xdvik-vine.patch |
---|
| 799 | - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi |
---|
| 800 | |
---|
[2456] | 801 | * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12 |
---|
[2421] | 802 | - supported Vine Linux 5 |
---|
[2456] | 803 | - for vl5, changed a requirement of Japanese VF package |
---|
| 804 | - added Requires: texlive-jvf = 2009 (vl5) |
---|
[2503] | 805 | - dropped dependencies of Provides:/Obsoletes: tags |
---|
| 806 | - merged these dependencies in texlive-common-vl.spec |
---|
[2421] | 807 | |
---|
[2257] | 808 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11 |
---|
| 809 | - rebuilt with poppler-0.14.2 (libpoppler has been up to so.7) |
---|
| 810 | |
---|
[1973] | 811 | * Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10 |
---|
| 812 | - applied some security patches from Debian |
---|
| 813 | - texlive-2009-CVE-2010-0827.patch |
---|
| 814 | - texlive-2009-CVE-2010-1440.patch |
---|
| 815 | - applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian |
---|
| 816 | - applied texlive-2009-luatexdir-libpoppler-0.12.patch |
---|
| 817 | based on texlive-2009-pdftexdir-libpoppler-0.12.patch |
---|
| 818 | - fixed some dependencies |
---|
| 819 | |
---|
[1542] | 820 | * Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9 |
---|
| 821 | - added BuildArch: noarch in %%package doc |
---|
| 822 | - removed some comment-out sentences |
---|
| 823 | |
---|
[1533] | 824 | * Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8 |
---|
| 825 | - separeted texmf-dist to texlive-common package |
---|
| 826 | |
---|
| 827 | * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7 |
---|
| 828 | - unpacked texlive-20091107-source.tar.xz |
---|
| 829 | - babel is available now |
---|
| 830 | - applied eptex-100420 and some patches: |
---|
| 831 | - eptex-100420-vine.patch |
---|
| 832 | - eptex-100420-patch1.diff |
---|
| 833 | |
---|
| 834 | * Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6 |
---|
| 835 | - updated ptexlive-20100711 |
---|
| 836 | |
---|
| 837 | * Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5 |
---|
| 838 | - customized updmap.cfg to correspond installed fonts |
---|
| 839 | |
---|
| 840 | * Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4 |
---|
| 841 | - fixed insttexfont() |
---|
| 842 | |
---|
| 843 | * Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3 |
---|
| 844 | - added jvf of MORISAWA basic 5 fonts |
---|
| 845 | - added cm-super, mathdesign in fntlst |
---|
| 846 | |
---|
| 847 | * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2 |
---|
| 848 | - define insttexfont() in %%install |
---|
| 849 | - copy almost compatible tetex-3.0 |
---|
| 850 | |
---|
| 851 | * Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1 |
---|
| 852 | - ptexlive-20090322 + TeXLive 2009 |
---|
| 853 | - added BuildRequires: openssl-devel |
---|
| 854 | |
---|
| 855 | * Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206 |
---|
| 856 | - ptexlive-20091009 + TeXLive 2008 |
---|