123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- %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
- Summary: Japanese Virtual Fonts
- Summary(ja): 日本語仮想フォントです.
- Name: 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
- Obsoletes: texlive-jvf <= 2.0
- 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
- * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-6
- - added Obsoletes: texlive-jvf <= 2.0
- - for TeX Live 2009 of VinePlus/5, supported 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
|