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