texmacro-jps-vl.spec 3.2 KB

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