[1533] | 1 | ## -*- coding: utf-8-unix -*- |
---|
| 2 | %bcond_with firstbuild |
---|
[7042] | 3 | %bcond_with sources |
---|
[1533] | 4 | |
---|
[2421] | 5 | %define enable_sharedlib 1 |
---|
[5207] | 6 | %if %{?_dist_release} == "vl6" |
---|
[2421] | 7 | %define enable_sharedlib 0 |
---|
| 8 | %endif |
---|
| 9 | |
---|
[5207] | 10 | %global _use_internal_dependency_generator 0 |
---|
[5214] | 11 | %global __find_provides %{SOURCE99} |
---|
[5207] | 12 | %global __find_requires %{nil} |
---|
[1533] | 13 | |
---|
[5502] | 14 | %define tl11suppver 120120 |
---|
[5207] | 15 | %define texlivesrcver 20110705 |
---|
| 16 | %define texlivever 20110705 |
---|
[1533] | 17 | |
---|
[5207] | 18 | %define tl11supp_all_opts -m -r |
---|
| 19 | %define tl11supp_source_common_sh cd ${RPM_BUILD_DIR}/%{name}-%{version}/tl11; . ./common.sh %{tl11supp_all_opts}; set -x; |
---|
[1533] | 20 | |
---|
| 21 | %define tex_destdir %{_datadir} |
---|
| 22 | %define texmf %{tex_destdir}/texmf |
---|
| 23 | %define texlive_src %{tex_destdir}/texlive-sources |
---|
| 24 | %define build_tex_destdir %{buildroot}%{tex_destdir} |
---|
| 25 | %define build_texmf %{buildroot}%{texmf} |
---|
| 26 | |
---|
| 27 | %define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash |
---|
| 28 | %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash |
---|
[5207] | 29 | %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys |
---|
[1533] | 30 | %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null |
---|
| 31 | %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null |
---|
[3703] | 32 | %define vartexfonts %{_var}/lib/texmf/fonts |
---|
[1533] | 33 | |
---|
| 34 | Summary: The TeX text formatting system |
---|
| 35 | Summary(ja): TeX 文書整形システム |
---|
| 36 | Name: texlive |
---|
[5207] | 37 | Version: 2011 |
---|
[7042] | 38 | Release: 7%{?_dist_release} |
---|
[1533] | 39 | License: distributable |
---|
| 40 | Group: Applications/Publishing |
---|
[5207] | 41 | URL: http://www.tug.org/texlive/ |
---|
[1533] | 42 | |
---|
[5207] | 43 | Source: http://sourceforge.jp/projects/eptex/wiki/TeX_Live_2011/attach/tl11supp-%{tl11suppver}.tar.xz |
---|
[1533] | 44 | |
---|
[5207] | 45 | Source5: updmap-hdr.cfg.texlive-%{texlivesrcver} |
---|
| 46 | Source6: updmap.cfg.texlive-%{texlivesrcver} |
---|
| 47 | Source9: __usr_bin_symlink.sh |
---|
[1533] | 48 | |
---|
[5207] | 49 | ## desktop files |
---|
[1533] | 50 | Source10: pxdvi.desktop |
---|
[5207] | 51 | Source11: texdoctk.desktop |
---|
[1533] | 52 | |
---|
[5214] | 53 | ## find library sonames for libkpathsea and libptexenc |
---|
| 54 | Source99: find-provides-texlive.sh |
---|
| 55 | |
---|
[1533] | 56 | ## etc... |
---|
| 57 | Source100: texlive.cron |
---|
| 58 | Source102: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty |
---|
[5214] | 59 | Source110: http://mirrors.ctan.org/obsolete/support/pdftexenc/cmex.enc |
---|
[1533] | 60 | |
---|
| 61 | |
---|
| 62 | ###### |
---|
| 63 | # TeX patches |
---|
| 64 | ###### |
---|
| 65 | |
---|
| 66 | ## vine |
---|
[5207] | 67 | Patch0: tl11supp-%{tl11suppver}-vine.patch |
---|
| 68 | Patch1: texlive-%{texlivesrcver}-vine.patch |
---|
[1533] | 69 | Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch |
---|
[5207] | 70 | Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch |
---|
| 71 | ## pxdvi(k) for Vine Linux |
---|
| 72 | Patch10: tl11supp-%{tl11suppver}-pxdvik-vine.patch |
---|
[1533] | 73 | |
---|
| 74 | ## dvipdfmx |
---|
[5207] | 75 | # Patch20: ptexlive-%{ptexlivever}-dvipdfmx-vine.patch |
---|
[1533] | 76 | |
---|
| 77 | ## others |
---|
| 78 | |
---|
[1973] | 79 | ## security |
---|
[1533] | 80 | |
---|
[1973] | 81 | Requires: coreutils |
---|
[1533] | 82 | Requires: ed mktemp |
---|
[1973] | 83 | Requires: tmpwatch |
---|
| 84 | Requires: zlib |
---|
| 85 | Requires: libpng |
---|
| 86 | Requires: gd |
---|
| 87 | Requires: ncurses |
---|
| 88 | Requires: libjpeg |
---|
| 89 | Requires: t1lib |
---|
| 90 | Requires: freetype2 |
---|
[1533] | 91 | Requires: openMotif |
---|
[5207] | 92 | Requires: poppler >= 0.12 |
---|
[1533] | 93 | Requires: openssl |
---|
| 94 | Requires: libpaper |
---|
[1973] | 95 | Requires: fontconfig |
---|
[3944] | 96 | Requires: perl-Tk perl-Tk-TableMatrix |
---|
[1533] | 97 | Requires: nkf |
---|
[1973] | 98 | Requires: ghostscript >= 8.63 |
---|
[5207] | 99 | %if %{?_dist_release} == "vl7" |
---|
[1533] | 100 | Requires: libkpathsea = %{version}-%{release} |
---|
| 101 | Requires: libptexenc = %{version}-%{release} |
---|
[2421] | 102 | %endif |
---|
[5207] | 103 | %if %{?_dist_release} == "vl7" |
---|
| 104 | %{!?with_firstbuild:Requires: jvf >= 7.0} |
---|
| 105 | %endif |
---|
[2421] | 106 | %if %{?_dist_release} == "vl6" |
---|
[5207] | 107 | %{!?with_firstbuild:Requires: texlive-jvf >= 7.0} |
---|
[2421] | 108 | %endif |
---|
[1533] | 109 | Requires: fontconfig >= 2.6.0-2 |
---|
| 110 | Requires(post,postun): fontconfig >= 2.6.0-2 |
---|
| 111 | Requires(post): ed mktemp |
---|
| 112 | Requires(post): vutils >= 2.0.5 |
---|
[5248] | 113 | %{!?with_firstbuild:BuildRequires: texlive-common = %{version}} |
---|
[7042] | 114 | %{!?with_sources:BuildRequires: texlive-sources = %{version}} |
---|
[1533] | 115 | BuildRequires: xz |
---|
| 116 | BuildRequires: unzip |
---|
| 117 | BuildRequires: bison flex |
---|
[5207] | 118 | BuildRequires: bzip2-devel |
---|
[1973] | 119 | BuildRequires: zlib-devel |
---|
| 120 | BuildRequires: libpng-devel |
---|
| 121 | BuildRequires: gd-devel |
---|
| 122 | BuildRequires: ncurses-devel |
---|
| 123 | BuildRequires: libjpeg-devel |
---|
[1533] | 124 | BuildRequires: t1lib-devel |
---|
| 125 | BuildRequires: XOrg-devel |
---|
| 126 | BuildRequires: freetype2-devel >= 2.1.10 |
---|
[5207] | 127 | BuildRequires: autoconf >= 2.68 |
---|
[1533] | 128 | BuildRequires: openMotif-devel |
---|
[7042] | 129 | #BuildRequires: poppler-devel >= 0.12 |
---|
[1533] | 130 | BuildRequires: openssl-devel |
---|
| 131 | BuildRequires: libpaper-devel |
---|
| 132 | BuildRequires: fontconfig-devel |
---|
| 133 | BuildRequires: nkf |
---|
| 134 | |
---|
| 135 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 136 | |
---|
| 137 | Vendor: Project Vine |
---|
| 138 | Distribution: Vine Linux |
---|
| 139 | Packager: munepi |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | %description |
---|
| 143 | The TeX Live software distribution offers a complete TeX system for a |
---|
| 144 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
| 145 | encompasses programs for editing, typesetting, previewing and printing |
---|
| 146 | of TeX documents in many different languages, and a large collection |
---|
| 147 | of TeX macros and font libraries. |
---|
| 148 | |
---|
| 149 | The distribution includes extensive general documentation about TeX, |
---|
| 150 | as well as the documentation for the included software packages. |
---|
| 151 | |
---|
| 152 | |
---|
| 153 | %description -l ja |
---|
| 154 | TeX Live ソフトウェアディストリビューションは、 |
---|
| 155 | さまざまな Unix, Macintosh, Windows、および |
---|
| 156 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
| 157 | 多くの異なった言語を含む TeX ドキュメントの |
---|
| 158 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
| 159 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
| 160 | 同梱しています。 |
---|
| 161 | |
---|
| 162 | このディストリビューションは |
---|
| 163 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
| 164 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %package doc |
---|
| 168 | Summary: TeX Live: Documentation files of %{name} |
---|
| 169 | Group: Applications/Publishing |
---|
| 170 | Requires: %{name} = %{version}-%{release} |
---|
[1542] | 171 | BuildArch: noarch |
---|
[1533] | 172 | |
---|
| 173 | %description doc |
---|
| 174 | This package contains documentation files of %{name}. |
---|
| 175 | |
---|
[2421] | 176 | %if %{enable_sharedlib} |
---|
[1533] | 177 | %package -n libkpathsea |
---|
| 178 | Summary: path search library for the TeX Live |
---|
| 179 | Summary(ja): TeX Live 用パス検索ライブラリ |
---|
| 180 | Group: System Environment/Libraries |
---|
| 181 | |
---|
| 182 | %description -n libkpathsea |
---|
| 183 | This package includes runtime part of the Kpathsea library. |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | %package -n libkpathsea-devel |
---|
| 187 | Summary: path search libary and header files for the TeX Live |
---|
| 188 | Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル |
---|
| 189 | Group: Development/Libraries |
---|
| 190 | Requires: libkpathsea = %{version}-%{release} |
---|
| 191 | |
---|
| 192 | %description -n libkpathsea-devel |
---|
| 193 | This package includes static library and header files of the Kpathsea library. |
---|
| 194 | |
---|
| 195 | |
---|
| 196 | %package -n libptexenc |
---|
| 197 | Summary: Kanji code convert library for Japanese pTeX |
---|
| 198 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ |
---|
| 199 | Group: System Environment/Libraries |
---|
| 200 | Requires: libkpathsea = %{version}-%{release} |
---|
| 201 | |
---|
| 202 | %description -n libptexenc |
---|
| 203 | This package includes runtime part of the ptexenc library. |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | %package -n libptexenc-devel |
---|
| 207 | Summary: Kanji code convert library and header files for Japanese pTeX |
---|
| 208 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル |
---|
| 209 | Group: Development/Libraries |
---|
| 210 | Requires: libptexenc = %{version}-%{release} |
---|
| 211 | |
---|
| 212 | %description -n libptexenc-devel |
---|
| 213 | This package includes header files of the ptexenc library. |
---|
[2421] | 214 | %endif |
---|
[1533] | 215 | |
---|
| 216 | |
---|
| 217 | %prep |
---|
| 218 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
| 219 | |
---|
[5207] | 220 | %setup -q -c %{name}-%{version} |
---|
[1533] | 221 | |
---|
[5207] | 222 | ## |
---|
| 223 | [ -f %{texlive_src}/source/texlive-%{texlivesrcver}-source.tar.xz ] && \ |
---|
| 224 | %__ln_s -f %{texlive_src}/source/texlive-%{texlivesrcver}-source.tar.xz tl11/ |
---|
[1533] | 225 | |
---|
[5207] | 226 | ## apply tl11supp |
---|
| 227 | %patch0 -p1 -b .vine |
---|
| 228 | %__chmod +x tl11/scripts/build-post.sh || exit 1 |
---|
[1533] | 229 | |
---|
[5207] | 230 | ## fix $TLSRCDIR |
---|
| 231 | %__sed -i -e "s,TLSRCDIR=/opt/home-supp/tl11,TLSRCDIR=%{_builddir}/%{name}-%{version}/tl11," %{_builddir}/%{name}-%{version}/tl11/common.sh || exit 1 |
---|
[1533] | 232 | |
---|
[5207] | 233 | ## exec scripts/unpack.sh |
---|
| 234 | %{tl11supp_source_common_sh} |
---|
[1533] | 235 | |
---|
[5207] | 236 | scripts/unpack.sh %{tl11supp_all_opts} || exit 1 |
---|
[1533] | 237 | |
---|
[5207] | 238 | ## some hacks for Vine Linux |
---|
| 239 | (cd ../ |
---|
| 240 | ## vine |
---|
| 241 | %patch1 -p1 -b .vine |
---|
| 242 | %patch2 -p1 -b .vine |
---|
| 243 | %patch3 -p1 -b .vine |
---|
| 244 | %patch10 -p1 -b .vine |
---|
[1533] | 245 | ) |
---|
| 246 | |
---|
[5207] | 247 | # ## dvipdfmx for Vine Linux |
---|
| 248 | # %patch20 -p1 -b .orig |
---|
| 249 | # ) |
---|
[1533] | 250 | |
---|
[1973] | 251 | ## apply security patches |
---|
| 252 | |
---|
| 253 | |
---|
[1533] | 254 | %build |
---|
| 255 | set -x |
---|
| 256 | unset TEXINPUTS || : |
---|
| 257 | unset HOME || : |
---|
[5207] | 258 | %{tl11supp_source_common_sh} |
---|
[1533] | 259 | |
---|
[5207] | 260 | ## exec scripts/build.sh |
---|
| 261 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ |
---|
| 262 | CXXFLAGS="$RPM_OPT_FLAGS" \ |
---|
| 263 | LANG=C |
---|
[1533] | 264 | |
---|
[5207] | 265 | scripts/build.sh %{tl11supp_all_opts} || exit 1 |
---|
[1533] | 266 | |
---|
| 267 | |
---|
| 268 | %install |
---|
[1542] | 269 | ## prepare %%install session |
---|
[1533] | 270 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
| 271 | |
---|
| 272 | set -x |
---|
| 273 | unset TEXINPUTS || : |
---|
| 274 | unset HOME || : |
---|
[5207] | 275 | %{tl11supp_source_common_sh} |
---|
[1533] | 276 | |
---|
[5207] | 277 | ## The following lines are useful for the call of |
---|
| 278 | ## "rpmbuild -ba --short-circuit ~/rpm/SPECS/texlive-vl.spec" |
---|
| 279 | %__rm -rf ${SRCDIR}/inst |
---|
| 280 | (cd ${SRCDIR}/Work |
---|
| 281 | %__make world |
---|
[1533] | 282 | ) |
---|
| 283 | |
---|
[5207] | 284 | ## exec scripts/build-post.sh (Vine Linux only) |
---|
| 285 | scripts/build-post.sh %{tl11supp_all_opts} || exit 1 |
---|
| 286 | [ -d $SRCDIR/inst/texmf.orig ] && %__rm -rf $SRCDIR/inst/texmf.orig || exit 1 |
---|
[1533] | 287 | |
---|
[5207] | 288 | ## almostly exec scripts/texmf.sh |
---|
| 289 | scripts/texmf.sh %{tl11supp_all_opts} || exit 1 |
---|
[1533] | 290 | |
---|
[5207] | 291 | ## almostly exec scripts/font.sh |
---|
| 292 | yes N | scripts/font.sh %{tl11supp_all_opts} || exit 1 |
---|
[1533] | 293 | |
---|
[5207] | 294 | ## replace updmap{,-hdr}.cfg with our updmap{,-hdr}.cfg respectively |
---|
| 295 | %__cp -af %{SOURCE5} $SRCDIR/inst/texmf/web2c/updmap-hdr.cfg || exit 1 |
---|
| 296 | %__cp -af %{SOURCE6} $SRCDIR/inst/texmf/web2c/updmap.cfg || exit 1 |
---|
[1533] | 297 | |
---|
[5207] | 298 | ## almostly exec scripts/install.sh |
---|
| 299 | %__mkdir_p %{build_tex_destdir} |
---|
| 300 | (cd $SRCDIR/inst && tar cf - *) \ |
---|
| 301 | | (cd %{build_tex_destdir} && tar xf -) || exit 1 |
---|
[1533] | 302 | |
---|
[5248] | 303 | ## check japanese.ldf (Babel for Japanese) |
---|
[5289] | 304 | %if %{without firstbuild} |
---|
[5248] | 305 | [ -f %{build_texmf}/tex/platex/japanese/japanese.ldf ] || exit 1 |
---|
| 306 | [ -f %{build_texmf}/tex/platex/japanese/ptex.log ] || exit 1 |
---|
| 307 | [ -f %{build_texmf}/tex/platex/japanese/texput.log ] && exit 1 |
---|
[5289] | 308 | %endif |
---|
[5248] | 309 | |
---|
[5207] | 310 | ## remove the symbolic link texmf-dist@ |
---|
| 311 | [ -L %{build_tex_destdir}/texmf-dist ] && \ |
---|
| 312 | %__rm -f %{build_tex_destdir}/texmf-dist || exit 1 |
---|
| 313 | ## remove lcdf-typetools-for-tex-live directory |
---|
[5248] | 314 | #%__rm -r %{build_tex_destdir}/lcdf-typetools-for-tex-live || exit 1 |
---|
[5214] | 315 | ## remove unused directories in texmf/fonts/map |
---|
| 316 | %__rm -rf %{build_texmf}/fonts/map/dvips/updmap || exit 1 |
---|
| 317 | %__rm -rf %{build_texmf}/fonts/map/pdftex/updmap || exit 1 |
---|
[1533] | 318 | |
---|
[5214] | 319 | ## move bin, lib include, man, info to /usr, resp. |
---|
[5207] | 320 | %__rm -f %{build_tex_destdir}/bin/man || exit 1 |
---|
| 321 | %__mv %{build_tex_destdir}/bin %{buildroot}%{_bindir} || exit 1 |
---|
| 322 | %__mv %{build_tex_destdir}/lib %{buildroot}%{_libdir} || exit 1 |
---|
| 323 | %__mv %{build_tex_destdir}/include %{buildroot}%{_includedir} || exit 1 |
---|
| 324 | %__cp -ar %{build_texmf}/doc/man %{buildroot}%{_mandir} || exit 1 |
---|
| 325 | #%__mv %{build_texmf}/doc/info %{buildroot}%{_infodir} || exit 1 |
---|
[1533] | 326 | |
---|
[5214] | 327 | ## move dvipdfmx/newmap/{ptex,otf} to dvipdfmx/{ptex,otf}, resp. |
---|
[5207] | 328 | %__mv %{build_texmf}/fonts/map/dvipdfmx/newmap/* %{build_texmf}/fonts/map/dvipdfmx/ || exit 1 |
---|
| 329 | %__rm -rf %{build_texmf}/fonts/map/dvipdfmx/newmap |
---|
[1533] | 330 | |
---|
[5207] | 331 | ## make some fundamental texmf trees |
---|
| 332 | %__mkdir_p %{build_texmf}-{config,var,local,dist} |
---|
| 333 | %__mkdir_p %{build_texmf}/fonts/{truetype,opentype} |
---|
[1533] | 334 | |
---|
[5248] | 335 | texmf_local_dirs=( |
---|
| 336 | bibtex/bib/local |
---|
| 337 | bibtex/bst/local |
---|
| 338 | dvips/local |
---|
| 339 | fonts/source/local |
---|
| 340 | fonts/tfm/local |
---|
| 341 | fonts/opentype/local |
---|
| 342 | fonts/truetype/local |
---|
| 343 | fonts/type1/local |
---|
| 344 | fonts/vf/local |
---|
| 345 | metapost/local |
---|
| 346 | pbibtex/bib/local |
---|
| 347 | pbibtex/bst/local |
---|
| 348 | tex/latex/local |
---|
| 349 | tex/plain/local |
---|
| 350 | tex/platex/local |
---|
| 351 | web2c |
---|
| 352 | ) |
---|
| 353 | for i in ${texmf_local_dirs[@]}; do |
---|
| 354 | %__mkdir_p %{build_texmf}-local/${i} |
---|
| 355 | done |
---|
| 356 | |
---|
[6253] | 357 | ## remove tlmgr |
---|
| 358 | %__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1 |
---|
| 359 | |
---|
[5207] | 360 | ## copy texmf-dist/README |
---|
| 361 | %__cp -a %{texlive_src}/texmf-dist/README %{build_texmf}-dist/ || exit 1 |
---|
[1533] | 362 | |
---|
[5207] | 363 | ## customize updmap.cfg |
---|
| 364 | %__sed -i -e "s,^\(Map\|MixedMap\),#! \1,g" %{build_texmf}/web2c/updmap.cfg |
---|
[1533] | 365 | |
---|
| 366 | ## dvipdfmx: our map file |
---|
| 367 | %__mkdir_p %{build_texmf}/fonts/map/dvipdfmx |
---|
| 368 | touch %{build_texmf}/fonts/map/dvipdfmx/vine.map |
---|
| 369 | |
---|
| 370 | ## install jtygm.sty |
---|
[5207] | 371 | %__mkdir_p %{build_texmf}/tex/platex/base/ |
---|
| 372 | %__install -m0644 %{SOURCE102} %{build_texmf}/tex/platex/base/ || exit 1 |
---|
[1533] | 373 | |
---|
| 374 | ## relocate binaries to %{_bindir} and fix relative symlinks |
---|
| 375 | pushd %{buildroot}%{_bindir} |
---|
| 376 | for i in `find . -type l`; do |
---|
| 377 | if [ "`readlink $i | grep '..' | wc -l`" == "1" ]; then |
---|
| 378 | l=`readlink $i | sed s,../,../share/,` |
---|
| 379 | %__ln_s -f $l $i |
---|
| 380 | fi |
---|
| 381 | done |
---|
[3944] | 382 | ## if the real file of a symlink on /usr/bin is contained |
---|
| 383 | ## in texlive-collection-*, remove its symlink |
---|
[5207] | 384 | ## See __usr_bin_symlink.sh |
---|
[3944] | 385 | del_symlnks=( |
---|
[5207] | 386 | texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh |
---|
| 387 | texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex |
---|
| 388 | texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc |
---|
| 389 | texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro |
---|
[3944] | 390 | texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py |
---|
| 391 | texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph |
---|
| 392 | texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl |
---|
[5207] | 393 | texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl |
---|
[3944] | 394 | texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man |
---|
[5207] | 395 | texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl |
---|
| 396 | texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl |
---|
[3944] | 397 | texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl |
---|
[5207] | 398 | texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl |
---|
[3944] | 399 | texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh |
---|
| 400 | texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl |
---|
[5207] | 401 | texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180 |
---|
| 402 | texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270 |
---|
| 403 | texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90 |
---|
| 404 | texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook |
---|
[3944] | 405 | texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl |
---|
[5207] | 406 | texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip |
---|
| 407 | texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam |
---|
| 408 | texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod |
---|
| 409 | texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up |
---|
| 410 | texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up |
---|
| 411 | texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin |
---|
| 412 | texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup |
---|
| 413 | texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun |
---|
[3944] | 414 | texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl |
---|
| 415 | texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper |
---|
| 416 | texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps |
---|
[5207] | 417 | texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl |
---|
[3944] | 418 | texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl |
---|
[5207] | 419 | texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl |
---|
[3944] | 420 | texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff |
---|
| 421 | texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten |
---|
| 422 | texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser |
---|
| 423 | texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm |
---|
| 424 | texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst |
---|
| 425 | texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc |
---|
| 426 | texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl |
---|
| 427 | texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm |
---|
| 428 | texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font |
---|
| 429 | texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx |
---|
| 430 | texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx |
---|
| 431 | texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs |
---|
| 432 | texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp |
---|
| 433 | texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl |
---|
[5207] | 434 | texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh |
---|
| 435 | texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh |
---|
| 436 | texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh |
---|
| 437 | texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh |
---|
| 438 | texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh |
---|
| 439 | texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh |
---|
| 440 | texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh |
---|
| 441 | texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh |
---|
| 442 | texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl |
---|
[3944] | 443 | texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex |
---|
[5207] | 444 | texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py |
---|
| 445 | texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl |
---|
[3944] | 446 | texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl |
---|
[5207] | 447 | texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex |
---|
[3944] | 448 | texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries |
---|
| 449 | texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl |
---|
| 450 | texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu |
---|
[5207] | 451 | texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl |
---|
[3944] | 452 | texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu |
---|
| 453 | texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf |
---|
| 454 | texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl |
---|
| 455 | texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl |
---|
| 456 | texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl |
---|
| 457 | texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl |
---|
[5207] | 458 | texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua |
---|
| 459 | texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua |
---|
| 460 | texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua |
---|
[3944] | 461 | texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu |
---|
[5207] | 462 | texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb |
---|
| 463 | texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl |
---|
[3944] | 464 | texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex |
---|
[5207] | 465 | texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl |
---|
| 466 | texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf |
---|
[3944] | 467 | texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl |
---|
| 468 | ) |
---|
| 469 | for i in ${del_symlnks[@]}; do |
---|
| 470 | %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1 |
---|
| 471 | done |
---|
[1533] | 472 | |
---|
[5214] | 473 | ## remove man files of psutils |
---|
[5207] | 474 | %__rm \ |
---|
| 475 | %{buildroot}%{_mandir}/man1/epsffit.1 \ |
---|
| 476 | %{buildroot}%{_mandir}/man1/extractres.1 \ |
---|
| 477 | %{buildroot}%{_mandir}/man1/fixdlsrps.1 \ |
---|
| 478 | %{buildroot}%{_mandir}/man1/fixfmps.1 \ |
---|
| 479 | %{buildroot}%{_mandir}/man1/fixpsditps.1 \ |
---|
| 480 | %{buildroot}%{_mandir}/man1/fixpspps.1 \ |
---|
| 481 | %{buildroot}%{_mandir}/man1/fixscribeps.1 \ |
---|
| 482 | %{buildroot}%{_mandir}/man1/fixtpps.1 \ |
---|
| 483 | %{buildroot}%{_mandir}/man1/fixwfwps.1 \ |
---|
| 484 | %{buildroot}%{_mandir}/man1/fixwpps.1 \ |
---|
| 485 | %{buildroot}%{_mandir}/man1/fixwwps.1 \ |
---|
| 486 | %{buildroot}%{_mandir}/man1/getafm.1 \ |
---|
| 487 | %{buildroot}%{_mandir}/man1/includeres.1 \ |
---|
| 488 | %{buildroot}%{_mandir}/man1/psbook.1 \ |
---|
| 489 | %{buildroot}%{_mandir}/man1/psmerge.1 \ |
---|
| 490 | %{buildroot}%{_mandir}/man1/psnup.1 \ |
---|
| 491 | %{buildroot}%{_mandir}/man1/psresize.1 \ |
---|
| 492 | %{buildroot}%{_mandir}/man1/psselect.1 \ |
---|
| 493 | %{buildroot}%{_mandir}/man1/pstops.1 \ |
---|
| 494 | || exit 1 |
---|
[5214] | 495 | ## remove man files of lcdf-typetools |
---|
| 496 | %__rm \ |
---|
| 497 | %{buildroot}%{_mandir}/man1/cfftot1.1 \ |
---|
| 498 | %{buildroot}%{_mandir}/man1/mmafm.1 \ |
---|
| 499 | %{buildroot}%{_mandir}/man1/mmpfb.1 \ |
---|
| 500 | %{buildroot}%{_mandir}/man1/otfinfo.1 \ |
---|
| 501 | %{buildroot}%{_mandir}/man1/otftotfm.1 \ |
---|
| 502 | %{buildroot}%{_mandir}/man1/t1dotlessj.1 \ |
---|
| 503 | %{buildroot}%{_mandir}/man1/t1lint.1 \ |
---|
| 504 | %{buildroot}%{_mandir}/man1/t1rawafm.1 \ |
---|
| 505 | %{buildroot}%{_mandir}/man1/t1reencode.1 \ |
---|
| 506 | %{buildroot}%{_mandir}/man1/t1testpage.1 \ |
---|
| 507 | %{buildroot}%{_mandir}/man1/ttftotype42.1 \ |
---|
| 508 | || exit 1 |
---|
[5248] | 509 | ## remove man files of dvipng |
---|
| 510 | %__rm \ |
---|
| 511 | %{buildroot}%{_mandir}/man1/dvigif.1 \ |
---|
| 512 | %{buildroot}%{_mandir}/man1/dvipng.1 \ |
---|
| 513 | || exit 1 |
---|
| 514 | ## remove some files of asymptote |
---|
| 515 | %__rm \ |
---|
| 516 | %{buildroot}%{_mandir}/man1/asy.1 \ |
---|
| 517 | %{buildroot}%{_mandir}/man1/xasy.1 \ |
---|
| 518 | %{build_texmf}/tex/latex/asymptote/asymptote.sty \ |
---|
| 519 | %{build_texmf}/tex/latex/asymptote/ocg.sty \ |
---|
| 520 | || exit 1 |
---|
| 521 | ## remove a man file of latexmk |
---|
| 522 | %__rm \ |
---|
| 523 | %{buildroot}%{_mandir}/man1/latexmk.1 \ |
---|
| 524 | || exit 1 |
---|
| 525 | ## remove a man file of detex |
---|
| 526 | %__rm \ |
---|
| 527 | %{buildroot}%{_mandir}/man1/detex.1 \ |
---|
| 528 | || exit 1 |
---|
[1533] | 529 | |
---|
[5207] | 530 | # remove unpackaged files |
---|
| 531 | find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \; |
---|
| 532 | find %{buildroot}%{_datadir} -name ls-R -exec %__rm -f {} \; |
---|
| 533 | find %{buildroot}%{_mandir} -name Makefile -exec %__rm -f {} \; |
---|
| 534 | find %{buildroot}%{_mandir} -name *.pdf -exec %__rm -f {} \; |
---|
[1533] | 535 | |
---|
[5207] | 536 | |
---|
| 537 | # ## compress info files |
---|
| 538 | # %__rm -f %{buildroot}%{_infodir}/dir |
---|
| 539 | # %__gzip -9nf %{buildroot}%{_infodir}/*info* ||: |
---|
| 540 | |
---|
[1533] | 541 | ## desktop things |
---|
| 542 | %__mkdir_p %{buildroot}%{_datadir}/applications |
---|
[5207] | 543 | %__install -m0644 -c %{SOURCE10} %{SOURCE11} \ |
---|
| 544 | %{buildroot}%{_datadir}/applications/ |
---|
[1533] | 545 | |
---|
| 546 | # for created fonts |
---|
| 547 | %__mkdir_p %{buildroot}%{vartexfonts} |
---|
| 548 | %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily |
---|
| 549 | %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/ |
---|
| 550 | |
---|
| 551 | ## set executable bit for the library |
---|
[2421] | 552 | %if %{enable_sharedlib} |
---|
[1533] | 553 | %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.* |
---|
| 554 | %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.* |
---|
[2421] | 555 | %endif |
---|
[1533] | 556 | |
---|
| 557 | ## remove unpackaging files |
---|
| 558 | find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f |
---|
| 559 | find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f |
---|
| 560 | |
---|
| 561 | ### Files list |
---|
| 562 | find %{buildroot} -type f -or -type l | \ |
---|
| 563 | %__sed -e "s|%{buildroot}||g" | \ |
---|
| 564 | %__grep -v -e "^%{_sysconfdir}" -e ".patch$" -e "\.diff$" -e "\.orig$" | \ |
---|
| 565 | %__grep -v "%{_includedir}" | \ |
---|
| 566 | %__grep -v "%{_libdir}" | \ |
---|
| 567 | %__grep -v "%{_infodir}" | \ |
---|
| 568 | %__sed -e "s|.*\.\(cnf\|cfg\)$|%config(noreplace) &|" \ |
---|
| 569 | -e "s|.*ls-R$|%ghost &|" \ |
---|
| 570 | -e "s|^.*/updmap$|%config &|" \ |
---|
| 571 | -e "s|%{texmf}*/dvips/config/\(psfonts.*\|ps2pk.*\|pdftex.*\|dvipdfm.*\|.*35\)\.map$|%ghost &|" \ |
---|
| 572 | -e "s|%{texmf}*/web2c/.*\.\(fmt\|efmt\|log\|base\|mem\|oft\)$|%config &|" \ |
---|
| 573 | -e "s|%{texmf}*/dvips/config/config\.\(generic\|pdf\|ps\|www\)$|%config &|" \ |
---|
| 574 | -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \ |
---|
| 575 | -e "s|%{texmf}*/pdftex/config/pdftex.cfg$|%config &|" \ |
---|
| 576 | -e "s|%{texmf}*/xdvi/vfontmap$|%config &|" \ |
---|
| 577 | -e "s|%{texmf}*/xdvi/XDvi|%config &|" \ |
---|
| 578 | -e "s|%{_mandir}/.*|&*|" \ |
---|
[5207] | 579 | > %{_builddir}/%{name}-%{version}/filelist.full |
---|
[1533] | 580 | |
---|
[5207] | 581 | find %{buildroot}%{texmf}* -type d | \ |
---|
[1533] | 582 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
[5207] | 583 | -e "s|$|/|" >> %{_builddir}/%{name}-%{version}/filelist.full |
---|
[1533] | 584 | |
---|
| 585 | ## subpackages |
---|
[5214] | 586 | %__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/%{name}-%{version}/filelist.full > %{_builddir}/%{name}-%{version}/filelist.doc |
---|
[5207] | 587 | cat %{_builddir}/%{name}-%{version}/filelist.doc \ |
---|
| 588 | %{_builddir}/%{name}-%{version}/filelist.full | \ |
---|
| 589 | sort | uniq -u > %{_builddir}/%{name}-%{version}/filelist.tmp |
---|
| 590 | %__mv -f %{_builddir}/%{name}-%{version}/filelist.tmp %{_builddir}/%{name}-%{version}/filelist.full |
---|
[1533] | 591 | |
---|
| 592 | |
---|
| 593 | %clean |
---|
| 594 | %__rm -rf %{buildroot} |
---|
| 595 | |
---|
| 596 | |
---|
[5207] | 597 | %pretrans |
---|
| 598 | rpm -q texlive | grep -q 2009 |
---|
| 599 | [ $? -eq 1 ] && exit 0 |
---|
| 600 | ## upgrade TeX Live from 2009 to 2011 |
---|
| 601 | _trans_time=$(date +%Y%m%d) |
---|
| 602 | echo "Running transitional process of your TeX system ... " |
---|
| 603 | for dir in %{texmf}-var %{texmf}-config; do |
---|
| 604 | _trans_dir=${dir}.${_trans_time}.rpmorig |
---|
| 605 | [ -d ${_trans_dir}.old ] && \ |
---|
| 606 | echo -n " " && \ |
---|
| 607 | echo "Found ${_trans_dir}.old: " && \ |
---|
| 608 | echo -n " " && \ |
---|
| 609 | %__rm -rvf ${_trans_dir}.old |
---|
| 610 | [ -d ${_trans_dir} ] && \ |
---|
| 611 | echo -n " " && \ |
---|
| 612 | echo "Found ${_trans_dir}: " && \ |
---|
| 613 | echo -n " " && \ |
---|
| 614 | %__mv -v ${_trans_dir} ${_trans_dir}.old |
---|
| 615 | [ -d ${dir} ] && \ |
---|
| 616 | echo -n " " && \ |
---|
| 617 | echo "Found ${dir}: " && \ |
---|
| 618 | echo -n " " && \ |
---|
| 619 | %__mv -v ${dir} ${_trans_dir} |
---|
| 620 | done |
---|
| 621 | echo "done." |
---|
[4152] | 622 | |
---|
| 623 | |
---|
[1533] | 624 | %post |
---|
[5207] | 625 | ## create our own vine.map (cid-x.map) to use dvipdfmx |
---|
[1533] | 626 | ( %{exec_upddeffont} ) ||: |
---|
| 627 | |
---|
| 628 | %{exec_texhash} |
---|
[5207] | 629 | %{exec_updmap} --syncwithtrees --nomkmap &>/dev/null |
---|
[1533] | 630 | %{exec_updmap} --enable KanjiMap vine.map >/dev/null 2>&1 |
---|
[5502] | 631 | if [ "$1" = 2 ]; then |
---|
| 632 | %{exec_fmtutil} 2>&1 |
---|
| 633 | fi |
---|
[5207] | 634 | exit 0 |
---|
[1533] | 635 | |
---|
| 636 | %preun |
---|
| 637 | if [ "$1" = 0 ]; then |
---|
[3840] | 638 | %__rm -rf %{vartexfonts} |
---|
| 639 | |
---|
[1533] | 640 | ## dvipdfmx |
---|
[5207] | 641 | for i in %{texmf}/fonts/truetype/*; do |
---|
| 642 | if [ -L "$i" ]; then |
---|
| 643 | %__rm -f "$i" |
---|
| 644 | fi |
---|
[1533] | 645 | done |
---|
| 646 | fi |
---|
| 647 | |
---|
| 648 | |
---|
[2421] | 649 | %if %{enable_sharedlib} |
---|
[1533] | 650 | %post -n libkpathsea |
---|
| 651 | /sbin/ldconfig |
---|
| 652 | # /sbin/install-info %{_infodir}/kpathsea.info.* %{_infodir}/dir |
---|
| 653 | |
---|
| 654 | %preun -n libkpathsea |
---|
| 655 | # if [ "$1" = 0 ]; then |
---|
| 656 | # /sbin/install-info --delete %{_infodir}/kpathsea.info.* %{_infodir}/dir |
---|
| 657 | # fi |
---|
| 658 | |
---|
| 659 | %postun -n libkpathsea |
---|
| 660 | /sbin/ldconfig |
---|
| 661 | |
---|
| 662 | %post -n libptexenc |
---|
| 663 | /sbin/ldconfig |
---|
| 664 | |
---|
| 665 | %postun -n libptexenc |
---|
| 666 | /sbin/ldconfig |
---|
[2421] | 667 | %endif |
---|
[1533] | 668 | |
---|
[5207] | 669 | %posttrans |
---|
[3910] | 670 | %__mkdir_p %{vartexfonts} |
---|
[5207] | 671 | %__chmod 1777 %{vartexfonts} |
---|
[1533] | 672 | |
---|
[5207] | 673 | |
---|
[1533] | 674 | %triggerin -- ghostscript |
---|
| 675 | %__rm -f %{texmf}/fonts/cmap/ghostscript |
---|
| 676 | if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then |
---|
| 677 | %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript |
---|
| 678 | elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then |
---|
| 679 | %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript |
---|
| 680 | fi |
---|
| 681 | %{exec_texhash} |
---|
| 682 | |
---|
| 683 | |
---|
[5207] | 684 | %files -f %{_builddir}/%{name}-%{version}/filelist.full |
---|
[1533] | 685 | %defattr(-,root,root) |
---|
[3840] | 686 | %attr(1777,root,root) %dir %{vartexfonts} |
---|
[1533] | 687 | %config %{_sysconfdir}/cron.daily/texlive.cron |
---|
| 688 | |
---|
[5207] | 689 | %files doc -f %{_builddir}/%{name}-%{version}/filelist.doc |
---|
[1533] | 690 | %defattr(-,root,root) |
---|
| 691 | |
---|
[2421] | 692 | %if %{enable_sharedlib} |
---|
[1533] | 693 | %files -n libkpathsea |
---|
| 694 | %defattr(-,root,root) |
---|
| 695 | %{_libdir}/libkpathsea.so.* |
---|
| 696 | # %{_infodir}/kpathsea.info* |
---|
| 697 | |
---|
| 698 | %files -n libkpathsea-devel |
---|
| 699 | %defattr(-,root,root) |
---|
| 700 | %{_libdir}/libkpathsea.so |
---|
| 701 | %dir %{_includedir}/kpathsea |
---|
| 702 | %{_includedir}/kpathsea/* |
---|
| 703 | |
---|
| 704 | %files -n libptexenc |
---|
| 705 | %defattr(-,root,root) |
---|
| 706 | %{_libdir}/libptexenc.so.* |
---|
| 707 | |
---|
| 708 | %files -n libptexenc-devel |
---|
| 709 | %defattr(-,root,root) |
---|
| 710 | %{_libdir}/libptexenc.so |
---|
| 711 | %dir %{_includedir}/ptexenc |
---|
| 712 | %{_includedir}/ptexenc/* |
---|
[2421] | 713 | %endif |
---|
[1533] | 714 | |
---|
| 715 | |
---|
| 716 | %changelog |
---|
[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 |
---|