texmacro-his-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. %define exec_texhash [ -x %{_prefix}/bin/texhash ] && /usr/bin/env - %{_prefix}/bin/texhash 2> /dev/null
  2. %define texmf %{_prefix}/share/texmf
  3. %define build_texmf %{buildroot}%{texmf}
  4. %define altplatex platex --kanji=euc
  5. %define makepdf(%1) %altplatex %1 && %altplatex %1 && %altplatex %1 && dvipdfmx %1;
  6. Summary: TeX Live macro packages of writing manuscript for the Transactions of Human Interface Society
  7. Summary(ja): TeX Live で使うマクロパッケージ ヒューマンインタフェース学会論文原稿作成用
  8. Name: texmacro-his
  9. Version: 1.0
  10. Release: 4%{?_dist_release}
  11. BuildArch: noarch
  12. Source0: http://www.his.gr.jp/download/paper/latex2e-euc/hisset.tar.gz
  13. Source1: http://www.his.gr.jp/download/meeting/latex2e-euc/hiskenset2e.tar.gz
  14. # hissympset.gz は hissympset.tar.gz にリネームしてあります.
  15. # Source2: http://www.his.gr.jp/download/his/latex2e-euc/hissympset.gz
  16. Source2: http://www.his.gr.jp/download/his/latex2e-euc/hissympset.tar.gz
  17. URL: http://www.his.gr.jp/download/index.html
  18. License: distributable
  19. Group: Applications/Publishing
  20. BuildRequires: texlive-common
  21. Requires: texlive-common
  22. Requires(post): texlive
  23. Requires(postun): texlive
  24. Buildroot: %{_tmppath}/%{name}-%{version}-root
  25. Distribution: Vine Linux
  26. Vendor: Project Vine
  27. %description
  28. teTeX macro packages of writing manuscript for the journal of
  29. the Transactions of Human Interface Society
  30. Users can use this macro specifying "his" class (in Japanese)
  31. or "ehis" class (in English).
  32. Including the following class files:
  33. his.cls
  34. ehis.cls
  35. hisken.cls
  36. ehisken.cls
  37. hissymp.cls
  38. ehissymp.cls
  39. %description -l ja
  40. ヒューマンインタフェース学会論文原稿作成用の tetex で用いる追加マクロパッケージです.
  41. his クラスを指定して使用します。
  42. 英文は ehis クラスを指定します。
  43. 以下のクラスファイルが含まれています。
  44. his.cls
  45. ehis.cls
  46. hisken.cls
  47. ehisken.cls
  48. hissymp.cls
  49. ehissymp.cls
  50. %prep
  51. %setup -q -c -n %{name}-%{version} -a 1 -a 2
  52. %build
  53. (cd hisset
  54. %__sed -i s/dviout/dvips/ format.tex
  55. %makepdf format
  56. )
  57. (cd hiskenset_2eeuc
  58. %makepdf ken
  59. )
  60. (cd hissympset_euc
  61. %makepdf symptebiki
  62. )
  63. %install
  64. %__rm -rf %{buildroot}
  65. #InstallClass(){
  66. #target=$1; shift
  67. #(cd $target
  68. #bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/
  69. #rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || :
  70. #if [ -f src/$target.ins ]; then
  71. # cp src/* .
  72. #fi
  73. #latex $target.ins
  74. #mkdir -p %{build_texmf}/tex/latex/$target
  75. #cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || :
  76. #if [ ! -z "$*" ]; then
  77. # cp -d $* %{build_texmf}/tex/latex/$target || :
  78. #fi
  79. #if [ -n "`ls *.bst`" ]; then
  80. # mkdir -p %{build_texmf}/bibtex/bst/$target
  81. # cp *.bst %{build_texmf}/bibtex/bst/$target || :
  82. #fi
  83. #)
  84. #}
  85. #
  86. #mkdir -p %{build_texmf}/packages/
  87. %__mkdir_p %{build_texmf}/ptex/platex/his
  88. %__cp -af */*.cls %{build_texmf}/ptex/platex/his/
  89. %post
  90. %{exec_texhash}
  91. exit 0
  92. %postun
  93. %{exec_texhash}
  94. exit 0
  95. %clean
  96. %__rm -rf $RPM_BUILD_ROOT
  97. %files
  98. %defattr(-,root,root)
  99. %doc */*.{tex,pdf} hisset/fig1.* hissympset_euc/fig1.bb
  100. %{texmf}/ptex/platex/his/
  101. %changelog
  102. * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-4
  103. - TeX Live 2009
  104. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3
  105. - source update as his.cls Version 1.0 2006-12-15
  106. - new versioning policy
  107. - spec in utf8
  108. - s/Copyright/License/
  109. * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl2
  110. - update as of 2002.12.6
  111. * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1
  112. - first release