source: projects/specs/trunk/t/texlive-collection-langcjk/texlive-collection-langcjk-vl.spec @ 9034

Revision 9034, 7.3 KB checked in by munepi, 10 years ago (diff)

synced tlnet to 20141028

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2014-3:
3## tlpdb2rpmspec collection-langcjk
4
5%global _use_internal_dependency_generator 0
6%global __find_provides %{nil}
7%global __find_requires %{nil}
8
9Summary: TeX Live: Chinese/Japanese/Korean (base)
10Summary(ja): TeX Live: Chinese/Japanese/Korean (base)
11Name: texlive-collection-langcjk
12Version: 2014
13Release: 3%{?_dist_release}
14License: BSD, GPL+, LPPL, LPPL 1.3, Freely redistributable without restriction
15Group: Applications/Publishing
16URL:http://www.tug.org/texlive/
17
18Source0: adobemapping.tar.xz
19Source1: c90.doc.tar.xz
20Source2: c90.source.tar.xz
21Source3: c90.tar.xz
22Source4: cjk.doc.tar.xz
23Source5: cjk.source.tar.xz
24Source6: cjk.tar.xz
25Source7: cjkpunct.doc.tar.xz
26Source8: cjkpunct.source.tar.xz
27Source9: cjkpunct.tar.xz
28Source10: cjkutils.doc.tar.xz
29Source11: cjkutils.tar.xz
30Source12: dnp.tar.xz
31Source13: garuda-c90.source.tar.xz
32Source14: garuda-c90.tar.xz
33Source15: norasi-c90.source.tar.xz
34Source16: norasi-c90.tar.xz
35Source17: xcjk2uni.doc.tar.xz
36Source18: xcjk2uni.source.tar.xz
37Source19: xcjk2uni.tar.xz
38Source20: zxjafont.doc.tar.xz
39Source21: zxjafont.tar.xz
40
41Requires: texlive = %{version}
42Requires: texlive-collection-basic = %{version}
43
44Requires(post):         texlive = %{version}
45Requires(postun):       texlive = %{version}
46
47BuildArch:      noarch
48Buildroot:      %{_tmppath}/%{name}-%{version}-root
49
50Vendor:         Project Vine
51Distribution:   Vine Linux
52Packager:       munepi
53
54%description
55The TeX Live software distribution offers a complete TeX system for a
56variety of Unix, Macintosh, Windows and other platforms. It
57encompasses programs for editing, typesetting, previewing and printing
58of TeX documents in many different languages, and a large collection
59of TeX macros and font libraries.
60
61The distribution includes extensive general documentation about TeX,
62as well as the documentation for the included software packages.
63
64This package is a collection of Chinese/Japanese/Korean (base):
65Packages supporting a combination of Chinese, Japanese, Korean,
66including macros, fonts, documentation.  Also Thai in the c90
67encoding, since there is some overlap in those fonts; standard
68Thai support is in collection-langother.  Additional packages
69for CJK are in their individual language collections.
70
71This package contains the following CTAN packages:
72adobemapping: Adobe cmap and pdfmapping files
73c90:
74cjk: CJK language support.
75cjkpunct: Adjust locations and kerning of CJK punctuation marks.
76cjkutils:
77dnp:
78garuda-c90: TeX support (from CJK) for the garuda font
79norasi-c90: TeX support (from CJK) for the norasi font
80xcjk2uni: Convert CJK characters to Unicode, in pdfTeX.
81zxjafont: Set up Japanese font families for XeLaTeX.
82
83%description -l ja
84TeX Live ソフトウェアディストリビューションは、
85さまざまな Unix, Macintosh, Windows、および
86他のプラットホームに対して完全な TeX システムを提供します。
87多くの異なった言語を含む TeX ドキュメントの
88編集、組版、閲覧、印刷するためのプログラム、
89そして、TeX マクロやフォントライブラリの大きなコレクションを
90同梱しています。
91
92このディストリビューションは
93同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
94TeX に関するたくさんの一般的なドキュメントを含んでいます。
95
96このパッケージは以下のようなパッケージ集です。
97Chinese/Japanese/Korean (base):
98Packages supporting a combination of Chinese, Japanese, Korean,
99including macros, fonts, documentation.  Also Thai in the c90
100encoding, since there is some overlap in those fonts; standard
101Thai support is in collection-langother.  Additional packages
102for CJK are in their individual language collections.
103
104このパッケージは以下の CTAN パッケージを含んでいます:
105adobemapping: Adobe cmap and pdfmapping files
106c90:
107cjk: CJK language support.
108cjkpunct: Adjust locations and kerning of CJK punctuation marks.
109cjkutils:
110dnp:
111garuda-c90: TeX support (from CJK) for the garuda font
112norasi-c90: TeX support (from CJK) for the norasi font
113xcjk2uni: Convert CJK characters to Unicode, in pdfTeX.
114zxjafont: Set up Japanese font families for XeLaTeX.
115
116%package doc
117Summary: TeX Live: Documentation files of %{name}
118Group: Applications/Publishing
119Requires: %{name} = %{version}-%{release}
120
121%description doc
122This package contains documentation files of %{name}.
123
124%prep
125%setup -c -n %{name}-%{version}
126%__tar -xvf %{SOURCE1}
127%__tar -xvf %{SOURCE2}
128%__tar -xvf %{SOURCE3}
129%__tar -xvf %{SOURCE4}
130%__tar -xvf %{SOURCE5}
131%__tar -xvf %{SOURCE6}
132%__tar -xvf %{SOURCE7}
133%__tar -xvf %{SOURCE8}
134%__tar -xvf %{SOURCE9}
135%__tar -xvf %{SOURCE10}
136%__tar -xvf %{SOURCE11}
137%__tar -xvf %{SOURCE12}
138%__tar -xvf %{SOURCE13}
139%__tar -xvf %{SOURCE14}
140%__tar -xvf %{SOURCE15}
141%__tar -xvf %{SOURCE16}
142%__tar -xvf %{SOURCE17}
143%__tar -xvf %{SOURCE18}
144%__tar -xvf %{SOURCE19}
145%__tar -xvf %{SOURCE20}
146%__tar -xvf %{SOURCE21}
147
148%build
149
150%install
151[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
152
153%__mkdir_p %{buildroot}%{_datadir}
154
155## move texmf-dist to /usr/share/texmf-dist
156[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
157
158## move texmf to /usr/share/texmf
159[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
160
161## move tlpkg to /usr/share/tlpkg
162[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
163
164## move all non-arch binaries to /usr/bin
165[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
166
167## move others into /usr/share/texmf-dist
168%__mkdir_p %{buildroot}%{_tl_texmfdist}
169%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
170%__rm -rf * ||:
171
172
173## remove duplicated files between texlive and texlive-collection-*
174## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
175## remove unpacked files
176x=(
177scripts/epstopdf/epstopdf.pl
178scripts/texlive/fmtutil.sh
179texconfig/tcfmgr
180web2c/texmf.cnf
181web2c/updmap-hdr.cfg
182web2c/updmap.cfg
183install-tl
184)
185if [ -d %{buildroot}%{_tl_texmfdist} ]; then
186pushd %{buildroot}%{_tl_texmfdist}
187%__rm -f ${x[@]} ||:
188popd
189fi
190
191## Files list
192find %{buildroot} -type f -or -type l | \
193    %__sed -e "s|%{buildroot}||g" > filelist.full
194
195find %{buildroot}%{_tl_texmfdist} -type d | \
196    %__sed -e "s|^%{buildroot}|%dir |" \
197           -e "s|$|/|"             >> filelist.full
198
199## subpackages
200grep "/texmf-dist/doc/" filelist.full > filelist.doc
201cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
202%__mv -f filelist.tmp filelist.full
203
204%clean
205%__rm -rf %{buildroot}
206
207%post
208%_tl_touch_run texhash
209%_tl_touch_run mtxrun
210
211[ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
212
213    %_tl_enable_map Map garuda-c90.map
214    %_tl_enable_map Map norasi-c90.map
215
216exit 0
217
218
219%postun
220if [ "$1" = 0 ]; then
221    %_tl_touch_run texhash
222
223    [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
224
225    %_tl_disable_map garuda-c90.map
226    %_tl_disable_map norasi-c90.map
227
228fi
229
230exit 0
231
232%posttrans
233%{_tl_exec_texhash}
234%{_tl_exec_mtxrun}
235%{_tl_exec_updmap}
236%{_tl_exec_fmtutil}
237exit 0
238
239
240%files -f filelist.full
241%defattr(-,root,root,-)
242
243%files -f filelist.doc doc
244%defattr(-,root,root,-)
245
246%changelog
247* Tue Oct 28 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-3
248- synced tlnet to 20141028
249
250* Sun Jul  6 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-2
251- synced tlnet to 20140706
252
253* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
254- synced tlnet to 20140524
Note: See TracBrowser for help on using the repository browser.