texmacro-ieice-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. %define exec_texhash [ -x %{_bindir}/texhash ] && %{_bindir}/env - %{_bindir}/texhash 2> /dev/null
  2. %define texmf %{_datadir}/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: teTeX macro packages of writing manuscript for the Institute of Electronics, Information and Communication Engineers
  7. Summary(ja): teTeX で使うマクロパッケージ 電子情報通信学会論文原稿、技術研究報告作成用
  8. Name: texmacro-ieice
  9. Version: 1.5
  10. Release: 1%{?_dist_release}
  11. BuildArch: noarch
  12. Source0: http://www.ieice.org/ftp/tex/ieicej/LaTeX2e/ieicej15.tar.gz
  13. Source1: http://www.ieice.org/ftp/tex/ieice/LaTeX2e/latex2e.tar.gz
  14. URL: http://www.ieice.org/ftp/
  15. License: distributable
  16. Group: Applications/Publishing
  17. BuildRequires: tetex
  18. Buildroot: %{_tmppath}/%{name}-%{version}-root
  19. Distribution: Vine Linux
  20. Vendor: Project Vine
  21. %description
  22. teTeX macro packages of writing manuscript for the
  23. Institute of Electronics, Information and Communication Engineers.
  24. Users can use this macro specifying "ieicej" class (in Japanese)
  25. or "ieice" class (in English).
  26. Including
  27. ieice.cls
  28. ieicej.cls
  29. %description -l ja
  30. 電子情報通信学会の技術研究報告(研究会発表論文)和・英論文誌 原稿作成用
  31. の teTeX で用いる追加マクロパッケージです。
  32. 和文は ieicej クラスを、英文は ieice クラスを指定します。
  33. 以下のマクロが含まれています
  34. ieice.cls
  35. ieicej.cls
  36. %prep
  37. %setup -T -c %{name}-%{version}
  38. tar xzf %{SOURCE0}
  39. mv ieicej15/UNIXEUC jp
  40. rm -rf ieicej15
  41. tar xzf %{SOURCE1}
  42. mv latex2e/UNIXEUC en
  43. rm -rf latex2e
  44. %build
  45. ( cd jp
  46. for i in readme tecrep chklist ; do
  47. # platex $i
  48. # platex $i
  49. # dvips $i
  50. %makepdf $i
  51. rm -f *.{aux,dvi,log}
  52. done )
  53. ( cd en
  54. for i in readme-e readme-j ; do
  55. # platex $i
  56. # platex $i
  57. # dvips $i
  58. %makepdf $i
  59. rm -f *.{aux,dvi,log}
  60. done )
  61. %install
  62. rm -rf %{buildroot}
  63. #InstallClass(){
  64. #target=$1; shift
  65. #(cd $target
  66. #bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/
  67. #rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || :
  68. #if [ -f src/$target.ins ]; then
  69. # cp src/* .
  70. #fi
  71. #latex $target.ins
  72. #mkdir -p %{build_texmf}/tex/latex/$target
  73. #cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || :
  74. #if [ ! -z "$*" ]; then
  75. # cp -d $* %{build_texmf}/tex/latex/$target || :
  76. #fi
  77. #if [ -n "`ls *.bst`" ]; then
  78. # mkdir -p %{build_texmf}/bibtex/bst/$target
  79. # cp *.bst %{build_texmf}/bibtex/bst/$target || :
  80. #fi
  81. #)
  82. #}
  83. #
  84. #mkdir -p %{build_texmf}/packages/
  85. mkdir -p %{build_texmf}/ptex/platex/ieice
  86. mv */*.cls %{build_texmf}/ptex/platex/ieice
  87. mkdir -p %{build_texmf}/bibtex/bst/ieice
  88. mv en/*.bst %{build_texmf}/bibtex/bst/ieice
  89. %post
  90. %{exec_texhash}
  91. exit 0
  92. %postun
  93. %{exec_texhash}
  94. exit 0
  95. %clean
  96. rm -rf %{buildroot}
  97. %files
  98. %defattr(-,root,root)
  99. %doc jp
  100. %doc en
  101. %{texmf}/ptex/platex/ieice
  102. %{texmf}/bibtex/bst/ieice
  103. %changelog
  104. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.5-1
  105. - update sources
  106. - new versioning policy
  107. - spec in utf8
  108. * Tue Apr 27 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.3-0vl1
  109. - update sources
  110. - drop tech_2e_euc.tgz
  111. - drop BuildRequires: nkf
  112. - install ieicetr.bst
  113. - s/Copyright/License/
  114. - use %%{_bindir} instead of %%{_prefix}/bin
  115. - use %%{_datadir} instead of %%{_prefix}/share
  116. * Thu Jan 30 2003 KAZUKI SHIMURA <rito@pos.to> 1.1-0vl2
  117. - fix file access permissions
  118. - use %%{texmf} at %%files instead of /usr/share/texmf
  119. * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1-0vl1
  120. - update Source2
  121. * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1
  122. - first release