texmacro-ieice-vl.spec 3.8 KB

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