texmacro-ieej-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 Transaction of The Institute of Electrical Engineers of Japan
  7. Summary(ja): teTeX で使うマクロパッケージ 電気学会論文誌 原稿作成用
  8. Name: texmacro-ieej
  9. Version: 2.7
  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. Transaction of The Institute of Electrical Engineers of Japan.
  23. Users can use this macro specifying "ieej" class.
  24. Including
  25. ieej.cls
  26. %description -l ja
  27. 電気学会論文誌 原稿作成用の teTeX で用いる追加マクロパッケージです。
  28. ieej クラスを指定して使用します。
  29. 以下のマクロが含まれています
  30. ieej.cls
  31. %define ieejsrcdir ieej%{version}/UNIXEUC
  32. %prep
  33. %setup -q -c -n %{name}-%{version}/
  34. %build
  35. (cd %ieejsrcdir
  36. %makepdf readme
  37. )
  38. %install
  39. %__rm -rf %{buildroot}
  40. %__mkdir_p %{build_texmf}/ptex/platex/ieej
  41. %__cp -a %ieejsrcdir/*.cls %{build_texmf}/ptex/platex/ieej
  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 %ieejsrcdir/*.{tex,pdf,1st}
  53. %{texmf}/ptex/platex/ieej
  54. %changelog
  55. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.7-1
  56. - initial build