Browse Source

NEW: texlive-tetex-trans, texlive-jvf, texlive-texmacro-otf, texlive-mathabx-type1: supported only Vine Linux 5

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2504 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
c712e4ab76

+ 239 - 0
t/texlive-jvf/texlive-jvf-vl.spec

@@ -0,0 +1,239 @@
+%if %{?_dist_release} != "vl5"
+exit 1
+%endif
+
+%define tlversion	2009
+
+%define texmf		%{_datadir}/texmf
+%define build_texmf	%{buildroot}%{texmf}
+%define vinepl		vine.pls-1.2
+%define tfmdir		%{texmf}/fonts/tfm/ptex
+
+%define exec_texhash	[ -x %{_bindir}/texhash ] && /usr/bin/env - %{_bindir}/texhash 2> /dev/null
+
+#% define pltotf	%{_bindir}/pltotf
+%define pltotf		%{_bindir}/ppltotf
+
+%if %{?_dist_release} == "vl5"
+Conflicts: jvf
+%endif
+
+Summary: Japanese Virtual Fonts
+Summary(ja): 日本語仮想フォントです.
+Name: texlive-jvf
+Version: 2.0
+Release: 6%{?_dist_release}
+License: distributable
+Group: Applications/Publishing
+Source0: %{vinepl}.tar.gz
+Source1: http://www.matsusaka-u.ac.jp/~okumura/jsclasses/jis-pl.zip
+Requires(post): sh-utils
+Requires: texlive = %{tlversion}
+BuildRequires: nkf
+BuildRequires: unzip
+BuildRequires: texlive = %{tlversion}
+##!! %{_bindir}/pltotf %{tfmdir}/min5.tfm are provided by tetex
+##BuildRequires: %{_bindir}/pltotf %{tfmdir}/min5.tfm
+## /usr/bin/makejvf is provided from tetex, which is with ptexenc. 
+##BuildRequires: makejvf
+BuildArch: noarch
+Buildroot: %{_tmppath}/%{name}-%{version}-root
+Vendor: Project Vine
+Distribution: Vine Linux
+
+%description
+Japanese Virtual Fonts required by dvipsk built by makejvf.
+
+%description -l ja
+dvipsk の実行に必要な, 日本語仮想フォント(virtual fonts)、
+多書体用フォントメトリックです。
+
+%prep
+[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
+
+%setup -q -n %{vinepl}
+%__unzip -oqq %{SOURCE1}
+
+%build
+## Macro definition
+mkvf(){ # <$1: jfm name> <$2: jfm name of PS font>
+    for size in 5 6 7 8 9 10 ; do
+        %{_bindir}/makejvf %{tfmdir}/$1${size}.tfm $2 || exit 1
+    done
+}
+
+## now, build basic vf fonts
+mkvf min rml
+mkvf tmin rmlv
+mkvf goth gbm
+mkvf tgoth gbmv
+
+# jis font metric and vf fonts
+for pl in jis jisi tjis tjisi \
+          min mini tmin tmini; do
+    nkf --jis --overwrite $pl.pl
+    %{pltotf} $pl.pl
+done
+%__ln_s -f jis.tfm   jisg.tfm
+%__ln_s -f jisi.tfm  jisgi.tfm
+%__ln_s -f tjis.tfm  tjisg.tfm
+%__ln_s -f tjisi.tfm tjisgi.tfm
+
+%{_bindir}/makejvf  jis.tfm   rml
+%{_bindir}/makejvf tjis.tfm   rmlv  # 縦
+%{_bindir}/makejvf  jisi.tfm  rmli  # italic
+%{_bindir}/makejvf tjisi.tfm  rmlvi
+
+%{_bindir}/makejvf  jisg.tfm  gbm
+%{_bindir}/makejvf tjisg.tfm  gbmv
+%{_bindir}/makejvf  jisgi.tfm gbmi
+%{_bindir}/makejvf tjisgi.tfm gbmvi
+
+## new JIS font metric
+# make *.tfm
+for pl in jis jisn jis-v jisn-v; do
+    %{pltotf} $pl.pl
+done
+%__ln_s -f jis.tfm    jisg.tfm
+%__ln_s -f jis-v.tfm  jisg-v.tfm
+%__ln_s -f jisn.tfm   jisgn.tfm
+%__ln_s -f jisn-v.tfm jisgn-v.tfm
+
+# make *.vf
+%{_bindir}/makejvf jis.tfm     rml
+%{_bindir}/makejvf jisn.tfm    rmln # 中点修正
+%{_bindir}/makejvf jis-v.tfm   rmlv # 縦
+%{_bindir}/makejvf jisn-v.tfm  rmlnv
+
+%{_bindir}/makejvf jisg.tfm    gbm
+%{_bindir}/makejvf jisgn.tfm   gbmn
+%{_bindir}/makejvf jisg-v.tfm  gbmv
+%{_bindir}/makejvf jisgn-v.tfm gbmnv
+
+
+# extrafonts metric and vf fonts
+for i in goth gyo pop lei dfmin dfgt dfgyo dfpop dflei lxmin lxgt lxpop lxmgt lxgtb dfminb dfkaib dfpostb dffry dfbrrb ; do
+    %__ln_s -f min.tfm    ${i}.tfm
+    %__ln_s -f mini.tfm   ${i}i.tfm
+    %__ln_s -f tmin.tfm  t${i}.tfm
+    %__ln_s -f tmini.tfm t${i}i.tfm
+done
+for i in min goth gyo pop lei dfmin dfgt dfgyo dfpop dflei lxmin lxgt lxpop lxmgt lxgtb dfminb dfkaib dfpostb dffry dfbrrb; do
+    %{_bindir}/makejvf ${i}.tfm ${i}
+    %{_bindir}/makejvf ${i}i.tfm ${i}i
+    %{_bindir}/makejvf t${i}.tfm t${i}
+    %{_bindir}/makejvf t${i}i.tfm t${i}i
+
+#    %__ln_s -f ${i}.vf df${i}.vf
+#    %__ln_s -f ${i}i.vf df${i}i.vf
+#    %__ln_s -f t${i}.vf dft${i}.vf
+#    %__ln_s -f t${i}i.vf dft${i}i.vf
+done
+
+# change same file to symbolic link
+for f in *.vf; do
+    if [ ! -L $f ]; then
+	for g in *.vf; do
+	    if [ ! -L $g -a $f != $g ]; then
+		cmp $f $g > /dev/null && (%__rm -f $g; %__ln_s $f $g)
+	    fi
+	done
+    fi
+done
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__mkdir_p %{build_texmf}/fonts/{tfm,source,vf}/ptex
+%__cp -dfp *.tfm %{build_texmf}/fonts/tfm/ptex/
+%__cp -dfp *.pl  %{build_texmf}/fonts/source/ptex/
+%__cp -dfp *.vf  %{build_texmf}/fonts/vf/ptex/
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%post
+%{exec_texhash}
+exit 0
+
+%postun
+if [ "$1" = 0 ]; then
+    %{exec_texhash}
+fi
+exit 0
+
+
+%files
+%defattr(-,root,root)
+%doc README
+%{texmf}/fonts/tfm/ptex/
+%{texmf}/fonts/source/ptex/
+%{texmf}/fonts/vf/ptex/
+
+
+%changelog
+* Fri Dec 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-6
+- initial build based on jvf-2.0-5vl6
+- for vl5, added Conflicts: jvf
+- for vl5 + texlive, renamed to texlive-jvf
+
+* Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-5
+- use texlive-2009 + ptexlive-20100322
+  - dropped Requires: tetex, BuildRequires: tetex
+  - addeded Requires: texlive, BuildRequires: texlive
+- use some rpm macros
+
+* Wed Oct 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-4
+- added BuildRequires: unzip
+- dropped BuildRequires: %%{_prefix}/bin/pltotf %%{tfmdir}/min5.tfm
+  - %%{_prefix}/bin/pltotf %%{tfmdir}/min5.tfm are provided by tetex
+
+* Sun Sep 27 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-3
+- added BuildRequires: nkf
+- dropped BuildRequires: makejvf
+  - /usr/bin/makejvf is provided from tetex, which is with ptexenc
+- converted euc-encode to jis-encode for *.pl in vine.pls-1.2
+
+* Sun Jan 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-2
+- spec in utf8 (again)
+
+* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.0-1vl5
+- applied new versioning policy, spec in utf-8
+
+* Fri Jan 14 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
+- add new dynafont for Vine Linux 3.1CR
+
+* Fri Apr 18 2003 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 1.1a-0vl3
+- change tetex-ptex -> tetex
+
+* Mon Mar 25 2002 Jun Nishii <jun@vinelinux.org> 1.1a-0vl2
+- added symlinks for lxricoh fonts
+
+* Sat Mar 24 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp>
+- 1.1a-0vl1
+- use symbolic link for same *.vf
+
+* Sat Jan 20 2001 Jun Nishii <jun@vinelinux.org>
+- 1.0-6
+- cp jis.pl min.pl and fix glue for "「,(,..." in min.pl to use DynaFonts
+  Should I rename min.* as dyna.*?
+
+* Fri Jan 21 2000 Jun Nishii <jun@vinelinux.org>
+- 1.0-5
+- make vfs for dynafonts
+- tjis, tjisi, tmin, tmini,...
+- correct installation of tfm
+
+* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
+- install makejvf
+
+* Fri Oct 29 1999 Norihito Ohmori <ohmori@flatout.org>
+- change group
+- add defattr(-,root.root)
+
+* Thu Jul 13 1999 Jun Nishii <jun@flatout.org>
+- include jis fonts
+
+* Mon Feb 8 1999 Jun Nishii <jun@flatout.org>
+- build vfs by makejvf
+- obsoletes vfkanji

+ 160 - 0
t/texlive-mathabx-type1/texlive-mathabx-type1-vl.spec

@@ -0,0 +1,160 @@
+%if %{?_dist_release} != "vl5"
+exit 1
+%endif
+
+%define pkgname		mathabx
+
+%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}
+
+%define exec_mktexlsr  [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
+%define exec_texhash  [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
+%define exec_updmap   [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop
+%define exec_fmtutil  [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null 2>&1
+%define exec_upddeffont    [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
+%define vartexfonts %{_var}/lib/texmf
+
+%define mapdir		%{texmf}-dist/fonts/map/dvips/misc
+%define mathabxdate	20050518
+
+Summary: The mathabx font series: extended and extendable series of mathematical symbols for TeX
+Summary(ja): mathabx: TeX 用の新しい数式フォント
+Name: texlive-mathabx-type1
+Version: 2005
+Release: 3%{?_dist_release}
+Source0: mathabx-%{mathabxdate}.tar.bz2
+Source1: abxtype1-%{mathabxdate}.tar.bz2
+Source2: mathabx_docs-%{mathabxdate}.tar.bz2
+URL: http://auemath.aichi-edu.ac.jp/~khotta/ghost/mathabx.html
+License: GPL
+Buildroot: %{_tmppath}/%{name}-%{version}-root
+Group: Applications/Publishing
+BuildArch: noarch
+PreReq: sed, sh-utils
+
+Requires: texlive-collection-fontsextra
+Obsoletes: mathabx <= 2005-1
+
+Vendor: Project Vine
+Distribution: Vine Linux
+
+%description
+The mathabx font series is a high quality extended and extendable series of 
+mathematical symbols.
+To use this package, you describe \usepackage{mathabx} at preamble in your 
+TeX document.
+
+This package provides Type1 fonts of mathabx. 
+
+
+%description -l ja
+mathabx は CM + AMS の拡張であると考えられます。 全体的に色々な工夫が見られ,
+例えば、積分記号 \int が CM より垂直に見え、不等号 ≦ は AMS のものより < と
+ = がくっついているので、日本人が見慣れているものにより近いようです。
+
+TeX 文書の最初の部分へ \usepackage{mathabx} と記述すれば、普通の数式モードに
+て mathabx の利用が可能になります。
+
+このパッケージは mathabx の Type1 を提供します。
+
+
+%prep
+%__rm -rf $RPM_BUILD_ROOT
+
+%setup -q -a 1 -a 2 -n %{pkgname}
+
+%build
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+# mkdir -p            %{build_texmf}/fonts/source/public/mathabx
+# cp -p source/*      %{build_texmf}/fonts/source/public/mathabx
+# mkdir -p            %{build_texmf}/tex/latex/mathabx
+# cp -p texinputs/*   %{build_texmf}/tex/latex/mathabx
+%__mkdir_p            %{build_texmf}/fonts/type1/mathabx
+%__cp -p abxtype1/pfb/*.pfb %{build_texmf}/fonts/type1/mathabx
+%__mkdir_p	    %{buildroot}%{mapdir}
+%__cp -p abxtype1/map/mathabx.map %{buildroot}%{mapdir}/mathabx.map
+
+%post
+%{exec_texhash}
+
+[ -f %{texmf}/web2c/updmap.cfg ] || exit 0
+
+echo -n "    " && \
+    echo -n "Running updmap: enable mathabx.map ... " && \
+    %{exec_updmap} --enable Map mathabx.map >/dev/null 2>&1 && \
+    echo "done."
+
+exit 0
+
+%postun
+if [ "$1" = "0" ]; then
+    %{exec_texhash}
+
+    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
+
+    echo -n "    " && \
+        echo -n "Running updmap: disable mathabx.map ... " && \
+        %{exec_updmap} --disable mathabx.map >/dev/null 2>&1 && \
+        echo "done."
+fi
+
+exit 0
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+# %{texmf}/fonts/source/public/mathabx/*
+%{texmf}/fonts/type1/mathabx/*
+# %{texmf}/tex/latex/mathabx/*
+%{mapdir}/mathabx.map
+# %doc mathtest.tex mathtest.dvi mathtest.pdf
+
+
+%changelog
+* Thu Jan 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2005-3
+- initial build based on mathabx-type1-2005-2vl6
+
+* Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2005-2
+- renamed to mathabx-type1
+- TeX Live 2009
+- added Requires: texlive-collection-fontsextra
+  - texlive-collection-fontsextra has mathabx package
+
+* Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2005-1vl5
+- applied new versioning policy, spec in utf-8
+
+* Tue May 16 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl4
+- fix exec_updmap: added --nostop option
+
+* Fri Dec 02 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl3
+- fix install dir of mathabx.mat
+
+* Thu Nov 17 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl2
+- fix exec_updmap
+
+* Wed Nov 16 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 2005-0vl1
+- source update
+- modified for tetex-3.0
+
+* Tue Feb 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl3
+- fix exec_updmap
+
+* Thu Dec 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl2
+- source update
+
+* Fri Aug 01 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2003-0vl1
+- source update
+
+* Wed Jun 12 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2002-1vl2
+- update Type1 fonts
+
+* Sun Jun 09 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2002-1vl1
+- 1st release

+ 112 - 0
t/texlive-tetex-trans/texlive-tetex-trans-vl.spec

@@ -0,0 +1,112 @@
+## -*- coding: utf-8-unix -*-
+%bcond_with firstbuild
+
+%if %{?_dist_release} != "vl5"
+exit 1
+%endif
+
+# From $ apt-cache whatdepends jadetex
+# docbook-utils-0.6.14-2vl5
+#   Depends: jadetex
+Provides:    jadetex
+Conflicts:   tetex dvipdfmx xdvik xdvik-motif jvf
+Conflicts:   texlive
+
+%define tex_destdir	%{_datadir}
+%define texmf		%{tex_destdir}/texmf
+
+Summary: TeX Live: teTeX transitional package
+Summary(ja): TeX Live: teTeX から TeX Live への移行用パッケージ
+Name: texlive-tetex-trans
+Version: 2009
+Release: 2%{?_dist_release}
+License: distributable
+Group: Applications/Publishing
+URL: http://www.tug.org/texlive/
+
+BuildArch:	noarch
+Buildroot:    %{_tmppath}/%{name}-%{version}-root
+
+Vendor:       Project Vine
+Distribution: Vine Linux
+Packager:     munepi
+
+
+%description
+The TeX Live software distribution offers a complete TeX system for a
+variety of Unix, Macintosh, Windows and other platforms. It
+encompasses programs for editing, typesetting, previewing and printing
+of TeX documents in many different languages, and a large collection
+of TeX macros and font libraries.
+
+The distribution includes extensive general documentation about TeX,
+as well as the documentation for the included software packages.
+
+This package is a transitional package to bring teTeX environment
+TeX Live environment. 
+If your system has installed teTeX environment, 
+you can install TeX Live environment to execute the following steps: 
+  \# apt-get install %{name}
+  \# apt-get install task-texlive
+
+
+%description -l ja
+TeX Live ソフトウェアディストリビューションは、
+さまざまな Unix, Macintosh, Windows、および
+他のプラットホームに対して完全な TeX システムを提供します。
+多くの異なった言語を含む TeX ドキュメントの
+編集、組版、閲覧、印刷するためのプログラム、
+そして、TeX マクロやフォントライブラリの大きなコレクションを
+同梱しています。
+
+このディストリビューションは
+同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
+TeX に関するたくさんの一般的なドキュメントを含んでいます。
+
+このパッケージは teTeX 環境から TeX Live 環境へ移行するための
+パッケージです。
+teTeX 環境がインストールされていたら、
+以下のコマンドを実行することで TeX Live 環境をインストールできます。
+  \# apt-get install %{name}
+  \# apt-get install task-texlive
+
+
+%files
+
+
+%posttrans
+_trans_time=$(date +%Y%m%d)
+echo "Running transitional process of your TeX system ... "
+for dir in %{texmf}-var %{texmf}-config; do
+    _trans_dir=${dir}.${_trans_time}.rpmorig
+    [ -d ${_trans_dir}.old ] && \
+	echo -n "  " && \
+	echo "Found ${_trans_dir}.old: " && \
+	echo -n "    " && \
+	%__rm -rvf ${_trans_dir}.old
+    [ -d ${_trans_dir} ] && \
+	echo -n "  " && \
+	echo "Found ${_trans_dir}: " && \
+	echo -n "    " && \
+	%__mv -v ${_trans_dir} ${_trans_dir}.old
+    [ -d ${dir} ] && \
+	echo -n "  " && \
+	echo "Found ${dir}: " && \
+	echo -n "    " && \
+	%__mv -v ${dir} ${_trans_dir}
+done
+echo "done."
+
+exit 0
+
+
+%postun
+exit 0
+
+
+%changelog
+* Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
+- fixed %%posttrans
+
+* Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
+- initial package

+ 284 - 0
t/texlive-texmacro-otf/texlive-texmacro-otf-vl.spec

@@ -0,0 +1,284 @@
+%define tlversion	2009
+
+%define hirapropver	0.3
+%define kokanaver	1.0b2
+%define otfver		1.5.6.1
+
+%define texmf		%{_datadir}/texmf
+%define texvf		%{texmf}/fonts/vf/public
+%define texofm		%{texmf}/fonts/ofm/public
+%define textfm		%{texmf}/fonts/tfm/public
+%define mapdir		%{texmf}/fonts/map/dvipdfm
+%define build_texmf	%{buildroot}%{texmf}
+%define build_texvf	%{buildroot}%{texvf}
+%define build_texofm	%{buildroot}%{texofm}
+%define build_textfm	%{buildroot}%{textfm}
+%define build_mapdir	%{buildroot}%{mapdir}
+%define dvipdfmconfig	%{texmf}/dvipdfm/config
+
+%define exec_updmap	[ -x %{_bindir}/updmap-sys ] && %{_bindir}/env - %{_bindir}/updmap-sys --nostop 2> /dev/null
+%define exec_updmap_otf	[ -x %{_bindir}/updmap-otf ] && %{_bindir}/env - %{_bindir}/updmap-otf auto 2> /dev/null
+
+%if %{?_dist_release} == "vl5"
+Conflicts: texmacro-otf
+%endif
+
+Summary: TeX Live macro packages for "VF for OpenType Fonts" by S. Saito
+Summary(ja): TeX Live で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」)
+Name: texlive-texmacro-otf
+Version: %{otfver}
+Release: 2%{?_dist_release}
+BuildArch: noarch
+# #Source0: http://psitau.at.infoseek.co.jp/otfstable.zip
+# Source0: otfstable-%{version}.tar.bz2
+# $ md5sum otfcurrent.zip 
+# fc38d8384f73ae4b4238698eef4e11fd  otfcurrent.zip
+# $ unzip otfcurrent.zip
+# $ mv otfcurrent otfcurrent-1.5.6.1
+# $ tar jcf otfcurrent-1.5.6.1.tar.bz2 otfcurrent-1.5.6.1
+#Source0: http://psitau.at.infoseek.co.jp/otfstable.zip
+Source0: otfcurrent-%{version}.tar.bz2
+#Source1: http://psitau.at.infoseek.co.jp/hiraprop.zip
+Source1: hiraprop-%{hirapropver}.tar.bz2
+#Source2: http://psitau.at.infoseek.co.jp/kokana.zip
+Source2: kokana-%{kokanaver}.tar.bz2
+Source3: http://psitau.at.infoseek.co.jp/otfmanual.pdf
+Source4: http://psitau.at.infoseek.co.jp/kitunetuki.pdf
+Source5: http://psitau.at.infoseek.co.jp/meijinden.pdf
+Source10: updmap-otf
+Source20: otf-noEmbed.map
+Source21: otf-cktx.map
+
+Patch1: texmacro-otf-RmlGbm.patch
+
+URL: http://psitau.at.infoseek.co.jp/otf.html
+License: distributable
+Group:  Applications/Publishing
+BuildRequires: texlive = %{tlversion}
+BuildRequires: perl, nkf
+Requires:     texlive = %{tlversion}
+Requires:     ghostscript
+
+Buildroot:    %{_tmppath}/%{name}-%{version}-root
+
+Distribution: Vine Linux
+Vendor:       Project Vine
+
+%description
+TeX Live macro packages of VF for OpenType Fonts by SAITO Shuzaburo
+Users can use these macros on platex.
+Including
+	hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
+	otfaltkana.sty redeffont.sty
+
+%description -l ja
+齋藤修三郎氏作成の TeX Live で用いる追加マクロパッケージです。
+LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための 
+VF およびスタイルファイルです。
+platex 上で利用できます。
+以下のマクロが含まれています。
+	hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
+	otfaltkana.sty redeffont.sty
+
+%prep
+%setup -q -c -n %{name}-%{version} -a 1 -a 2
+
+#for i in `grep -l -ir ovp2ovf * | grep -v readme`;
+#do
+#	perl -pi -e "s@ovp2ovf@ovp2ovf-1.11@" $i
+#done
+
+## rename from pltotf to ppltotf
+%__sed -i -e "s,^pltotf,ppltotf,g" kokana-%{kokanaver}/makealtkana || exit 1
+
+%build
+
+# ###### otfstable #####
+pushd otfcurrent-%{version}
+./makeotf
+popd
+
+###### kokana #####
+pushd kokana-%{kokanaver}
+nkf -be basepl/base-h.pl > base-h.pl
+nkf -be basepl/base-v.pl > base-v.pl
+%__mv -f base-[hv].pl basepl
+./makealtkana
+popd
+
+%install
+%__rm -rf %{buildroot}
+
+%__mkdir fontmap test pdf
+%__mkdir_p %{buildroot}%{_bindir}
+%__mkdir_p %{build_texmf}/ptex/platex/otf
+%__mkdir_p %{build_texmf}-var/updmap-otf
+%__mkdir_p %{build_texvf}/otf
+%__mkdir_p %{build_textfm}/otf
+%__mkdir_p %{build_mapdir}
+
+%__install -m 644 %{SOURCE3} %{SOURCE4} %{SOURCE5} pdf
+%__install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/updmap-otf
+
+### set prefix dir ###
+%__perl -pi -e "s@/usr/local@/usr@" %{buildroot}%{_bindir}/updmap-otf
+
+###### otfstable #####
+pushd otfcurrent-%{version}
+%__install -m 644 sty/*.sty %{build_texmf}/ptex/platex/otf
+%__install -m 644 vf/* %{build_texvf}/otf
+%__install -m 644 tfm/* %{build_textfm}/otf
+
+#install -m 644 fontmap/cktx.map* %{build_mapdir}/otf-cktx.map
+#install -m 644 fontmap/hiraginox.map* %{build_mapdir}/otf-hiraginox.map
+%__sed -e 's/W.$/&.otf/g' fontmap/hiraginox.map* > %{build_mapdir}/otf-hiraginox.map
+%__install -m 644 fontmap/kozukax.map* %{build_mapdir}/otf-kozukax.map
+%__install -m 644 fontmap/morisawax.map* %{build_mapdir}/otf-morisawax.map
+
+## morisawa map files remaped PS Kanji (CIDFont) Name
+%__sed -e 's@A-OTF-@@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax.map
+%__sed -e 's@A-OTF-@!@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax-noEmbed.map
+
+# Install our own noFont map 
+%__install -m 644 %{SOURCE20}  %{build_mapdir}
+%__install -m 644 %{SOURCE21}  %{build_mapdir}
+
+pushd %{build_mapdir}
+patch -p1 < %{PATCH1}
+popd
+
+%__install -m 644 fontmap/vfontmap.txt ../fontmap
+
+%__install -m 644 test/*.tex ../test
+%__install -m 644 readme.txt ../readme-otfcurrent.txt
+popd
+
+###### hiraprop #####
+%__mkdir_p %{build_texmf}/ptex/platex/hiraprop
+%__mkdir_p %{build_texvf}/hiraprop
+%__mkdir_p %{build_texofm}/hiraprop
+%__mkdir_p %{build_textfm}/hiraprop
+
+pushd hiraprop-%{hirapropver}
+%__install -m 644 sty/* %{build_texmf}/ptex/platex/hiraprop
+%__install -m 644 vf/hiraprop/* %{build_texvf}/hiraprop
+%__install -m 644 ofm/hiraprop/* %{build_texofm}/hiraprop
+%__install -m 644 tfm/hiraprop/* %{build_textfm}/hiraprop
+
+%__install -m 644 *.tex ../test
+%__install -m 644 readme.txt ../readme-hiraprop.txt
+popd
+
+###### kokana #####
+pushd kokana-%{kokanaver}
+%__install -m 644 otfaltkana.sty %{build_texmf}/ptex/platex/otf
+%__install -m 644 vf/* %{build_texvf}/otf
+%__install -m 644 tfm/* %{build_textfm}/otf
+
+%__install -m 644 sample/kokanatest.tex ../test
+%__install -m 644 readme.txt ../readme-kokana.txt
+popd
+
+
+%post
+%{exec_updmap}
+%{exec_updmap_otf}
+exit 0
+
+%postun
+if [ "$1" = 0 ]; then
+	%__rm -rf %{texmf}-var/updmap-otf
+	%{exec_updmap}
+fi
+exit 0
+
+%clean
+%__rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc readme* fontmap test pdf
+%dir %{texmf}-var/updmap-otf
+%{_bindir}/updmap-otf
+%{texmf}/ptex/platex/otf
+%{texmf}/ptex/platex/hiraprop
+%{texvf}
+%{textfm}
+%{texofm}
+%{mapdir}
+
+%changelog 
+* Fri Dec 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2
+- for vl5 + texlive, renamed to texlive-texmacro-otf
+
+* Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
+- new upstream relase
+- TeX Linux 2009
+
+* Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3
+- added otf-ps-morisawax{-noEmbed}.map
+
+* Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2
+- spec in utf8
+
+* Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1
+- applied new versioning policy
+
+* Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1
+- new upstream release
+
+* Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2
+- updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map
+
+* Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1
+- resync with ptetex3-20060506
+
+* Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3
+- resync with ptetex3-20051102
+
+* Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2
+- resync with ptetex3-20050830
+
+* Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1
+- source update
+- modified for teTeX3
+
+* Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1
+- source update
+
+* Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1
+- source update
+
+* Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5
+- updmap-0.7
+
+* Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4
+- updmap-0.6
+
+* Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3
+- updmap-0.5
+
+* Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2
+- fixed updmap
+
+* Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1
+- source update
+- updmap-0.4
+
+* Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4
+- update updmap-otf: take over before setting in "auto" target
+- remove requires texmacro-sfujita
+
+* Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3
+- fix postun
+
+* Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2
+- drop extrafonts and added hiraprop
+- update updmap-otf and *-udvips.map
+
+* Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1
+- source update
+- added updmap-otf
+
+* Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1
+- first release