|
@@ -1,6 +1,8 @@
|
|
|
+%define tlversion 2009
|
|
|
+
|
|
|
%define hirapropver 0.3
|
|
|
%define kokanaver 1.0b2
|
|
|
-%define otfver 1.2.9
|
|
|
+%define otfver 1.5.6.1
|
|
|
|
|
|
%define texmf %{_datadir}/texmf
|
|
|
%define texvf %{texmf}/fonts/vf/public
|
|
@@ -17,14 +19,21 @@
|
|
|
%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
|
|
|
|
|
|
-Summary: teTeX macro packages for "VF for OpenType Fonts" by S. Saito
|
|
|
-Summary(ja): tetex で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」)
|
|
|
+Summary: TeX Live macro packages for "VF for OpenType Fonts" by S. Saito
|
|
|
+Summary(ja): TeX Live で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」)
|
|
|
Name: texmacro-otf
|
|
|
Version: %{otfver}
|
|
|
-Release: 3%{?_dist_release}
|
|
|
+Release: 1%{?_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: otfstable-%{version}.tar.bz2
|
|
|
+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
|
|
@@ -41,25 +50,27 @@ Patch1: texmacro-otf-RmlGbm.patch
|
|
|
URL: http://psitau.at.infoseek.co.jp/otf.html
|
|
|
License: distributable
|
|
|
Group: Applications/Publishing
|
|
|
-BuildPrereq: tetex-extra >= 3.0
|
|
|
+BuildRequires: texlive = %{tlversion}
|
|
|
BuildRequires: perl, nkf
|
|
|
-Requires: task-tetex, ghostscript
|
|
|
-Conflicts: tetex <= 2.0.2
|
|
|
-Buildroot: %{_tmppath}/%{name}-root
|
|
|
+Requires: texlive = %{tlversion}
|
|
|
+Requires: ghostscript
|
|
|
+
|
|
|
+Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
Distribution: Vine Linux
|
|
|
-Vendor: Project Vine
|
|
|
+Vendor: Project Vine
|
|
|
|
|
|
%description
|
|
|
-teTeX macro packages of VF for OpenType Fonts by SAITO Shuzaburo
|
|
|
+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
|
|
|
-齋藤修三郎氏作成の tetex で用いる追加マクロパッケージです。
|
|
|
-LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための VF およびスタイルファイルです。
|
|
|
+齋藤修三郎氏作成の TeX Live で用いる追加マクロパッケージです。
|
|
|
+LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための
|
|
|
+VF およびスタイルファイルです。
|
|
|
platex 上で利用できます。
|
|
|
以下のマクロが含まれています。
|
|
|
hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty
|
|
@@ -73,10 +84,13 @@ platex 上で利用できます。
|
|
|
# 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 otfstable-%{version}
|
|
|
+# ###### otfstable #####
|
|
|
+pushd otfcurrent-%{version}
|
|
|
./makeotf
|
|
|
popd
|
|
|
|
|
@@ -84,81 +98,81 @@ popd
|
|
|
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
|
|
|
+%__mv -f base-[hv].pl basepl
|
|
|
./makealtkana
|
|
|
popd
|
|
|
|
|
|
%install
|
|
|
-rm -rf %{buildroot}
|
|
|
+%__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}
|
|
|
+%__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
|
|
|
+%__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
|
|
|
+%__perl -pi -e "s@/usr/local@/usr@" %{buildroot}%{_bindir}/updmap-otf
|
|
|
|
|
|
###### otfstable #####
|
|
|
-pushd otfstable-%{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
|
|
|
+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
|
|
|
+%__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
|
|
|
+%__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}
|
|
|
+%__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 fontmap/vfontmap.txt ../fontmap
|
|
|
|
|
|
-install -m 644 test/*.tex ../test
|
|
|
-install -m 644 readme.txt ../readme-otfstable.txt
|
|
|
+%__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
|
|
|
+%__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 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
|
|
|
+%__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 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
|
|
|
+%__install -m 644 sample/kokanatest.tex ../test
|
|
|
+%__install -m 644 readme.txt ../readme-kokana.txt
|
|
|
popd
|
|
|
|
|
|
|
|
@@ -169,13 +183,13 @@ exit 0
|
|
|
|
|
|
%postun
|
|
|
if [ "$1" = 0 ]; then
|
|
|
- rm -rf %{texmf}-var/updmap-otf
|
|
|
+ %__rm -rf %{texmf}-var/updmap-otf
|
|
|
%{exec_updmap}
|
|
|
fi
|
|
|
exit 0
|
|
|
|
|
|
%clean
|
|
|
-rm -rf %{buildroot}
|
|
|
+%__rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
@@ -190,6 +204,10 @@ rm -rf %{buildroot}
|
|
|
%{mapdir}
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1
|
|
|
+- new upstream release
|
|
|
+- 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
|
|
|
|