pk300-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define _prefix /usr
  2. %define texmf %{_prefix}/share/texmf
  3. %define texmfconf %{texmf}/web2c/texmf.cnf
  4. %define mode epsonact
  5. %define fontdir %{_prefix}/share/fonts/pk
  6. %define exec_texhash [ -x %{_prefix}/bin/texhash ] && /usr/bin/env - %{_prefix}/bin/texhash 2> /dev/null
  7. %define part_delete if [ -e $CONF ]; then cp -f $CONF $CONF.rpmtmp && sed -e '/^. begin %{name} /,/^. end %{name} /d' < $CONF.rpmtmp > $CONF && rm -f $CONF.rpmtmp; fi
  8. Summary: 300 dpi TeX pk fonts
  9. Name: pk300
  10. Version: 1
  11. Release: 5%{?_dist_release}
  12. License: distributable
  13. Group: Applications/Publishing
  14. Source0: http://www.tooyoo.l.u-tokyo.ac.jp/TeX/utility/makefont.tar.gz
  15. Source1: makefonts-pje.tar.gz
  16. BuildArch: noarch
  17. PreReq: sed sh-utils
  18. #Requires: tetex-xdvi
  19. Requires: xdvik
  20. BuildPreReq: tetex
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. 300 dpi PK fonts for TeX. Only for xdvi.
  26. %description -l ja
  27. TeX で利用する pk font (300dpi)です。xdvi でのみ用います。
  28. %prep
  29. %setup -q -c -T -a 0 -a 1
  30. cp latex2e.medium.sh latex2e.sh
  31. cp ams.small.sh ams.sh
  32. %build
  33. make MODE=%{mode} latex2e
  34. make MODE=%{mode} slitex
  35. make MODE=%{mode} ams
  36. %install
  37. rm -rf ${RPM_BUILD_ROOT}
  38. mkdir -p $RPM_BUILD_ROOT%{fontdir}/%{mode}
  39. make PKDIR=$RPM_BUILD_ROOT%{fontdir}/%{mode} install
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %post
  43. %{exec_texhash}
  44. exit 0
  45. %postun
  46. %{exec_texhash}
  47. exit 0
  48. %files
  49. %defattr(-, root, root)
  50. %{fontdir}/%{mode}
  51. %changelog
  52. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1-5vl5
  53. - applied new versioning policy, spec in utf-8
  54. * Tue Jun 25 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 1-4vl3
  55. - remove trigger/triggerun (PKFONTS.xdvi already exists in texmf.cnf)
  56. * Thu Aug 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  57. - 1-4vl2
  58. - Requires: tetex-xdvi -> xdvik again
  59. * Fri Jul 20 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  60. - pk300-1-4vl1 derived from Mr. Tutimura's 0test5.
  61. * Fri Oct 29 1999 Norihito Ohmori <ohmori@flatout.org>
  62. - Change Group.
  63. - add defattr(-, root, root)
  64. * Thu Dec 3 1998 Jun NISHII <nishii@postman.riken.go.jp>
  65. - Mmm... more slim!
  66. * Thu Nov 26 1998 Jun NISHII <nishii@postman.riken.go.jp>
  67. - more fonts!
  68. * Thu Nov 05 1998 Jun NISHII <nishii@postman.riken.go.jp>
  69. - first release