texmacro-ipsj-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. # \ProvidesClass{ipsjpapers}[2010/10/28 ver 3.02]
  7. %define reldate 20101028
  8. Summary: TeX Live macro packages of writing manuscript for the Information Processing Society of Japan
  9. Summary(ja): TeX Live で使うマクロパッケージ 情報処理学会論文原稿作成用
  10. Name: texmacro-ipsj
  11. Version: 3.02
  12. Release: 1%{?reldate:.%reldate}%{?_dist_release}
  13. BuildArch: noarch
  14. # $ sha1sum ipsj-unix.tgz
  15. # 951c81020f12d7b43cc65e1ca9c9910b85f3a1cf ipsj-unix.tgz
  16. Source0: ftp://ftp.ipsj.or.jp/pub/toukou/ipsj-unix.tgz
  17. URL: http://www.ipsj.or.jp/08editt/journal/shippitsu/wabun.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. TeX Live macro packages of writing manuscript for the
  29. Information Processing Society of Japan.
  30. Users can use this macro specifying "ipsjpapers" class.
  31. Including
  32. ipsjcommon.sty
  33. ipsjdrafts.sty
  34. ipsjpapers.cls
  35. ipsjpapers.sty
  36. ipsjsort-e.bst
  37. ipsjsort.bst
  38. ipsjunsrt-e.bst
  39. ipsjunsrt.bst
  40. %description -l ja
  41. 情報処理学会論文原稿作成用の TeX Live 追加マクロパッケージです。
  42. ipsjpapers クラスを指定して使用します。
  43. このパッケージには以下のマクロが含まれています。
  44. ipsjcommon.sty
  45. ipsjdrafts.sty
  46. ipsjpapers.cls
  47. ipsjpapers.sty
  48. ipsjsort-e.bst
  49. ipsjsort.bst
  50. ipsjunsrt-e.bst
  51. ipsjunsrt.bst
  52. %prep
  53. %__rm -rf %{name}-%{version}
  54. %__mkdir_p %{name}-%{version}
  55. %__tar -C %{name}-%{version} -xvf %{SOURCE0}
  56. %setup -D -T -n %{name}-%{version}/ipsj-unix
  57. %build
  58. for i in sample dsample esample desample ; do
  59. %makepdf $i
  60. done
  61. %__rm -f *.{aux,dvi,log,toc,bbl,blg,end}
  62. %install
  63. %__rm -rf %{buildroot}
  64. %__mkdir_p %{build_texmf}/ptex/platex/ipsj
  65. %__mkdir_p %{build_texmf}/bibtex/bst/ipsj
  66. %__install -p -m644 *.{cls,sty} %{build_texmf}/ptex/platex/ipsj
  67. %__install -p -m644 *.bst %{build_texmf}/bibtex/bst/ipsj
  68. %post
  69. %{exec_texhash}
  70. exit 0
  71. %postun
  72. %{exec_texhash}
  73. exit 0
  74. %clean
  75. %__rm -rf %{buildroot}
  76. %files
  77. %defattr(-,root,root)
  78. %doc *.{tex,bib,pdf}
  79. %{texmf}/ptex/platex/ipsj
  80. %{texmf}/bibtex/bst/ipsj
  81. %changelog
  82. * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.02-1.20101028
  83. - update source to ver 3.02 2010/10/28 (ipsjpapers.cls)
  84. - TeX Live 2009
  85. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.20090225-1
  86. - update source to 20090225
  87. - new versioning policy
  88. - spec in utf8
  89. * Thu Dec 21 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.20060418-0vl1
  90. - update source to 20060418
  91. - use release date as micro version
  92. * Sat Jun 25 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0-0vl5
  93. - update source
  94. - update source-URL
  95. - docs
  96. - compile only with native mode
  97. - convert to pdf instead of ps
  98. * Sun Apr 25 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0-0vl4
  99. - s/Copyright/License/
  100. - update URL
  101. - use %%{_bindir} instead of %%{_prefix}/bin
  102. - use %%{_datadir} instead of %%{_prefix}/share
  103. - compile {sample,esample}.tex with platex209
  104. - fix desample2e.tex to include esample.tex (Patch0)
  105. * Thu Jan 30 2003 KAZUKI SHIMURA <rito@pos.to> 1.0-0vl3
  106. - fix file access permissions
  107. - use %%{texmf} at %%files instead of /usr/share/texmf
  108. * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl2
  109. - compile docs
  110. * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1
  111. - first release