texmacro-ipsj-vl.spec 3.3 KB

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