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