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