123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- %define tlversion 2011
- %define vinepl vine.pls-1.2
- %define tfmdir %{texmf}/fonts/tfm/ptex
- %define __pltotf %{_bindir}/ppltotf
- %define __makejvf %{_bindir}/makejvf
- %define __nkf %{_bindir}/nkf
- %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
- %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
- %define vartexfonts %{_var}/lib/texmf/fonts
- Summary: Japanese Virtual Fonts
- Summary(ja): 日本語仮想フォントです.
- Name: jvf
- Version: 7.0
- Release: 1%{?_dist_release}
- License: distributable
- Group: Applications/Publishing
- Source0: %{vinepl}.tar.gz
- Source1: http://oku.edu.mie-u.ac.jp/~okumura/texfaq/jis-pl.zip
- Requires(post): sh-utils
- Requires: texlive = %{tlversion}
- BuildRequires: nkf
- BuildRequires: unzip
- ## NOTE: makejvf and ppltotf: contained in texlive
- BuildRequires: texlive = %{tlversion}
- ## NOTE: tfm/vf files of pTeX:
- ## almostly contained in texmf-dist/ of texlive-sources
- BuildRequires: texlive-sources = %{tlversion}
- BuildArch: noarch
- Buildroot: %{_tmppath}/%{name}-%{version}-root
- Obsoletes: texlive-jvf <= 2.0
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: munepi
- %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 -c %{name}-%{version}
- [ -d %{vinepl} ] && %__mv %{vinepl}/* . && %__rm -r %{vinepl} || exit 1
- %__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
- %__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
- %__makejvf jis.tfm rml
- %__makejvf tjis.tfm rmlv # 縦
- %__makejvf jisi.tfm rmli # italic
- %__makejvf tjisi.tfm rmlvi
- %__makejvf jisg.tfm gbm
- %__makejvf tjisg.tfm gbmv
- %__makejvf jisgi.tfm gbmi
- %__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
- %__makejvf jis.tfm rml
- %__makejvf jisn.tfm rmln # 中点修正
- %__makejvf jis-v.tfm rmlv # 縦
- %__makejvf jisn-v.tfm rmlnv
- %__makejvf jisg.tfm gbm
- %__makejvf jisgn.tfm gbmn
- %__makejvf jisg-v.tfm gbmv
- %__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
- %__makejvf ${i}.tfm ${i}
- %__makejvf ${i}i.tfm ${i}i
- %__makejvf t${i}.tfm t${i}
- %__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
- # ## avoid conflicts in texmf-dist
- # %__rm -f jvf-filelist.conflict
- # for i in $(find %{texlive_src}/texmf-dist/fonts/{tfm,vf,source}/ptex/ -type f); do
- # [ ! -z "$(find $(pwd) -type f | %__grep -e "/$(basename ${i})")" ] && \
- # echo -n "${i}: " >> jvf-filelist.conflict && \
- # %__rm -fv $(find $(pwd) -type f | %__grep -e "/$(basename ${i})") >> jvf-filelist.conflict && \
- # %__ln_s $(echo ${i} | %__sed -e "s,%{texlive_src},%{tex_destdir},") . ||:
- # 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 Nov 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 7.0-1
- - increase version number to match with distro version
- - TeX Live 2011
- * 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
|