|
@@ -1,4 +1,4 @@
|
|
-## -*- coding: utf-8-unix -*-
|
|
+# -*- coding: utf-8-unix -*-
|
|
%bcond_with firstbuild
|
|
%bcond_with firstbuild
|
|
|
|
|
|
# * texmf/web2c/texmf.cnf
|
|
# * texmf/web2c/texmf.cnf
|
|
@@ -18,95 +18,47 @@
|
|
%global __find_provides %{SOURCE99}
|
|
%global __find_provides %{SOURCE99}
|
|
%global __find_requires %{nil}
|
|
%global __find_requires %{nil}
|
|
|
|
|
|
-%define texlivesrcver 20120701
|
|
+%global texlivesrcver 20130823
|
|
-%define texlivever 20120701
|
|
|
|
-
|
|
|
|
-%define enhancement_texlivesrcver 20130106
|
|
|
|
-
|
|
|
|
-%define aliasttfdir %{texmfsysvar}/fonts/truetype/vine
|
|
|
|
-%define texmfsysconfig %{_sysconfdir}/texmf
|
|
|
|
-%define texmfsysvar %{_var}/lib/texmf
|
|
|
|
-%define vartexfonts %{texmfsysvar}/fonts
|
|
|
|
-
|
|
|
|
-%define tex_destdir %{_datadir}
|
|
|
|
-%define texmf %{tex_destdir}/texmf
|
|
|
|
-%define texlive_src %{tex_destdir}/texlive-sources
|
|
|
|
-%define build_tex_destdir %{buildroot}%{tex_destdir}
|
|
|
|
-%define build_texmf %{buildroot}%{texmf}
|
|
|
|
-
|
|
|
|
-## use some macros for %post, %posttrans
|
|
|
|
-%define touch_run(%1) %{expand:( %__mkdir_p /var/run/texlive; touch /var/run/texlive/run-%1; )
|
|
|
|
-}
|
|
|
|
-%define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && \\\
|
|
|
|
- %{_sbindir}/update-defaultfont 2> /dev/null
|
|
|
|
-%define exec_texhash [ -e /var/run/texlive/run-texhash ] && ( \\\
|
|
|
|
- [ -x %{_bindir}/texhash ] && \\\
|
|
|
|
- echo -n " "; echo -n "Running texhash... "; \\\
|
|
|
|
- %{_bindir}/texhash 2> /dev/null; \\\
|
|
|
|
- echo "done." ) && %__rm -f /var/run/texlive/run-texhash;
|
|
|
|
-%define exec_mtxrun [ -e /var/run/texlive/run-mtxrun ] && ( \\\
|
|
|
|
- [ -x %{_bindir}/mtxrun ] && \\\
|
|
|
|
- echo -n " "; echo -n "Running mtxrun... "; \\\
|
|
|
|
- export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; \\\
|
|
|
|
- %{_bindir}/mtxrun --generate &> /dev/null; \\\
|
|
|
|
- echo "done." ) && %__rm -f /var/run/texlive/run-mtxrun;
|
|
|
|
-%define exec_fmtutil [ -e /var/run/texlive/run-fmtutil ] && ( \\\
|
|
|
|
- [ -x %{_bindir}/fmtutil-sys ] && \\\
|
|
|
|
- echo -n " "; echo -n "Running fmtutil-sys... "; \\\
|
|
|
|
- %{_bindir}/fmtutil-sys --all &> /dev/null; \\\
|
|
|
|
- echo "done." ) && %__rm -f /var/run/texlive/run-fmtutil;
|
|
|
|
-%define exec_updmap [ -e /var/run/texlive/run-updmap ] && ( \\\
|
|
|
|
- [ -x %{_bindir}/updmap-sys ] && \\\
|
|
|
|
- echo -n " "; echo -n "Running updmap-sys... "; \\\
|
|
|
|
- %{_bindir}/updmap-sys --nohash --quiet &> /dev/null; \\\
|
|
|
|
- echo "done." ) && %__rm -f /var/run/texlive/run-updmap;
|
|
|
|
|
|
|
|
Summary: The TeX text formatting system
|
|
Summary: The TeX text formatting system
|
|
Summary(ja): TeX 文書整形システム
|
|
Summary(ja): TeX 文書整形システム
|
|
Name: texlive
|
|
Name: texlive
|
|
-Version: 2012
|
|
+Version: 2013
|
|
-Release: 4%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
License: distributable
|
|
License: distributable
|
|
Group: Applications/Publishing
|
|
Group: Applications/Publishing
|
|
URL: http://www.tug.org/texlive/
|
|
URL: http://www.tug.org/texlive/
|
|
|
|
|
|
## original TeX Live source
|
|
## original TeX Live source
|
|
-Source: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivesrcver}-source.tar.xz
|
|
+#Source: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivesrcver}-source.tar.xz
|
|
-
|
|
+## snapshot
|
|
-## pxdvi pmetapost
|
|
+# $ rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source/ texlive-source-YYYYMMDD
|
|
-# $ wget -N http://www.logic.at/people/preining/build-tlptexlive-latest.zip
|
|
+# $ tar -cf - texlive-source-YYYYMMDD | pxz -9 > texlive-source-YYYYMMDD.tar.xz
|
|
-# $ stat -c %y build-tlptexlive-latest.zip
|
|
+Source: %{name}-source-%{texlivesrcver}.tar.xz
|
|
-# 2012-11-07 09:23:34.000000000 +0900
|
|
+
|
|
-# $ sha1sum build-tlptexlive-latest.zip
|
|
+## tlptexlive: pmetapost
|
|
-# d863f331ce51257bba2266ddff15c90ad59bef96 build-tlptexlive-latest.zip
|
|
+Source1: http://www.preining.info/software/build-tlptexlive-20130815.zip
|
|
-# $ mv build-tlptexlive-latest.zip build-tlptexlive-20121107.zip
|
|
|
|
-Source1: http://www.logic.at/people/preining/build-tlptexlive-20121107.zip
|
|
|
|
Source2: http://www.tug.org/texlive/updmap-kanji.html
|
|
Source2: http://www.tug.org/texlive/updmap-kanji.html
|
|
|
|
|
|
-## texmf dir.
|
|
+## our updmap{,-hdr}.cfg from collection-basic 20130823
|
|
-Source5: texlive-sources-%{texlivesrcver}-texmf.tar.xz
|
|
+# NOTE:
|
|
-#Source6: updmap-hdr.cfg.texlive-%{texlivesrcver}
|
|
+# * texmf.cnf: we use the conf file texmf.cnf generated from Source0
|
|
|
|
+Source6: updmap-hdr.cfg.texlive-%{texlivesrcver}
|
|
Source7: updmap.cfg.texlive-%{texlivesrcver}
|
|
Source7: updmap.cfg.texlive-%{texlivesrcver}
|
|
|
|
|
|
## desktop files
|
|
## desktop files
|
|
-Source10: pxdvi.desktop
|
|
+# Source10: pxdvi.desktop
|
|
Source11: texdoctk.desktop
|
|
Source11: texdoctk.desktop
|
|
|
|
|
|
-## update enhancement
|
|
+# ## pxdvi from tlptexlive 2012
|
|
-# dvipdfmx eptex euptex makejvf mendex pbibtex pdvitype pmpost ppltotf ptex ptftopl upbibtex updvitype uppltotf uptex uptftopl wovp2ovf
|
|
+# Source50: texlive-source-xdvik-20130106.tar.xz
|
|
-Source50: texlive-source-%{enhancement_texlivesrcver}.tar.xz
|
|
+# Source51: http://www.preining.info/software/build-tlptexlive-20130106.zip
|
|
-Source51: build-tlptexlive-20130106.zip
|
|
|
|
-# updmap.pl: fix duplicated-lw35
|
|
|
|
-# http://www.tug.org/svn/texlive/trunk/Master/texmf-dist/scripts/texlive/updmap.pl?r1=28104&r2=28830&view=patch
|
|
|
|
-Source52: texlive-20120701-fix-duplicated-lw35.patch
|
|
|
|
|
|
|
|
## find library sonames for libkpathsea and libptexenc
|
|
## find library sonames for libkpathsea and libptexenc
|
|
Source99: find-provides-texlive.sh
|
|
Source99: find-provides-texlive.sh
|
|
|
|
|
|
## etc...
|
|
## etc...
|
|
#Source100: texlive.cron
|
|
#Source100: texlive.cron
|
|
-Source101: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty
|
|
|
|
-Source102: http://mirrors.ctan.org/obsolete/support/pdftexenc/cmex.enc
|
|
|
|
|
|
|
|
|
|
|
|
######
|
|
######
|
|
@@ -118,11 +70,7 @@ Patch0: reautoconf-parallel.diff
|
|
Patch1: texlive-%{texlivesrcver}-vine.patch
|
|
Patch1: texlive-%{texlivesrcver}-vine.patch
|
|
Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch
|
|
Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch
|
|
Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch
|
|
Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch
|
|
-Patch10: texlive-%{texlivesrcver}-pxdvik-vine.patch
|
|
+#Patch10: texlive-%{texlivesrcver}-pxdvik-vine.patch
|
|
-
|
|
|
|
-Patch51: texlive-%{enhancement_texlivesrcver}-vine.patch
|
|
|
|
-Patch52: texlive-%{enhancement_texlivesrcver}-texmfcnf-vine.patch
|
|
|
|
-Patch53: texlive-%{enhancement_texlivesrcver}-set-selfautoparent-vine.patch
|
|
|
|
|
|
|
|
## security
|
|
## security
|
|
|
|
|
|
@@ -146,13 +94,11 @@ Requires: nkf
|
|
Requires: ghostscript >= 8.71
|
|
Requires: ghostscript >= 8.71
|
|
Requires: libkpathsea = %{version}-%{release}
|
|
Requires: libkpathsea = %{version}-%{release}
|
|
Requires: libptexenc = %{version}-%{release}
|
|
Requires: libptexenc = %{version}-%{release}
|
|
-%{!?with_firstbuild:Requires: jvf >= 7.1}
|
|
|
|
Requires: fontconfig >= 2.6.0-2
|
|
Requires: fontconfig >= 2.6.0-2
|
|
Requires(post,postun): fontconfig >= 2.6.0-2
|
|
Requires(post,postun): fontconfig >= 2.6.0-2
|
|
Requires(post): ed mktemp
|
|
Requires(post): ed mktemp
|
|
Requires(post): vutils >= 7.1
|
|
Requires(post): vutils >= 7.1
|
|
%{!?with_firstbuild:Requires: texlive-common = %{version}}
|
|
%{!?with_firstbuild:Requires: texlive-common = %{version}}
|
|
-#BuildRequires: texlive-sources = %{version}
|
|
|
|
BuildRequires: xz
|
|
BuildRequires: xz
|
|
BuildRequires: unzip
|
|
BuildRequires: unzip
|
|
BuildRequires: bison flex
|
|
BuildRequires: bison flex
|
|
@@ -173,6 +119,8 @@ BuildRequires: libpaper-devel
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: nkf
|
|
BuildRequires: nkf
|
|
|
|
|
|
|
|
+BuildRequires: texlive-vtlpkg = %{version}
|
|
|
|
+
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -256,7 +204,8 @@ This package includes header files of the ptexenc library.
|
|
%prep
|
|
%prep
|
|
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
|
|
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
|
|
|
|
|
|
-%setup -q -n %{name}-%{texlivesrcver}-source -a 1 -a 50
|
|
+#%setup -q -n %{name}-%{texlivesrcver}-source
|
|
|
|
+%setup -q -n %{name}-source-%{texlivesrcver} -a 1
|
|
|
|
|
|
%patch0 -p0 -b .parallel
|
|
%patch0 -p0 -b .parallel
|
|
%patch1 -p1 -b .vine
|
|
%patch1 -p1 -b .vine
|
|
@@ -264,60 +213,30 @@ This package includes header files of the ptexenc library.
|
|
%patch3 -p1 -b .vine
|
|
%patch3 -p1 -b .vine
|
|
|
|
|
|
## Applying tlptexlive that provides pxdvi(k) and pmpost
|
|
## Applying tlptexlive that provides pxdvi(k) and pmpost
|
|
-sedwrite(){
|
|
|
|
- echo "rewriting `basename $1` by \"$2\""
|
|
|
|
- if [ ! -f "$1" ]; then
|
|
|
|
- echo -e "'$1' does not exist"; exit 1
|
|
|
|
- fi
|
|
|
|
- perl -pi -e "$2" "$1" || exit 1
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-# pxdvi
|
|
|
|
-echo "preparing pxdvi"
|
|
|
|
-%__cp -pR texk/xdvik texk/pxdvik
|
|
|
|
-# echo "patching pxdvi patches"
|
|
|
|
-# #patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/xdvik-20111212-texlive2011.diff
|
|
|
|
-echo "patching with xdvik-20120415-texlive2011.diff"
|
|
|
|
-patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/xdvik-20120415-texlive2011.diff || exit 1
|
|
|
|
-echo "patching with pxdvik-20111126-density.diff"
|
|
|
|
-patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/pxdvik-20111126-density.diff || exit 1
|
|
|
|
-echo "patching with pxdvik-20111212-uptex.diff"
|
|
|
|
-patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/pxdvik-20111212-uptex.diff || exit 1
|
|
|
|
-sedwrite libs/freetype2/freetype-2.4.*/modules.cfg 's/# (AUX_MODULES \+= otvalid)/\1/'
|
|
|
|
-sedwrite m4/kpse-pkgs.m4 "s/xdvik/xdvik\npxdvik/"
|
|
|
|
-
|
|
|
|
-# customize pxdvik for Vine Linux
|
|
|
|
-%patch10 -p1 -b .vine
|
|
|
|
-
|
|
|
|
-# # include in svn r26399
|
|
|
|
-# # make sure that the web version of ovp2ovf is built
|
|
|
|
-# echo "patching for wovp2ovf"
|
|
|
|
-# patch -d texk -p0 < $(pwd)/build-tlptexlive/ovp2ovf_web.patch
|
|
|
|
-
|
|
|
|
-# pmpost
|
|
|
|
-echo "patching pmpost"
|
|
|
|
-patch -d texk -p0 < $(pwd)/build-tlptexlive/pmpost-20121106-tl12.diff || exit 1
|
|
|
|
-patch -d texk -p0 < $(pwd)/build-tlptexlive/pmpost-svg-20120119-tl11.diff || exit 1
|
|
|
|
-
|
|
|
|
-echo "running reautoconf"
|
|
|
|
-./reautoconf || exit 1
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-## patching for update enhancement
|
|
|
|
-(cd texlive-source-%{enhancement_texlivesrcver} || exit 1
|
|
|
|
-%patch51 -p1 -b .vine
|
|
|
|
-%patch52 -p1 -b .vine
|
|
|
|
-%patch53 -p1 -b .vine
|
|
|
|
-
|
|
|
|
-#tlptexlive-20130106
|
|
|
|
-unzip %{SOURCE51} || exit 1
|
|
|
|
-echo "creating pxdvi folder"
|
|
|
|
-%__cp -pR texk/xdvik texk/pxdvik
|
|
|
|
echo "applying patches"
|
|
echo "applying patches"
|
|
-cat "$(pwd)/build-tlptexlive-20130106/patches/series" | while read p r ; do
|
|
+cat "$(pwd)/build-tlptexlive-20130815/patches/series" | while read p r ; do
|
|
- patch -p1 $r < "$(pwd)/build-tlptexlive-20130106/patches/$p" || exit 1
|
|
+ echo $p | grep '^#' >/dev/null || \
|
|
|
|
+ patch -p1 $r < "$(pwd)/build-tlptexlive-20130815/patches/$p" || exit 1
|
|
done
|
|
done
|
|
-)
|
|
+
|
|
|
|
+# ## pxdvi from tlptexlive 2012
|
|
|
|
+# echo "creating pxdvi folder"
|
|
|
|
+# [ -d texk/pxdvik ] && exit 1
|
|
|
|
+# %__cp -pR texlive-source-20130106/texk/xdvik texk/pxdvik
|
|
|
|
+# echo "applying patches"
|
|
|
|
+# cat "$(pwd)/build-tlptexlive-20130106/patches/series" | \
|
|
|
|
+# grep -v -e freetype-modules -e pmpost -e reautoconf | while read p r ; do
|
|
|
|
+# echo $p | grep '^#' >/dev/null || \
|
|
|
|
+# patch -p1 $r < "$(pwd)/build-tlptexlive-20130106/patches/$p" || exit 1
|
|
|
|
+# done
|
|
|
|
+#
|
|
|
|
+# # customize pxdvik for Vine Linux
|
|
|
|
+# %patch10 -p1 -b .vine
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+## Avoid pollution from internal libraries.
|
|
|
|
+%__rm -rf ./libs/{cairo,expat,freetype,freetype2,gd,jpeg,libpng,libttf,ncurses,pixman,poppler,t1lib,unzip,xpdf,zlib} || exit 1
|
|
|
|
+# ./reautoconf || exit 1
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -353,9 +272,11 @@ TL_CONFIGURE_ARGS=" \
|
|
--with-system-libpng \
|
|
--with-system-libpng \
|
|
--with-system-zlib \
|
|
--with-system-zlib \
|
|
--with-system-freetype2 \
|
|
--with-system-freetype2 \
|
|
|
|
+ --with-system-pixman \
|
|
|
|
+ --with-system-poppler \
|
|
|
|
+ --with-system-cairo \
|
|
--with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \
|
|
--with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \
|
|
--with-pic \
|
|
--with-pic \
|
|
- --with-xdvi-x-toolkit=motif \
|
|
|
|
\
|
|
\
|
|
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
|
--disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
|
--disable-dvi2tty \
|
|
--disable-dvi2tty \
|
|
@@ -367,238 +288,67 @@ export TL_CONF_XDVI_TOOLKIT TL_MAKE_FLAGS TL_CONFIGURE_ARGS
|
|
TL_MAKE=%__make ./Build || exit 1
|
|
TL_MAKE=%__make ./Build || exit 1
|
|
|
|
|
|
|
|
|
|
-## update enhancement
|
|
|
|
-export TL_CONFIGURE_ARGS=" \
|
|
|
|
- --disable-multiplatform \
|
|
|
|
- --disable-native-texlive-build \
|
|
|
|
- --with-banner-add=\"/Vine Linux\" \
|
|
|
|
- --enable-shared --disable-static \
|
|
|
|
- --enable-compiler-warnings=max \
|
|
|
|
- --without-cxx-runtime-hack \
|
|
|
|
- \
|
|
|
|
- --enable-texlive \
|
|
|
|
- --disable-all-pkgs \
|
|
|
|
- --disable-xdvipdfmx \
|
|
|
|
- --disable-xetex \
|
|
|
|
- --enable-ptex \
|
|
|
|
- --enable-eptex \
|
|
|
|
- --enable-uptex \
|
|
|
|
- --enable-euptex \
|
|
|
|
- --enable-omfonts \
|
|
|
|
- --enable-pmp \
|
|
|
|
- --enable-makejvf \
|
|
|
|
- --enable-dvipdfmx \
|
|
|
|
- --enable-tetex \
|
|
|
|
- --enable-texk \
|
|
|
|
- --enable-web2c \
|
|
|
|
- --enable-mendexk \
|
|
|
|
- \
|
|
|
|
- --with-system-xpdf \
|
|
|
|
- --with-system-gd \
|
|
|
|
- --with-system-t1lib \
|
|
|
|
- --with-system-libpng \
|
|
|
|
- --with-system-zlib \
|
|
|
|
- --with-system-freetype2 \
|
|
|
|
- --with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \
|
|
|
|
- --with-pic \
|
|
|
|
- --with-xdvi-x-toolkit=motif \
|
|
|
|
- \
|
|
|
|
- --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
|
|
|
|
- --disable-dvi2tty \
|
|
|
|
- --disable-t1utils --disable-psutils --disable-detex \
|
|
|
|
- --disable-dvipng --disable-lcdf-typetools \
|
|
|
|
-"
|
|
|
|
-(cd texlive-source-%{enhancement_texlivesrcver} || exit 1
|
|
|
|
-TL_MAKE=%__make ./Build || exit 1
|
|
|
|
-)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%install
|
|
%install
|
|
## prepare %%install session
|
|
## prepare %%install session
|
|
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
|
|
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
|
|
|
|
|
|
-## copy inst dir. to /usr
|
|
+## copy inst directory to /usr
|
|
%__mkdir_p %{buildroot}
|
|
%__mkdir_p %{buildroot}
|
|
%__cp -a inst %{buildroot}%{_prefix} || exit 1
|
|
%__cp -a inst %{buildroot}%{_prefix} || exit 1
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
-%__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
|
|
+%__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} || exit 1
|
|
%endif
|
|
%endif
|
|
-## replace texmf with that of texlive-sources
|
|
|
|
-%__rm -rf %{build_texmf} %{build_texmf}-dist || exit 1
|
|
|
|
-%__tar -C %{buildroot}%{_datadir} -xf %{SOURCE5} || exit 1
|
|
|
|
-## override texmf/web2c/texmf.cnf and texmf/xdvi dir.
|
|
|
|
-%__cp -a inst/share/texmf/web2c/texmf.cnf %{build_texmf}/web2c/texmf.cnf || exit 1
|
|
|
|
-%__rm -rf %{build_texmf}/xdvi || exit 1
|
|
|
|
-%__cp -a inst/share/texmf/xdvi %{build_texmf}/xdvi || exit 1
|
|
|
|
-
|
|
|
|
-## update enhancement
|
|
|
|
-for x in dvipdfmx eptex euptex makejvf mendex pbibtex pdvitype pmpost ppltotf ptex ptftopl upbibtex updvitype uppltotf uptex uptftopl wovp2ovf; do
|
|
|
|
- [ -x %{buildroot}%{_bindir}/${x} ] || exit 1
|
|
|
|
- %__cp -af texlive-source-%{enhancement_texlivesrcver}/inst/bin/${x} %{buildroot}%{_bindir}/${x} || exit 1
|
|
|
|
-done
|
|
|
|
-patch -d %{build_texmf}/scripts/tetex -p0 < %{SOURCE52} || exit 1
|
|
|
|
|
|
|
|
## make some fundamental texmf trees
|
|
## make some fundamental texmf trees
|
|
-%__mkdir_p %{build_texmf}-{local,dist}
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfvine}
|
|
-%__mkdir_p %{buildroot}%{texmfsysconfig}
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfdist}
|
|
-%__mkdir_p %{buildroot}%{texmfsysvar}
|
|
+%__mkdir_p %{buildroot}%{_tl_texmflocal}
|
|
-%__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysconfig}
|
|
-texmf_local_dirs=(
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysvar}
|
|
- bibtex/bib/local
|
|
+%__mkdir_p %{buildroot}%{_tl_vartexfonts}
|
|
- bibtex/bst/local
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfvine}/fonts/{truetype,opentype}
|
|
- dvips/local
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfvine}/fonts/cmap
|
|
- fonts/source/local
|
|
+
|
|
- fonts/tfm/local
|
|
+cat<<EOF>%{buildroot}%{_tl_texmfdist}/README.vine || exit 1
|
|
- fonts/opentype/local
|
|
+The directory %{_tl_texmfdist} is the TeX Live distribution wide TEXMF.
|
|
- fonts/truetype/local
|
|
+You should not do any changes in this directory.
|
|
- fonts/type1/local
|
|
+EOF
|
|
- fonts/vf/local
|
|
+
|
|
- metapost/local
|
|
+cat<<EOF>%{buildroot}%{_tl_texmfvine}/README.vine || exit 1
|
|
- pbibtex/bib/local
|
|
+The directory %{_tl_texmfdist} is the distribution wide TEXMF.
|
|
- pbibtex/bst/local
|
|
+You should not use this directory to manage any other packages because
|
|
- tex/latex/local
|
|
+we Project Vine use this directory to manage non-CTAN packages and
|
|
- tex/plain/local
|
|
+enhancement packages.
|
|
- tex/platex/local
|
|
+EOF
|
|
- web2c
|
|
+
|
|
-)
|
|
+cat<<EOF>%{buildroot}%{_tl_texmflocal}/README.vine || exit 1
|
|
-for x in ${texmf_local_dirs[@]}; do
|
|
+The directory %{_tl_texmflocal} is the system wide TEXMF.
|
|
- %__mkdir_p %{build_texmf}-local/${x}
|
|
+If you are a privileged user of this system,
|
|
-done
|
|
+you can use this directory to manage your local packages.
|
|
-
|
|
+EOF
|
|
-
|
|
+
|
|
-## if the real file of a symlink on /usr/bin is contained
|
|
+## our texmf-dist/web2c/updmap{,-hdr}.cfg
|
|
-## in texlive-collection-*, remove its symlink
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfdist}/web2c
|
|
-del_symlnks=(
|
|
+%__cp -a %{SOURCE6} %{buildroot}%{_tl_texmfdist}/web2c/updmap-hdr.cfg || exit 1
|
|
-texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
|
|
+%__cp -a %{SOURCE7} %{buildroot}%{_tl_texmfdist}/web2c/updmap.cfg || exit 1
|
|
-texlive-collection-bibtexextra,/usr/bin/listbib,/usr/share/texmf-dist/scripts/listbib/listbib
|
|
+
|
|
-texlive-collection-bibtexextra,/usr/bin/urlbst,/usr/share/texmf-dist/scripts/urlbst/urlbst
|
|
+## our map files for dvipdfmx
|
|
-texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
|
|
+%__mkdir_p %{buildroot}%{_tl_aliasttfdir}
|
|
-texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine
|
|
-texlive-collection-binextra,/usr/bin/ctanify,/usr/share/texmf-dist/scripts/ctanify/ctanify
|
|
|
|
-texlive-collection-binextra,/usr/bin/ctanupload,/usr/share/texmf-dist/scripts/ctanupload/ctanupload.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
|
|
|
|
-texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
|
|
|
|
-texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
|
|
|
|
-texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
|
|
|
|
-texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
|
|
|
|
-texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/latexfileversion,/usr/share/texmf-dist/scripts/latexfileversion/latexfileversion
|
|
|
|
-texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
|
|
|
|
-texlive-collection-binextra,/usr/bin/match_parens,/usr/share/texmf-dist/scripts/match_parens/match_parens
|
|
|
|
-texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
|
|
|
|
-texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
|
|
|
|
-texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
|
|
|
|
-texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
|
|
|
|
-texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
|
|
|
|
-texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
|
|
|
|
-texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
|
|
|
|
-texlive-collection-binextra,/usr/bin/texliveonfly,/usr/share/texmf-dist/scripts/texliveonfly/texliveonfly.py
|
|
|
|
-texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
|
|
|
|
-texlive-collection-binextra,/usr/bin/typeoutfileinfo,/usr/share/texmf-dist/scripts/typeoutfileinfo/typeoutfileinfo.sh
|
|
|
|
-texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
|
|
|
|
-texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
|
|
|
|
-texlive-collection-fontutils,/usr/bin/dosepsbin,/usr/share/texmf-dist/scripts/dosepsbin/dosepsbin.pl
|
|
|
|
-texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
|
|
|
|
-texlive-collection-fontutils,/usr/bin/mf2pt1,/usr/share/texmf-dist/scripts/mf2pt1/mf2pt1.pl
|
|
|
|
-texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
|
|
|
|
-texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
|
|
|
|
-texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
|
|
|
|
-texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
|
|
|
|
-texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
|
|
|
|
-texlive-collection-langcjk,/usr/bin/convbkmk,/usr/share/texmf-dist/scripts/uptex/convbkmk.rb
|
|
|
|
-texlive-collection-langcjk,/usr/bin/updmap-setup-kanji,/usr/share/texmf-dist/scripts/jfontmaps/updmap-setup-kanji.pl
|
|
|
|
-texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
|
|
|
|
-texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
|
|
|
|
-texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
|
|
|
|
-texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
|
|
|
|
-texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
|
|
|
|
-texlive-collection-latexextra,/usr/bin/exceltex,/usr/share/texmf-dist/scripts/exceltex/exceltex
|
|
|
|
-texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
|
|
|
|
-texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
|
|
|
|
-texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
|
|
|
|
-texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
|
|
|
|
-texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
|
|
|
|
-texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
|
|
|
|
-texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
|
|
|
|
-texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
|
|
|
|
-texlive-collection-luatex,/usr/bin/checkcites,/usr/share/texmf-dist/scripts/checkcites/checkcites.lua
|
|
|
|
-texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
|
|
|
|
-texlive-collection-music,/usr/bin/m-tx,/usr/share/texmf-dist/scripts/m-tx/m-tx.lua
|
|
|
|
-texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
|
|
|
|
-texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
|
|
|
|
-texlive-collection-music,/usr/bin/pmx2pdf,/usr/share/texmf-dist/scripts/pmx/pmx2pdf.lua
|
|
|
|
-texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
|
|
|
|
-texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
|
|
|
|
-texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
|
|
|
|
-texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
|
|
|
|
-texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
|
|
|
|
-texlive-collection-pstricks,/usr/bin/pedigree,/usr/share/texmf-dist/scripts/pedigree-perl/pedigree.pl
|
|
|
|
-texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
|
|
|
|
-texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
|
|
|
|
-)
|
|
|
|
-for i in ${del_symlnks[@]}; do
|
|
|
|
- %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1
|
|
|
|
-done
|
|
|
|
-
|
|
|
|
-## we replace texmf/web2c/updmap{,-hdr}.cfg with our updmap files
|
|
|
|
-%__cp -a %{SOURCE7} %{build_texmf}/web2c/updmap.cfg || exit 1
|
|
|
|
-%__mkdir_p %{buildroot}%{texmfsysconfig}/web2c
|
|
|
|
-%__cp -a %{SOURCE7} %{buildroot}%{texmfsysconfig}/web2c/updmap.cfg || exit 1
|
|
|
|
-
|
|
|
|
-## use our map files for dvipdfmx
|
|
|
|
-%__mkdir_p %{buildroot}%{aliasttfdir}
|
|
|
|
-%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine
|
|
|
|
for x in ptex uptex otf otf-up; do
|
|
for x in ptex uptex otf otf-up; do
|
|
- touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/${x}-vine.map
|
|
+ touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine/${x}-vine.map
|
|
done
|
|
done
|
|
for x in FutoGo-Bold FutoMin-Bold Gothic-Medium MaruGo-Medium Mincho-Medium; do
|
|
for x in FutoGo-Bold FutoMin-Bold Gothic-Medium MaruGo-Medium Mincho-Medium; do
|
|
- touch %{buildroot}%{aliasttfdir}/${x}.ttf
|
|
+ touch %{buildroot}%{_tl_aliasttfdir}/${x}.ttf
|
|
done
|
|
done
|
|
|
|
|
|
-## install updmap-kanji.html
|
|
|
|
-%__mkdir_p %{build_texmf}/doc/fonts/jfontmaps
|
|
|
|
-%__install -m0644 %{SOURCE2} %{build_texmf}/doc/fonts/jfontmaps/ || exit 1
|
|
|
|
-## install jtygm.sty
|
|
|
|
-%__mkdir_p %{build_texmf}/tex/platex/base
|
|
|
|
-%__install -m0644 %{SOURCE101} %{build_texmf}/tex/platex/base/ || exit 1
|
|
|
|
-## install cmex.enc
|
|
|
|
-%__mkdir_p %{build_texmf}/fonts/enc/pdftex/cmex
|
|
|
|
-%__install -m0644 %{SOURCE102} %{build_texmf}/fonts/enc/pdftex/cmex/ || exit 1
|
|
|
|
-
|
|
|
|
## desktop things
|
|
## desktop things
|
|
%__mkdir_p %{buildroot}%{_datadir}/applications
|
|
%__mkdir_p %{buildroot}%{_datadir}/applications
|
|
-%__install -m0644 -c %{SOURCE10} %{SOURCE11} \
|
|
+# %__install -m0644 -c %{SOURCE10} %{buildroot}%{_datadir}/applications/
|
|
- %{buildroot}%{_datadir}/applications/
|
|
+%__install -m0644 -c %{SOURCE11} %{buildroot}%{_datadir}/applications/
|
|
|
|
|
|
# for created fonts
|
|
# for created fonts
|
|
-%__mkdir_p %{buildroot}%{vartexfonts}
|
|
+%__mkdir_p %{buildroot}%{_tl_vartexfonts}
|
|
# %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
|
|
# %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
|
|
# %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
|
|
# %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
|
|
|
|
|
|
@@ -608,41 +358,44 @@ done
|
|
|
|
|
|
# configure ConTeXt
|
|
# configure ConTeXt
|
|
for x in context ctxtools luatools texexec texmfstart; do
|
|
for x in context ctxtools luatools texexec texmfstart; do
|
|
- %__sed -i -e 's|mtxrun|export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; mtxrun|' %{buildroot}%{_bindir}/${x}
|
|
+ %__sed -i -e 's|mtxrun|export TEXMF=%{_tl_texmfconfig}:%{_tl_texmfvar}:%{_tl_texmfhome}:%{_tl_texmfsysconfig}:%{_tl_texmfsysvar}:%{_tl_texmflocal}:%{_tl_texmfvine}:%{_tl_texmfdist} TEXMFCNF=%{_tl_texmfsysvar}/web2c:%{_tl_texmflocal}/web2c:%{_tl_texmfvine}/web2c:%{_tl_texmfdist}/web2c TEXMFCACHE=%{_tl_texmfsysvar}:%{_tl_texmfvar}; mtxrun|' %{buildroot}%{_bindir}/${x} || exit 1
|
|
done
|
|
done
|
|
|
|
|
|
# touch ghosts
|
|
# touch ghosts
|
|
-touch %{build_texmf}/ls-R
|
|
+touch %{buildroot}%{_tl_texmfvine}/ls-R
|
|
-touch %{build_texmf}-dist/ls-R
|
|
+touch %{buildroot}%{_tl_texmfdist}/ls-R
|
|
-touch %{buildroot}%{texmfsysconfig}/ls-R
|
|
+touch %{buildroot}%{_tl_texmfsysconfig}/ls-R
|
|
-touch %{buildroot}%{texmfsysvar}/ls-R
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/ls-R
|
|
-
|
|
+
|
|
-%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/
|
|
-%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/updmap/
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/updmap/
|
|
-%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/pxdvi/updmap/
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/pxdvi/updmap/
|
|
-%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/pdftex/updmap/
|
|
+%__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/builtin35.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/builtin35.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/psfonts_t1.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts_t1.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/psfonts_pk.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts_pk.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/download35.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/download35.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/ps2pk.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/ps2pk.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvips/updmap/psfonts.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/updmap/kanjix.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/updmap/kanjix.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/pxdvi/updmap/xdvi-ptex.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pxdvi/updmap/xdvi-ptex.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/pdftex/updmap/pdftex_dl14.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex_dl14.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/pdftex/updmap/pdftex.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex.map
|
|
-touch %{buildroot}%{texmfsysvar}/fonts/map/pdftex/updmap/pdftex_ndl14.map
|
|
+touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex_ndl14.map
|
|
|
|
|
|
|
|
|
|
## remove unpackaging files
|
|
## remove unpackaging files
|
|
find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f || exit 1
|
|
find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f || exit 1
|
|
find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f || exit 1
|
|
find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f || exit 1
|
|
%__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1
|
|
%__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1
|
|
-find %{build_texmf}/fonts/map -type d | %__grep "updmap" | xargs %__rm -rf || exit 1
|
|
+find %{buildroot}%{_tl_texmfvine}/fonts/map -type d | %__grep "updmap" | xargs %__rm -rf || exit 1
|
|
find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1
|
|
find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1
|
|
-%__rm -f %{build_texmf}/dvipdfm/config/config-win32 || exit 1
|
|
+%__rm -f %{buildroot}%{_tl_texmfvine}/dvipdfm/config/config-win32 || exit 1
|
|
%__rm -f %{buildroot}%{_infodir}/*
|
|
%__rm -f %{buildroot}%{_infodir}/*
|
|
|
|
|
|
|
|
+## use external packages
|
|
|
|
+%__rm %{buildroot}/usr/bin/latexmk || exit 1
|
|
|
|
+
|
|
|
|
|
|
### Files list
|
|
### Files list
|
|
find %{buildroot} -type f -or -type l | \
|
|
find %{buildroot} -type f -or -type l | \
|
|
@@ -652,34 +405,34 @@ find %{buildroot} -type f -or -type l | \
|
|
%__grep -v "%{_libdir}" | \
|
|
%__grep -v "%{_libdir}" | \
|
|
%__grep -v "%{_infodir}" | \
|
|
%__grep -v "%{_infodir}" | \
|
|
%__sed -e "s|.*ls-R$|%ghost &|" \
|
|
%__sed -e "s|.*ls-R$|%ghost &|" \
|
|
- -e "s|%{texmfsysvar}/fonts/map/dvipdfmx/vine/.*\.map$|%ghost &|" \
|
|
+ -e "s|%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine/.*\.map$|%ghost &|" \
|
|
- -e "s|%{aliasttfdir}/.*\.ttf$|%ghost &|" \
|
|
+ -e "s|%{_tl_aliasttfdir}/.*\.ttf$|%ghost &|" \
|
|
-e "s|.*/updmap.*\.cfg$|%config(noreplace) &|" \
|
|
-e "s|.*/updmap.*\.cfg$|%config(noreplace) &|" \
|
|
-e "s|.*/dvipdfmx\.cfg$|%config(noreplace) &|" \
|
|
-e "s|.*/dvipdfmx\.cfg$|%config(noreplace) &|" \
|
|
-e "s|.*xdvi\.cfg$|%config(noreplace) &|" \
|
|
-e "s|.*xdvi\.cfg$|%config(noreplace) &|" \
|
|
-e "s|.*\.cnf$|%config(noreplace) &|" \
|
|
-e "s|.*\.cnf$|%config(noreplace) &|" \
|
|
- -e "s|%{texmf}*/xdvi/XDvi|%config(noreplace) &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/xdvi/XDvi|%config(noreplace) &|" \
|
|
- -e "s|%{texmf}/web2c/texmfcnf\.lua$|%config(noreplace) &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/web2c/texmfcnf\.lua$|%config(noreplace) &|" \
|
|
-e "s|^.*/updmap/$|%config &|" \
|
|
-e "s|^.*/updmap/$|%config &|" \
|
|
- -e "s|%{texmf}*/texconfig/tcfmgr.map$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/texconfig/tcfmgr.map$|%config &|" \
|
|
- -e "s|%{texmf}*/dvips/config/.*$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/dvips/config/.*$|%config &|" \
|
|
- -e "s|%{texmf}*/dvips/tetex/config.*$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/dvips/tetex/config.*$|%config &|" \
|
|
- -e "s|%{texmf}*/dvipdfm/config/config$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/dvipdfm/config/config$|%config &|" \
|
|
- -e "s|%{texmf}*/fonts/map/dvips/tetex/.*.map$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/fonts/map/dvips/tetex/.*.map$|%config &|" \
|
|
- -e "s|%{texmf}*/fonts/map/dvipdfmx/.*.map$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/fonts/map/dvipdfmx/.*.map$|%config &|" \
|
|
- -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/tex/generic/config/.*|%config &|" \
|
|
- -e "s|%{texmf}*/ttf2pk/ttf2pk\.cfg$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/ttf2pk/ttf2pk\.cfg$|%config &|" \
|
|
- -e "s|%{texmf}*/hbf2gf/.*\.cfg$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/hbf2gf/.*\.cfg$|%config &|" \
|
|
- -e "s|%{texmf}*/chktex/chktexrc$|%config &|" \
|
|
+ -e "s|%{_tl_texmfvine}*/chktex/chktexrc$|%config &|" \
|
|
-e "s|%{_mandir}/.*|&*|" \
|
|
-e "s|%{_mandir}/.*|&*|" \
|
|
> %{_builddir}/filelist.full
|
|
> %{_builddir}/filelist.full
|
|
|
|
|
|
-find %{buildroot}%{texmf}* -type d | \
|
|
+find %{buildroot}%{_tl_texmfvine}* -type d | \
|
|
%__sed -e "s|^%{buildroot}|%dir |" \
|
|
%__sed -e "s|^%{buildroot}|%dir |" \
|
|
-e "s|$|/|" >> %{_builddir}/filelist.full
|
|
-e "s|$|/|" >> %{_builddir}/filelist.full
|
|
|
|
|
|
## subpackages
|
|
## subpackages
|
|
-%__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/filelist.full > %{_builddir}/filelist.doc
|
|
+%__grep -e "/texmf/doc/" -e "/texmf-dist/doc/" -e "/texdoc" %{_builddir}/filelist.full > %{_builddir}/filelist.doc
|
|
cat %{_builddir}/filelist.doc \
|
|
cat %{_builddir}/filelist.doc \
|
|
%{_builddir}/filelist.full | \
|
|
%{_builddir}/filelist.full | \
|
|
sort | uniq -u > %{_builddir}/filelist.tmp
|
|
sort | uniq -u > %{_builddir}/filelist.tmp
|
|
@@ -691,12 +444,18 @@ cat %{_builddir}/filelist.doc \
|
|
|
|
|
|
|
|
|
|
%pretrans
|
|
%pretrans
|
|
-rpm -q texlive | grep -q -e 2009 -e 2011
|
|
+rpm -q texlive | grep -q -e 2009 -e 2011 -e 2012
|
|
[ $? -eq 1 ] && exit 0
|
|
[ $? -eq 1 ] && exit 0
|
|
-## upgrade TeX Live to 2012
|
|
|
|
_trans_time=$(date +%Y%m%d)
|
|
_trans_time=$(date +%Y%m%d)
|
|
-echo "Running transitional process of your TeX system ... "
|
|
+echo "Running some transitional processes on your TeX system ... "
|
|
-for dir in %{texmf}-var %{texmf}-config; do
|
|
+x=(
|
|
|
|
+ #/var/lib/texmf
|
|
|
|
+ #/etc/texmf
|
|
|
|
+ /usr/share/texmf-local
|
|
|
|
+ /usr/share/texmf-var
|
|
|
|
+ /usr/share/texmf-config
|
|
|
|
+)
|
|
|
|
+for dir in ${x[@]}; do
|
|
_trans_dir=${dir}.${_trans_time}.rpmorig
|
|
_trans_dir=${dir}.${_trans_time}.rpmorig
|
|
[ -d ${_trans_dir}.old ] && \
|
|
[ -d ${_trans_dir}.old ] && \
|
|
echo -n " " && \
|
|
echo -n " " && \
|
|
@@ -716,29 +475,30 @@ for dir in %{texmf}-var %{texmf}-config; do
|
|
done
|
|
done
|
|
echo "done."
|
|
echo "done."
|
|
|
|
|
|
-%preun
|
|
+%postun
|
|
if [ "$1" = 0 ]; then
|
|
if [ "$1" = 0 ]; then
|
|
- %__rm -rf %{vartexfonts}
|
|
+ %__rm -rf %{_tl_vartexfonts}
|
|
fi
|
|
fi
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
%post
|
|
%post
|
|
-%touch_run texhash
|
|
+%_tl_touch_run texhash
|
|
-%touch_run updmap
|
|
+%_tl_touch_run updmap
|
|
-%touch_run mtxrun
|
|
+%_tl_touch_run mtxrun
|
|
-%touch_run fmtutil
|
|
+%_tl_touch_run fmtutil
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
%posttrans
|
|
%posttrans
|
|
-%__mkdir_p %{vartexfonts}
|
|
+%__mkdir_p %{_tl_vartexfonts}
|
|
-%__chmod 1777 %{vartexfonts}
|
|
+%__chmod 1777 %{_tl_vartexfonts}
|
|
|
|
+
|
|
## create our map files {ptex,uptex,otf,otf-up}-vine.map
|
|
## create our map files {ptex,uptex,otf,otf-up}-vine.map
|
|
-( %{exec_upddeffont} ) ||:
|
|
+( %{_tl_exec_upddeffont} ) ||:
|
|
|
|
|
|
-%{exec_texhash}
|
|
+%{_tl_exec_texhash}
|
|
-%{exec_mtxrun}
|
|
+%{_tl_exec_mtxrun}
|
|
-%{exec_updmap}
|
|
+%{_tl_exec_updmap}
|
|
-%{exec_fmtutil}
|
|
+%{_tl_exec_fmtutil}
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
%post -n libkpathsea
|
|
%post -n libkpathsea
|
|
@@ -764,20 +524,20 @@ exit 0
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
|
|
|
|
%triggerin -- ghostscript
|
|
%triggerin -- ghostscript
|
|
-%__rm -f %{texmf}/fonts/cmap/ghostscript
|
|
+%__rm -f %{_tl_texmfvine}/fonts/cmap/ghostscript
|
|
if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
|
|
if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
|
|
- %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript
|
|
+ %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{_tl_texmfvine}/fonts/cmap/ghostscript
|
|
elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
|
|
elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
|
|
- %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript
|
|
+ %__ln_s %{_datadir}/ghostscript/Resource/CMap %{_tl_texmfvine}/fonts/cmap/ghostscript
|
|
fi
|
|
fi
|
|
-%touch_run texhash
|
|
+%_tl_touch_run texhash
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%files -f %{_builddir}/filelist.full
|
|
%files -f %{_builddir}/filelist.full
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%dir %{aliasttfdir}
|
|
+%dir %{_tl_aliasttfdir}
|
|
-%attr(1777,root,root) %dir %{vartexfonts}
|
|
+%attr(1777,root,root) %dir %{_tl_vartexfonts}
|
|
# %config %{_sysconfdir}/cron.daily/texlive.cron
|
|
# %config %{_sysconfdir}/cron.daily/texlive.cron
|
|
|
|
|
|
%files doc -f %{_builddir}/filelist.doc
|
|
%files doc -f %{_builddir}/filelist.doc
|
|
@@ -806,6 +566,11 @@ exit 0
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1
|
|
|
|
+- upgrade to TeX Live 2013
|
|
|
|
+ - texlive-source-20130823 2014/dev + tlptexlive 20130815
|
|
|
|
+- dropped Requires: jvf
|
|
|
|
+
|
|
* Thu May 16 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2012-4
|
|
* Thu May 16 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2012-4
|
|
- update enhancement binaries TeX Live 2013/dev 20130106 snapshot (tlptexlive-20130106)
|
|
- update enhancement binaries TeX Live 2013/dev 20130106 snapshot (tlptexlive-20130106)
|
|
- fixed duplicated lw35 for updmap.pl
|
|
- fixed duplicated lw35 for updmap.pl
|