texmacro-ieice-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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=utf8
  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.6
  10. Release: 1%{?_dist_release}
  11. BuildArch: noarch
  12. Source0: http://www.ieice.org/ftp/tex/ieicej/LaTeX2e/ieicej1.6a.tgz
  13. Source1: http://www.ieice.org/ftp/tex/ieice/LaTeX2e/ieice1.8.tgz
  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 1.8
  31. ieicej.cls 1.6a
  32. %description -l ja
  33. 電子情報通信学会の技術研究報告(研究会発表論文)和・英論文誌 原稿作成用
  34. の TeX Live で用いる追加マクロパッケージです。
  35. 和文は ieicej クラスを、英文は ieice クラスを指定します。
  36. 以下のマクロが含まれています
  37. ieice.cls 1.8
  38. ieicej.cls 1.6a
  39. %prep
  40. %setup -T -c %{name}-%{version}
  41. tar xzf %{SOURCE0}
  42. %__mv ieicej1.6a/UNIXEUC jp
  43. %__rm -rf ieicej1.6a
  44. tar xzf %{SOURCE1}
  45. %__mv ieice1.8/UNIXEUC en
  46. %__rm -rf ieice1.8
  47. %build
  48. (cd jp
  49. for x in *.cls *.tex readme.1st *.bst; do
  50. nkf -w --overwrite ${x} || exit 1
  51. done
  52. for i in *.tex; do
  53. ft=$(basename ${i} .tex)
  54. # if [ "${ft}" != "chklist" -a "${ft}" != "template" ]; then
  55. # # %__sed -i -e "s/\documentclass\[\(.*\)\]{ieicej}/\documentclass\[\1,tombo\]{ieicej}/" -e "s/\documentclass{ieicej}/\documentclass\[tombo\]{ieicej}/" ${i} || exit 1
  56. # # %__sed -i -e "s/\documentclass\[\(.*\)\]{ieicej}/\documentclass\[\1,mentuke\]{ieicej}/" -e "s/\documentclass{ieicej}/\documentclass\[mentuke\]{ieicej}/" ${i} || exit 1
  57. # fi
  58. %makepdf ${ft}
  59. ##!! override to fix paper size/position
  60. done
  61. )
  62. (cd en
  63. for x in *.cls *.tex ; do
  64. nkf -w --overwrite ${x} || exit 1
  65. done
  66. for i in *.tex; do
  67. ft=$(basename ${i} .tex)
  68. %makepdf ${ft}
  69. done
  70. )
  71. %install
  72. %__rm -rf %{buildroot}
  73. %__mkdir_p %{build_texmf}/ptex/platex/ieice
  74. %__cp -a */*.cls %{build_texmf}/ptex/platex/ieice
  75. %__mkdir_p %{build_texmf}/bibtex/bst/ieice
  76. %__cp -a */*.bst %{build_texmf}/bibtex/bst/ieice
  77. %post
  78. %{exec_texhash}
  79. exit 0
  80. %postun
  81. %{exec_texhash}
  82. exit 0
  83. %clean
  84. %__rm -rf %{buildroot}
  85. %files
  86. %defattr(-,root,root)
  87. %doc jp/*.{tex,pdf} jp/readme.1st
  88. %doc en/*.{tex,pdf} en/readme-e.1st
  89. %{texmf}/ptex/platex/ieice
  90. %{texmf}/bibtex/bst/ieice
  91. %changelog
  92. * Thu Jun 7 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.6-1
  93. - merged the following changes <BTS:wishes:307>;
  94. Thanks to Masaki Kawamura <kawamura@is.sci.yamaguchi-u.ac.jp>
  95. - update sources: ieicej1.6a.tgz and ieice1.8.tgz
  96. - convert EUC to UTF8 for ieicej.cls
  97. * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.5-2
  98. - TeX Live 2009
  99. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.5-1
  100. - update sources
  101. - new versioning policy
  102. - spec in utf8
  103. * Tue Apr 27 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.3-0vl1
  104. - update sources
  105. - drop tech_2e_euc.tgz
  106. - drop BuildRequires: nkf
  107. - install ieicetr.bst
  108. - s/Copyright/License/
  109. - use %%{_bindir} instead of %%{_prefix}/bin
  110. - use %%{_datadir} instead of %%{_prefix}/share
  111. * Thu Jan 30 2003 KAZUKI SHIMURA <rito@pos.to> 1.1-0vl2
  112. - fix file access permissions
  113. - use %%{texmf} at %%files instead of /usr/share/texmf
  114. * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1-0vl1
  115. - update Source2
  116. * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1
  117. - first release