texmacro-jasj-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. Summary: TeX Live macro packages of writing manuscript for the Journal of the Acoustical Society of Japan
  7. Summary(ja): TeX Live で使うマクロパッケージ 日本音響学会誌(和文誌)原稿作成用
  8. Name: texmacro-jasj
  9. Version: 1.0
  10. Release: 2%{?_dist_release}
  11. BuildArch: noarch
  12. Source0: http://www2.iee.or.jp/ver2/honbu/32-doc-kenq/latex2e.zip
  13. URL: http://www.iee.or.jp/
  14. License: distributable
  15. Group: Applications/Publishing
  16. BuildRequires: texlive-common
  17. Requires: texlive-common
  18. Requires(post): texlive
  19. Requires(postun): texlive
  20. Buildroot: %{_tmppath}/%{name}-%{version}-root
  21. Distribution: Vine Linux
  22. Vendor: Project Vine
  23. %description
  24. TeX Live macro packages of writing manuscript for the
  25. Journal of the Acoustical Society of Japan.
  26. Users can use this macro specifying "jasj" class.
  27. Including
  28. jasj.cls
  29. %description -l ja
  30. 日本音響学会誌(和文誌)原稿作成用の TeX Live で用いる追加マクロパッケージです。
  31. jasj クラスを指定して使用します。
  32. 以下のマクロが含まれています
  33. jasj.cls
  34. %define jasjsrcdir latex2e/UNIXEUC
  35. %prep
  36. %setup -q -c -n %{name}-%{version}/
  37. %build
  38. (cd %jasjsrcdir
  39. %makepdf readme
  40. )
  41. %install
  42. %__rm -rf %{buildroot}
  43. %__mkdir_p %{build_texmf}/ptex/platex/jasj
  44. %__cp -a %jasjsrcdir/*.cls %{build_texmf}/ptex/platex/jasj
  45. %post
  46. %{exec_texhash}
  47. exit 0
  48. %postun
  49. %{exec_texhash}
  50. exit 0
  51. %clean
  52. %__rm -rf %{buildroot}
  53. %files
  54. %defattr(-,root,root)
  55. %doc %jasjsrcdir/*.{tex,pdf,1st}
  56. %{texmf}/ptex/platex/jasj
  57. %changelog
  58. * Sun Jul 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-2
  59. - TeX Live 2009
  60. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-1
  61. - initial build