texmacro-jasj-vl.spec 1.8 KB

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