source: projects/specs/trunk/t/texmacro-luatexja/texmacro-luatexja-vl.spec @ 5262

Revision 5262, 2.2 KB checked in by munepi, 12 years ago (diff)

NEW: texmacro-luatexja

Line 
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
12Summary: A macro package to typeset Japanese texts using Lua(La)TeX
13Name: texmacro-luatexja
14Version: 0.0.0
15Release: 1%{?gitsnapshot:.git%{gitsnapshot}}%{?_dist_release}
16License: distributable
17Group: Applications/Publishing
18URL: http://sourceforge.jp/projects/luatex-ja/
19Source0: luatexja-%{version}%{?gitsnapshot:.git%{gitsnapshot}}.tar.xz
20Source10: luatexja-snapshot.sh
21
22Requires: texlive-common >= 2011
23Requires: texlive-collection-luatex >= 2011
24
25BuildArch: noarch
26BuildRoot: %{_tmppath}/%{name}-%{version}-root
27
28Vendor:       Project Vine
29Distribution: Vine Linux
30Packager:     munepi
31
32
33%description
34LuaTeX-ja is a macro package to typeset Japanese texts using Lua(La)TeX.
35A goal of this project is to provide an equal or superior typesetting
36system to pTeX, which is a traditional standard Japanese TeX engine.
37
38%description -l ja
39Lua(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
71if [ "$1" = 0 ]; then
72    %{exec_texhash}
73fi
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
Note: See TracBrowser for help on using the repository browser.