1 | %if %{?_dist_release} != "vl5" |
---|
2 | exit 1 |
---|
3 | %endif |
---|
4 | |
---|
5 | %define tlversion 2009 |
---|
6 | |
---|
7 | %define texmf %{_datadir}/texmf |
---|
8 | %define build_texmf %{buildroot}%{texmf} |
---|
9 | %define vinepl vine.pls-1.2 |
---|
10 | %define tfmdir %{texmf}/fonts/tfm/ptex |
---|
11 | |
---|
12 | %define exec_texhash [ -x %{_bindir}/texhash ] && /usr/bin/env - %{_bindir}/texhash 2> /dev/null |
---|
13 | |
---|
14 | #% define pltotf %{_bindir}/pltotf |
---|
15 | %define pltotf %{_bindir}/ppltotf |
---|
16 | |
---|
17 | %if %{?_dist_release} == "vl5" |
---|
18 | Conflicts: jvf |
---|
19 | %endif |
---|
20 | |
---|
21 | Summary: Japanese Virtual Fonts |
---|
22 | Summary(ja): 日本語仮想フォントです. |
---|
23 | Name: texlive-jvf |
---|
24 | Version: 2.0 |
---|
25 | Release: 6%{?_dist_release} |
---|
26 | License: distributable |
---|
27 | Group: Applications/Publishing |
---|
28 | Source0: %{vinepl}.tar.gz |
---|
29 | Source1: http://www.matsusaka-u.ac.jp/~okumura/jsclasses/jis-pl.zip |
---|
30 | Requires(post): sh-utils |
---|
31 | Requires: texlive = %{tlversion} |
---|
32 | BuildRequires: nkf |
---|
33 | BuildRequires: unzip |
---|
34 | BuildRequires: texlive = %{tlversion} |
---|
35 | ##!! %{_bindir}/pltotf %{tfmdir}/min5.tfm are provided by tetex |
---|
36 | ##BuildRequires: %{_bindir}/pltotf %{tfmdir}/min5.tfm |
---|
37 | ## /usr/bin/makejvf is provided from tetex, which is with ptexenc. |
---|
38 | ##BuildRequires: makejvf |
---|
39 | BuildArch: noarch |
---|
40 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
41 | Vendor: Project Vine |
---|
42 | Distribution: Vine Linux |
---|
43 | |
---|
44 | %description |
---|
45 | Japanese Virtual Fonts required by dvipsk built by makejvf. |
---|
46 | |
---|
47 | %description -l ja |
---|
48 | dvipsk の実行に必要な, 日本語仮想フォント(virtual fonts)、 |
---|
49 | 多書体用フォントメトリックです。 |
---|
50 | |
---|
51 | %prep |
---|
52 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
53 | |
---|
54 | %setup -q -n %{vinepl} |
---|
55 | %__unzip -oqq %{SOURCE1} |
---|
56 | |
---|
57 | %build |
---|
58 | ## Macro definition |
---|
59 | mkvf(){ # <$1: jfm name> <$2: jfm name of PS font> |
---|
60 | for size in 5 6 7 8 9 10 ; do |
---|
61 | %{_bindir}/makejvf %{tfmdir}/$1${size}.tfm $2 || exit 1 |
---|
62 | done |
---|
63 | } |
---|
64 | |
---|
65 | ## now, build basic vf fonts |
---|
66 | mkvf min rml |
---|
67 | mkvf tmin rmlv |
---|
68 | mkvf goth gbm |
---|
69 | mkvf tgoth gbmv |
---|
70 | |
---|
71 | # jis font metric and vf fonts |
---|
72 | for pl in jis jisi tjis tjisi \ |
---|
73 | min mini tmin tmini; do |
---|
74 | nkf --jis --overwrite $pl.pl |
---|
75 | %{pltotf} $pl.pl |
---|
76 | done |
---|
77 | %__ln_s -f jis.tfm jisg.tfm |
---|
78 | %__ln_s -f jisi.tfm jisgi.tfm |
---|
79 | %__ln_s -f tjis.tfm tjisg.tfm |
---|
80 | %__ln_s -f tjisi.tfm tjisgi.tfm |
---|
81 | |
---|
82 | %{_bindir}/makejvf jis.tfm rml |
---|
83 | %{_bindir}/makejvf tjis.tfm rmlv # 縦 |
---|
84 | %{_bindir}/makejvf jisi.tfm rmli # italic |
---|
85 | %{_bindir}/makejvf tjisi.tfm rmlvi |
---|
86 | |
---|
87 | %{_bindir}/makejvf jisg.tfm gbm |
---|
88 | %{_bindir}/makejvf tjisg.tfm gbmv |
---|
89 | %{_bindir}/makejvf jisgi.tfm gbmi |
---|
90 | %{_bindir}/makejvf tjisgi.tfm gbmvi |
---|
91 | |
---|
92 | ## new JIS font metric |
---|
93 | # make *.tfm |
---|
94 | for pl in jis jisn jis-v jisn-v; do |
---|
95 | %{pltotf} $pl.pl |
---|
96 | done |
---|
97 | %__ln_s -f jis.tfm jisg.tfm |
---|
98 | %__ln_s -f jis-v.tfm jisg-v.tfm |
---|
99 | %__ln_s -f jisn.tfm jisgn.tfm |
---|
100 | %__ln_s -f jisn-v.tfm jisgn-v.tfm |
---|
101 | |
---|
102 | # make *.vf |
---|
103 | %{_bindir}/makejvf jis.tfm rml |
---|
104 | %{_bindir}/makejvf jisn.tfm rmln # 中点修正 |
---|
105 | %{_bindir}/makejvf jis-v.tfm rmlv # 縦 |
---|
106 | %{_bindir}/makejvf jisn-v.tfm rmlnv |
---|
107 | |
---|
108 | %{_bindir}/makejvf jisg.tfm gbm |
---|
109 | %{_bindir}/makejvf jisgn.tfm gbmn |
---|
110 | %{_bindir}/makejvf jisg-v.tfm gbmv |
---|
111 | %{_bindir}/makejvf jisgn-v.tfm gbmnv |
---|
112 | |
---|
113 | |
---|
114 | # extrafonts metric and vf fonts |
---|
115 | for i in goth gyo pop lei dfmin dfgt dfgyo dfpop dflei lxmin lxgt lxpop lxmgt lxgtb dfminb dfkaib dfpostb dffry dfbrrb ; do |
---|
116 | %__ln_s -f min.tfm ${i}.tfm |
---|
117 | %__ln_s -f mini.tfm ${i}i.tfm |
---|
118 | %__ln_s -f tmin.tfm t${i}.tfm |
---|
119 | %__ln_s -f tmini.tfm t${i}i.tfm |
---|
120 | done |
---|
121 | for i in min goth gyo pop lei dfmin dfgt dfgyo dfpop dflei lxmin lxgt lxpop lxmgt lxgtb dfminb dfkaib dfpostb dffry dfbrrb; do |
---|
122 | %{_bindir}/makejvf ${i}.tfm ${i} |
---|
123 | %{_bindir}/makejvf ${i}i.tfm ${i}i |
---|
124 | %{_bindir}/makejvf t${i}.tfm t${i} |
---|
125 | %{_bindir}/makejvf t${i}i.tfm t${i}i |
---|
126 | |
---|
127 | # %__ln_s -f ${i}.vf df${i}.vf |
---|
128 | # %__ln_s -f ${i}i.vf df${i}i.vf |
---|
129 | # %__ln_s -f t${i}.vf dft${i}.vf |
---|
130 | # %__ln_s -f t${i}i.vf dft${i}i.vf |
---|
131 | done |
---|
132 | |
---|
133 | # change same file to symbolic link |
---|
134 | for f in *.vf; do |
---|
135 | if [ ! -L $f ]; then |
---|
136 | for g in *.vf; do |
---|
137 | if [ ! -L $g -a $f != $g ]; then |
---|
138 | cmp $f $g > /dev/null && (%__rm -f $g; %__ln_s $f $g) |
---|
139 | fi |
---|
140 | done |
---|
141 | fi |
---|
142 | done |
---|
143 | |
---|
144 | |
---|
145 | %install |
---|
146 | %__rm -rf $RPM_BUILD_ROOT |
---|
147 | %__mkdir_p %{build_texmf}/fonts/{tfm,source,vf}/ptex |
---|
148 | %__cp -dfp *.tfm %{build_texmf}/fonts/tfm/ptex/ |
---|
149 | %__cp -dfp *.pl %{build_texmf}/fonts/source/ptex/ |
---|
150 | %__cp -dfp *.vf %{build_texmf}/fonts/vf/ptex/ |
---|
151 | |
---|
152 | %clean |
---|
153 | %__rm -rf $RPM_BUILD_ROOT |
---|
154 | |
---|
155 | %post |
---|
156 | %{exec_texhash} |
---|
157 | exit 0 |
---|
158 | |
---|
159 | %postun |
---|
160 | if [ "$1" = 0 ]; then |
---|
161 | %{exec_texhash} |
---|
162 | fi |
---|
163 | exit 0 |
---|
164 | |
---|
165 | |
---|
166 | %files |
---|
167 | %defattr(-,root,root) |
---|
168 | %doc README |
---|
169 | %{texmf}/fonts/tfm/ptex/ |
---|
170 | %{texmf}/fonts/source/ptex/ |
---|
171 | %{texmf}/fonts/vf/ptex/ |
---|
172 | |
---|
173 | |
---|
174 | %changelog |
---|
175 | * Fri Dec 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-6 |
---|
176 | - initial build based on jvf-2.0-5vl6 |
---|
177 | - for vl5, added Conflicts: jvf |
---|
178 | - for vl5 + texlive, renamed to texlive-jvf |
---|
179 | |
---|
180 | * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-5 |
---|
181 | - use texlive-2009 + ptexlive-20100322 |
---|
182 | - dropped Requires: tetex, BuildRequires: tetex |
---|
183 | - addeded Requires: texlive, BuildRequires: texlive |
---|
184 | - use some rpm macros |
---|
185 | |
---|
186 | * Wed Oct 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-4 |
---|
187 | - added BuildRequires: unzip |
---|
188 | - dropped BuildRequires: %%{_prefix}/bin/pltotf %%{tfmdir}/min5.tfm |
---|
189 | - %%{_prefix}/bin/pltotf %%{tfmdir}/min5.tfm are provided by tetex |
---|
190 | |
---|
191 | * Sun Sep 27 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-3 |
---|
192 | - added BuildRequires: nkf |
---|
193 | - dropped BuildRequires: makejvf |
---|
194 | - /usr/bin/makejvf is provided from tetex, which is with ptexenc |
---|
195 | - converted euc-encode to jis-encode for *.pl in vine.pls-1.2 |
---|
196 | |
---|
197 | * Sun Jan 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-2 |
---|
198 | - spec in utf8 (again) |
---|
199 | |
---|
200 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 2.0-1vl5 |
---|
201 | - applied new versioning policy, spec in utf-8 |
---|
202 | |
---|
203 | * Fri Jan 14 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1 |
---|
204 | - add new dynafont for Vine Linux 3.1CR |
---|
205 | |
---|
206 | * Fri Apr 18 2003 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 1.1a-0vl3 |
---|
207 | - change tetex-ptex -> tetex |
---|
208 | |
---|
209 | * Mon Mar 25 2002 Jun Nishii <jun@vinelinux.org> 1.1a-0vl2 |
---|
210 | - added symlinks for lxricoh fonts |
---|
211 | |
---|
212 | * Sat Mar 24 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> |
---|
213 | - 1.1a-0vl1 |
---|
214 | - use symbolic link for same *.vf |
---|
215 | |
---|
216 | * Sat Jan 20 2001 Jun Nishii <jun@vinelinux.org> |
---|
217 | - 1.0-6 |
---|
218 | - cp jis.pl min.pl and fix glue for "「,(,..." in min.pl to use DynaFonts |
---|
219 | Should I rename min.* as dyna.*? |
---|
220 | |
---|
221 | * Fri Jan 21 2000 Jun Nishii <jun@vinelinux.org> |
---|
222 | - 1.0-5 |
---|
223 | - make vfs for dynafonts |
---|
224 | - tjis, tjisi, tmin, tmini,... |
---|
225 | - correct installation of tfm |
---|
226 | |
---|
227 | * Fri Jan 7 2000 Jun Nishii <jun@vinelinux.org> |
---|
228 | - install makejvf |
---|
229 | |
---|
230 | * Fri Oct 29 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
231 | - change group |
---|
232 | - add defattr(-,root.root) |
---|
233 | |
---|
234 | * Thu Jul 13 1999 Jun Nishii <jun@flatout.org> |
---|
235 | - include jis fonts |
---|
236 | |
---|
237 | * Mon Feb 8 1999 Jun Nishii <jun@flatout.org> |
---|
238 | - build vfs by makejvf |
---|
239 | - obsoletes vfkanji |
---|