texmacro-jps-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. %define exec_texhash [ -x %{_prefix}/bin/texhash ] && /usr/bin/env - %{_prefix}/bin/texhash 2> /dev/null
  2. %define texmf %{_prefix}/share/texmf
  3. %define build_texmf %{buildroot}%{texmf}
  4. %define makepdf(%1) latex %1 && latex %1 && latex %1 && dvipdfm %1;
  5. Summary: teTeX macro packages of writing manuscript for the journal of BUTSURI (the Journal of the Physical Society of Japan)
  6. Summary(ja): tetex で使うマクロパッケージ 日本物理学会論文原稿作成用
  7. Name: texmacro-jps
  8. Version: 1.2.0
  9. Release: 3%{?_dist_release}
  10. BuildArch: noarch
  11. Source0: http://wwwsoc.nii.ac.jp/jps/jpsj/style/jpsj2.tar.gz
  12. URL: http://wwwsoc.nii.ac.jp/jps/jps/topics/j_move.html
  13. License: The Institue of Pure and Applied Physics
  14. Group: Applications/Publishing
  15. BuildPrereq: tetex
  16. Buildroot: %{_tmppath}/%{name}-%{version}-root
  17. Distribution: Vine Linux
  18. Vendor: Project Vine
  19. %description
  20. teTeX macro packages of writing manuscript for the journal of BUTSURI
  21. (the Journal of the Physical Society of Japan)
  22. Users can use this macro specifying jpsj2 class.
  23. Including
  24. jpsj2.cls : Version 1.2 (May 8, 2003)
  25. %description -l ja
  26. 日本物理学会誌論文原稿作成用の tetex で用いる追加マクロパッケージです.
  27. jpsj2 クラスを指定してしようします。
  28. 以下のマクロが含まれています。
  29. jpsj2.cls : Version 1.2 (May 8, 2003)
  30. %prep
  31. %setup -q -c -n %{name}-%{version}
  32. %build
  33. # latex injpsj2
  34. # latex injpsj2
  35. # for i in *.dvi
  36. # do
  37. # dvips $i
  38. # done
  39. %makepdf injpsj2
  40. mv template.tex template.bak
  41. nkf -d template.bak > template.tex
  42. %install
  43. rm -rf %{buildroot}
  44. #InstallClass(){
  45. #target=$1; shift
  46. #(cd $target
  47. #bzip2 -dc ${RPM_SOURCE_DIR}/$target.tar.bz2 | tar xf - -C %{build_texmf}/packages/
  48. #rm %{build_texmf}/packages/$target/*.{ins,def,bst,rtx,sty,cls,ltx,fnt,cyr,fdd} || :
  49. #if [ -f src/$target.ins ]; then
  50. # cp src/* .
  51. #fi
  52. #latex $target.ins
  53. #mkdir -p %{build_texmf}/tex/latex/$target
  54. #cp *.{ldf,sty,def,cls,rtx} %{build_texmf}/tex/latex/$target || :
  55. #if [ ! -z "$*" ]; then
  56. # cp -d $* %{build_texmf}/tex/latex/$target || :
  57. #fi
  58. #if [ -n "`ls *.bst`" ]; then
  59. # mkdir -p %{build_texmf}/bibtex/bst/$target
  60. # cp *.bst %{build_texmf}/bibtex/bst/$target || :
  61. #fi
  62. #)
  63. #}
  64. #
  65. #mkdir -p %{build_texmf}/packages/
  66. mkdir -p %{build_texmf}/tex/latex/jpsj2
  67. mv *.cls %{build_texmf}/tex/latex/jpsj2
  68. %post
  69. %{exec_texhash}
  70. exit 0
  71. %postun
  72. %{exec_texhash}
  73. exit 0
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT
  76. %files
  77. %defattr(-,root,root)
  78. %doc *.{tex,pdf,txt} dummy.eps
  79. %{texmf}/tex/latex/jpsj2/
  80. %changelog
  81. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-3
  82. - new versioning policy
  83. - spec in utf8
  84. - created injpsj2.pdf
  85. * Fri Aug 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2-0vl2
  86. - s/Copyright/License/
  87. * Wed May 25 2005 Masaki Kawamura <kawamura@is.sci.yamaguchi-u.ac.jp> 1.2
  88. - update to 1.2
  89. * Sat Jan 18 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.1-0vl2
  90. - update jpsj2.tar.gz
  91. * Thu Jul 18 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.1-0vl1
  92. - update to 1.1.1
  93. * Mon Sep 10 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0-0vl1
  94. - first release