1 | ## -*- coding: utf-8-unix -*- |
---|
2 | %bcond_with firstbuild |
---|
3 | |
---|
4 | %if %{?_dist_release} == "vl6" |
---|
5 | Provides: jadetex |
---|
6 | Obsoletes: jadetex tetex dvipdfmx xdvik xdvik-motif |
---|
7 | %endif |
---|
8 | %if %{?_dist_release} == "vl5" |
---|
9 | Provides: jadetex |
---|
10 | Conflicts: tetex dvipdfmx xdvik xdvik-motif jvf |
---|
11 | %endif |
---|
12 | Obsoletes: tetex-latex tetex-afm tetex-type1 tetex-devel |
---|
13 | Obsoletes: pTeX pLaTeX2e pLaTeX2e_Macros dvipsk |
---|
14 | Obsoletes: dvipdfm texmacro-aps |
---|
15 | Obsoletes: makejvf <= 1.1a |
---|
16 | Conflicts: task-texmacro-phys < 1.1 |
---|
17 | |
---|
18 | %define tex_destdir %{_datadir} |
---|
19 | %define texmf %{tex_destdir}/texmf |
---|
20 | %define texlive_src %{tex_destdir}/texlive-sources |
---|
21 | %define build_tex_destdir %{buildroot}%{tex_destdir} |
---|
22 | %define build_texmf %{buildroot}%{texmf} |
---|
23 | |
---|
24 | %define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash |
---|
25 | %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash |
---|
26 | %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop |
---|
27 | ## NOTE: For only texlive-common, if %exec_fmtutil fails, |
---|
28 | ## we show the STDERR of %exec_fmtutil. |
---|
29 | %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null |
---|
30 | %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null |
---|
31 | %define vartexfonts %{_var}/lib/texmf |
---|
32 | |
---|
33 | %define __find_provides %{nil} |
---|
34 | %define __find_requires %{nil} |
---|
35 | %define __perl_provides %{nil} |
---|
36 | %define __perl_requires %{nil} |
---|
37 | |
---|
38 | Autoreq: 0 |
---|
39 | |
---|
40 | Summary: Common base for all TeX Live packages |
---|
41 | Summary(ja): TeX Live パッケージの共通ベース |
---|
42 | Name: texlive-common |
---|
43 | Version: 2009 |
---|
44 | Release: 6%{?_dist_release} |
---|
45 | License: distributable |
---|
46 | Group: Applications/Publishing |
---|
47 | URL: http://www.tug.org/texlive/ |
---|
48 | |
---|
49 | Requires: texlive = %{version} |
---|
50 | Requires(pre,post): texlive = %{version} |
---|
51 | Requires: texlive-collection-basic = %{version} |
---|
52 | Requires(post): texlive-collection-basic = %{version} |
---|
53 | Requires: texlive-collection-latex = %{version} |
---|
54 | Requires(post): texlive-collection-latex = %{version} |
---|
55 | Requires: texlive-collection-latexrecommended = %{version} |
---|
56 | Requires(post): texlive-collection-latexrecommended = %{version} |
---|
57 | Requires: texlive-collection-fontsrecommended = %{version} |
---|
58 | Requires(post): texlive-collection-fontsrecommended = %{version} |
---|
59 | |
---|
60 | #### $ pdftex -ini -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini |
---|
61 | ## dehypht-x-2009-06-19.tex |
---|
62 | Requires: texlive-collection-langgerman = %{version} |
---|
63 | Requires(post): texlive-collection-langgerman = %{version} |
---|
64 | ## catkoi |
---|
65 | Requires: texlive-collection-langcyrillic = %{version} |
---|
66 | Requires(post): texlive-collection-langcyrillic = %{version} |
---|
67 | |
---|
68 | #### $ xetex -ini -jobname=xelatex -progname=xelatex -etex xelatex.ini |
---|
69 | ## unicode-letters |
---|
70 | Requires: texlive-collection-xetex = %{version} |
---|
71 | Requires(post): texlive-collection-xetex = %{version} |
---|
72 | |
---|
73 | BuildArch: noarch |
---|
74 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
75 | |
---|
76 | Vendor: Project Vine |
---|
77 | Distribution: Vine Linux |
---|
78 | Packager: munepi |
---|
79 | |
---|
80 | |
---|
81 | %description |
---|
82 | The TeX Live software distribution offers a complete TeX system for a |
---|
83 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
84 | encompasses programs for editing, typesetting, previewing and printing |
---|
85 | of TeX documents in many different languages, and a large collection |
---|
86 | of TeX macros and font libraries. |
---|
87 | |
---|
88 | The distribution includes extensive general documentation about TeX, |
---|
89 | as well as the documentation for the included software packages. |
---|
90 | |
---|
91 | This package is a virtual package |
---|
92 | to provide a common base for all TeX Live packages. |
---|
93 | |
---|
94 | |
---|
95 | %description -l ja |
---|
96 | TeX Live ソフトウェアディストリビューションは、 |
---|
97 | さまざまな Unix, Macintosh, Windows、および |
---|
98 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
99 | 多くの異なった言語を含む TeX ドキュメントの |
---|
100 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
101 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
102 | 同梱しています。 |
---|
103 | |
---|
104 | このディストリビューションは |
---|
105 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
106 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
107 | |
---|
108 | このパッケージは TeX Live パッケージの共通ベースを |
---|
109 | 提供ための仮想パッケージです。 |
---|
110 | |
---|
111 | |
---|
112 | %files |
---|
113 | |
---|
114 | |
---|
115 | %post |
---|
116 | %{exec_texhash} |
---|
117 | |
---|
118 | updmap_lock=%{texmf}/updmap.lock |
---|
119 | # The packages required texlive-common contained the following maps. |
---|
120 | (cat<<EOF |
---|
121 | MixedMap cm.map |
---|
122 | MixedMap cmextra.map |
---|
123 | MixedMap cyrillic.map |
---|
124 | Map euler.map |
---|
125 | MixedMap latxfont.map |
---|
126 | MixedMap symbols.map |
---|
127 | MixedMap cmtext-bsr-interpolated.map |
---|
128 | MixedMap mflogo.map |
---|
129 | Map charter.map |
---|
130 | Map fpls.map |
---|
131 | Map pazo.map |
---|
132 | Map utopia.map |
---|
133 | Map zpeu.map |
---|
134 | MixedMap eurosym.map |
---|
135 | Map lm.map |
---|
136 | Map marvosym.map |
---|
137 | Map pxfonts.map |
---|
138 | MixedMap rsfs.map |
---|
139 | Map qag.map |
---|
140 | Map qbk.map |
---|
141 | Map qcr.map |
---|
142 | Map qcs.map |
---|
143 | Map qhv.map |
---|
144 | Map qpl.map |
---|
145 | Map qtm.map |
---|
146 | Map qzc.map |
---|
147 | MixedMap tipa.map |
---|
148 | Map txfonts.map |
---|
149 | MixedMap wasy.map |
---|
150 | Map cmcyr.map |
---|
151 | EOF |
---|
152 | ) | while read maptype map; do |
---|
153 | %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! ${maptype} ${map}" && \ |
---|
154 | echo -n " " && \ |
---|
155 | echo -n "Running updmap: enable ${map} ... " && \ |
---|
156 | %{exec_updmap} --nomkmap --enable ${maptype} ${map} >/dev/null 2>&1 && \ |
---|
157 | echo "done." && \ |
---|
158 | touch ${updmap_lock} |
---|
159 | done |
---|
160 | |
---|
161 | echo -n " " |
---|
162 | echo -n "Running updmap ... " && %{exec_updmap} >/dev/null 2>&1 && echo "done." |
---|
163 | rm -f %{texmf}/updmap.lock |
---|
164 | echo -n " " |
---|
165 | echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done." |
---|
166 | |
---|
167 | exit 0 |
---|
168 | |
---|
169 | |
---|
170 | # %postun |
---|
171 | # %{exec_texhash} |
---|
172 | # echo -n " " |
---|
173 | # echo -n "Running updmap ... " && %{exec_updmap} >/dev/null 2>&1 && echo "done." |
---|
174 | # echo -n " " |
---|
175 | # echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done." |
---|
176 | |
---|
177 | exit 0 |
---|
178 | |
---|
179 | |
---|
180 | %changelog |
---|
181 | * Mon May 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6 |
---|
182 | - added Requires(post): for all requirements of texlive-collection-* |
---|
183 | - added Requires: texlive |
---|
184 | |
---|
185 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5 |
---|
186 | - improved %%post |
---|
187 | - checked the maps containing Require(post) dependencies |
---|
188 | |
---|
189 | * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4 |
---|
190 | - added Requires(post): texlive |
---|
191 | - changed Requires(pre): -> Requires(post): for all requirements |
---|
192 | |
---|
193 | * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3 |
---|
194 | - added to remove %%{texmf}/updmap.lock in %%post |
---|
195 | - When texlive-common is installed, this lock generating |
---|
196 | texlive-collection-* leaves. |
---|
197 | - dropped %%postun |
---|
198 | - added some comments for the definition of %%exec_fmtutil |
---|
199 | |
---|
200 | * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2 |
---|
201 | - changed Requires: -> Requires(pre): for all requirements |
---|
202 | - merged dependencies of Provides:/Obsoletes: tags from texlive-vl.spec |
---|
203 | |
---|
204 | * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1 |
---|
205 | - TeX Live 2009 |
---|