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