texmacro-luatexja-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. %global gitsnapshot 20111204
  2. %define tex_destdir %{_datadir}
  3. %define texmf %{_prefix}/share/texmf
  4. %define texlive_src %{tex_destdir}/texlive-sources
  5. %define build_tex_destdir %{buildroot}%{tex_destdir}
  6. %define build_texmf %{buildroot}%{texmf}
  7. %define build_texlive_src %{buildroot}%{tex_destdir}-sources
  8. %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
  9. Summary: A macro package to typeset Japanese texts using Lua(La)TeX
  10. Name: texmacro-luatexja
  11. Version: 0.0.0
  12. Release: 1%{?gitsnapshot:.git%{gitsnapshot}}%{?_dist_release}
  13. License: distributable
  14. Group: Applications/Publishing
  15. URL: http://sourceforge.jp/projects/luatex-ja/
  16. Source0: luatexja-%{version}%{?gitsnapshot:.git%{gitsnapshot}}.tar.xz
  17. Source10: luatexja-snapshot.sh
  18. Requires: texlive-common >= 2011
  19. Requires: texlive-collection-luatex >= 2011
  20. BuildArch: noarch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: munepi
  25. %description
  26. LuaTeX-ja is a macro package to typeset Japanese texts using Lua(La)TeX.
  27. A goal of this project is to provide an equal or superior typesetting
  28. system to pTeX, which is a traditional standard Japanese TeX engine.
  29. %description -l ja
  30. Lua(La)TeX を用いて pTeX 同様の日本語処理を行うマクロの作成を目的とした
  31. プロジェクトです.
  32. %prep
  33. %setup -q -n luatexja-%{version}
  34. %build
  35. %install
  36. %__rm -rf $RPM_BUILD_ROOT
  37. ## core components
  38. %__mkdir_p %{build_texmf}/tex/luatex/luatexja
  39. %__cp -ra src/* %{build_texmf}/tex/luatex/luatexja || exit 1
  40. ## class files
  41. %__mkdir_p %{build_texmf}/tex/lualatex/luatexja
  42. %__mv %{build_texmf}/tex/luatex/luatexja/ltj{,s}classes %{build_texmf}/tex/lualatex/luatexja/ || exit 1
  43. ## doc
  44. %__mkdir_p %{build_texmf}/doc/luatexja
  45. %__cp -a doc/* %{build_texmf}/doc/luatexja/ || exit 1
  46. %__cp -ra test tool %{build_texmf}/doc/luatexja/ || exit 1
  47. %clean
  48. %__rm -rf $RPM_BUILD_ROOT
  49. %post
  50. %{exec_texhash}
  51. %postun
  52. if [ "$1" = 0 ]; then
  53. %{exec_texhash}
  54. fi
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc
  58. %{texmf}/tex/luatex/luatexja
  59. %{texmf}/tex/lualatex/luatexja
  60. %{texmf}/doc/luatexja
  61. %changelog
  62. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-1.git20111204
  63. - initial build