1 # NOTE: remember to update i18n resources on each Source0 update!
2 # (tars are not versioned, but updated together with new ted version)
4 # TODO: fix locales in GTK+2 version (strings are encoded in legacy/mixed,
7 Summary: Ted - easy rich text processor
8 Summary(pl): Ted - prosty procesor tekstu
13 Group: X11/Applications/Editors
14 Source0: ftp://ftp.nluug.nl/pub/editors/ted/%{name}-%{version}.src.tar.gz
15 # Source0-md5: 51f90201dbc117906a7c4cde691d4606
16 Source1: ftp://ftp.nluug.nl/pub/editors/ted/Ted_cs_CZ.tar.gz
17 # Source1-md5: 5d654419e3466450e7b73ffd05efebbf
18 Source2: ftp://ftp.nluug.nl/pub/editors/ted/Ted_da_DK.tar.gz
19 # Source2-md5: 7e0730dee0caf533b5cbe3627a459939
20 Source3: ftp://ftp.nluug.nl/pub/editors/ted/Ted_de_DE.tar.gz
21 # Source3-md5: ced06a498be16d7bb4148b7ae96500a4
22 Source4: ftp://ftp.nluug.nl/pub/editors/ted/Ted_en_GB.tar.gz
23 # Source4-md5: 104408a5d5a515b6238a52a87c01d31f
24 Source5: ftp://ftp.nluug.nl/pub/editors/ted/Ted_es_AR.tar.gz
25 # Source5-md5: 546f412c0b9500559d5e815947aeb1f0
26 Source6: ftp://ftp.nluug.nl/pub/editors/ted/Ted_es_ES.tar.gz
27 # Source6-md5: 3c47ab39d07174f218a2c5945b8ea72f
28 Source7: ftp://ftp.nluug.nl/pub/editors/ted/Ted_eu_FR.tar.gz
29 # Source7-md5: cfdcbaca8df70fb59cda4bfa56713b79
30 Source8: ftp://ftp.nluug.nl/pub/editors/ted/Ted_fr_FR.tar.gz
31 # Source8-md5: ce75da9caacd300c558b009223399363
32 Source9: ftp://ftp.nluug.nl/pub/editors/ted/Ted_hu_HU.tar.gz
33 # Source9-md5: 9985453ce1b3170f8f04ee9f291a7476
34 Source10: ftp://ftp.nluug.nl/pub/editors/ted/Ted_it_IT.tar.gz
35 # Source10-md5: 688d5df679d69a99e85d30b6a5c06e0d
36 Source11: ftp://ftp.nluug.nl/pub/editors/ted/Ted_mg_MG.tar.gz
37 # Source11-md5: 2393e69231e0d973dbbbacf5a294ad59
38 Source12: ftp://ftp.nluug.nl/pub/editors/ted/Ted_nl_NL.tar.gz
39 # Source12-md5: 7db18dd2ae84fd7caf260119819d3b6b
40 Source13: ftp://ftp.nluug.nl/pub/editors/ted/Ted_no_NO.tar.gz
41 # Source13-md5: 328346a213fa14e4fbd8039b7c51afdb
42 Source14: ftp://ftp.nluug.nl/pub/editors/ted/Ted_oc_FR.tar.gz
43 # Source14-md5: 33eb4842034fb39cc7940cd5fd308ae9
44 Source15: ftp://ftp.nluug.nl/pub/editors/ted/Ted_pl_PL.tar.gz
45 # Source15-md5: daff2d8acc935f98935603168e55a038
46 Source16: ftp://ftp.nluug.nl/pub/editors/ted/Ted_pt_BR.tar.gz
47 # Source16-md5: a3a37037d043a130071ed6e83a81a63d
48 Source17: ftp://ftp.nluug.nl/pub/editors/ted/Ted_pt_PT.tar.gz
49 # Source17-md5: c56b9ca9e6b9d8849ced5b2de3872e65
50 Source18: ftp://ftp.nluug.nl/pub/editors/ted/Ted_ru_RU.tar.gz
51 # Source18-md5: 6677c6d7ed4d7a511b7cdd02df52dc9c
52 Source19: ftp://ftp.nluug.nl/pub/editors/ted/Ted_sk_SK.tar.gz
53 # Source19-md5: 443fb81c1de3109cae6239812aa2b933
54 Source20: ftp://ftp.nluug.nl/pub/editors/ted/Ted_sl_SI.tar.gz
55 # Source20-md5: 884c40f7eddab26d6b878521fb55b03d
56 Source21: ftp://ftp.nluug.nl/pub/editors/ted/Ted_sv_SE.tar.gz
57 # Source21-md5: 1a61f9dccd1682581c33e8f99a66ba01
58 Patch0: %{name}-paths.patch
59 Patch1: %{name}-gtklocale.patch
60 URL: http://www.nllgg.nl/Ted/
61 BuildRequires: XFree86-devel >= 4.0
62 BuildRequires: autoconf
63 BuildRequires: gtk+2-devel >= 1:2.0.0
64 BuildRequires: libpng-devel
65 BuildRequires: libjpeg-devel
66 BuildRequires: libtiff-devel
67 BuildRequires: motif-devel
68 BuildRequires: pkgconfig
69 Requires: %{name}-common = %{version}-%{release}
70 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72 %define _appdefsdir /usr/X11R6/lib/X11/app-defaults
75 Ted is a text processor running under X Window on Unix/Linux systems.
76 It was made to edit rich text documents on Unix/Linux in a WYSIWYG
77 way. It can edit MS RTF files and print to PostScript.
80 Ted jest procesorem tekstu dzia³aj±cym pod X Window pod unices. S³u¿y
81 do edycji dokumentów tekstowych w stylu WYSIWYG. Mo¿e obrabiaæ pliki w
82 formacie MS RTF i drukowaæ w PostScripcie.
85 Summary: Ted with GTK+-based interface
86 Summary(pl): Ted z interfejsem opartym na GTK+
87 Group: X11/Applications/Editors
88 Requires: %{name}-common = %{version}-%{release}
91 Ted with interface based on GTK+ instead of Motif.
93 %description gtk -l pl
94 Ted z interfejsem opartym na GTK+, a nie na Motifie.
97 Summary: Common package for both Ted interfaces
98 Summary(pl): Wspólny pakiet dla obu interfejsów Teda
99 Group: X11/Applications/Editors
102 Common package for both Ted interfaces.
104 %description common -l pl
105 Wspólny pakiet dla obu interfejsów Teda.
108 Summary: Czech spelling dictionary for Ted
109 Summary(pl): Czeski s³ownik ortograficzny dla Teda
110 Group: X11/Applications/Editors
111 Requires: %{name}-common = %{version}-%{release}
113 %description spelling-cs
114 Czech (cs_CZ) spelling dictionary for Ted.
116 %description spelling-cs -l pl
117 Czeski (cs_CZ) s³ownik ortograficzny dla Teda.
120 Summary: Danish spelling dictionary for Ted
121 Summary(pl): Duñski s³ownik ortograficzny dla Teda
122 Group: X11/Applications/Editors
123 Requires: %{name}-common = %{version}-%{release}
125 %description spelling-da
126 Danish (da_DK) spelling dictionary for Ted.
128 %description spelling-da -l pl
129 Duñski (da_DK) s³ownik ortograficzny dla Teda.
132 Summary: German spelling dictionary for Ted
133 Summary(pl): Niemiecki s³ownik ortograficzny dla Teda
134 Group: X11/Applications/Editors
135 Requires: %{name}-common = %{version}-%{release}
137 %description spelling-de
138 German (de_DE) spelling dictionary for Ted.
140 %description spelling-da -l pl
141 Niemiecki (de_DE) s³ownik ortograficzny dla Teda.
143 %package spelling-en_GB
144 Summary: English (UK) spelling dictionary for Ted
145 Summary(pl): Angielski (brytyjski) s³ownik ortograficzny dla Teda
146 Group: X11/Applications/Editors
147 Requires: %{name}-common = %{version}-%{release}
149 %description spelling-en_GB
150 English (UK - en_GB) spelling dictionary for Ted.
152 %description spelling-en_GB -l pl
153 Angielski (brytyjski - en_GB) s³ownik ortograficzny dla Teda.
155 %package spelling-en_US
156 Summary: English (US) spelling dictionary for Ted
157 Summary(pl): Angielski (amerykañski) s³ownik ortograficzny dla Teda
158 Group: X11/Applications/Editors
159 Requires: %{name}-common = %{version}-%{release}
161 %description spelling-en_US
162 English (en_US) spelling dictionary for Ted.
164 %description spelling-en_US -l pl
165 Angielski (amerykañski - en_US) s³ownik ortograficzny dla Teda.
168 Summary: Spanish spelling dictionary for Ted
169 Summary(pl): Hiszpañski s³ownik ortograficzny dla Teda
170 Group: X11/Applications/Editors
171 Requires: %{name}-common = %{version}-%{release}
173 %description spelling-es
174 Spanish (es_ES) spelling dictionary for Ted.
176 %description spelling-es -l pl
177 Hiszpañski (es_ES) s³ownik ortograficzny dla Teda.
180 Summary: French spelling dictionary for Ted
181 Summary(pl): Francuski s³ownik ortograficzny dla Teda
182 Group: X11/Applications/Editors
183 Requires: %{name}-common = %{version}-%{release}
185 %description spelling-fr
186 French (fr_FR) spelling dictionary for Ted.
188 %description spelling-fr -l pl
189 Francuski (fr_FR) s³ownik ortograficzny dla Teda.
192 Summary: Italian spelling dictionary for Ted
193 Summary(pl): W³oski s³ownik ortograficzny dla Teda
194 Group: X11/Applications/Editors
195 Requires: %{name}-common = %{version}-%{release}
197 %description spelling-it
198 Italian (it_IT) spelling dictionary for Ted.
200 %description spelling-it -l pl
201 W³oski (it_IT) s³ownik ortograficzny dla Teda.
204 Summary: Dutch spelling dictionary for Ted
205 Summary(pl): Holenderski s³ownik ortograficzny dla Teda
206 Group: X11/Applications/Editors
207 Requires: %{name}-common = %{version}-%{release}
209 %description spelling-nl
210 Dutch (nl_NL) spelling dictionary for Ted.
212 %description spelling-nl -l pl
213 Holenderski (nl_NL) s³ownik ortograficzny dla Teda.
216 Summary: Norwegian spelling dictionary for Ted
217 Summary(pl): Norweski s³ownik ortograficzny dla Teda
218 Group: X11/Applications/Editors
219 Requires: %{name}-common = %{version}-%{release}
221 %description spelling-no
222 Norwegian (no_NO) spelling dictionary for Ted.
224 %description spelling-no -l pl
225 Norweski (no_NO) s³ownik ortograficzny dla Teda.
228 Summary: Polish spelling dictionary for Ted
229 Summary(pl): Polski s³ownik ortograficzny dla Teda
230 Group: X11/Applications/Editors
231 Requires: %{name}-common = %{version}-%{release}
233 %description spelling-pl
234 Polish (pl_PL) spelling dictionary for Ted.
236 %description spelling-pl -l pl
237 Polski (pl_PL) s³ownik ortograficzny dla Teda.
240 Summary: Portuguese spelling dictionary for Ted
241 Summary(pl): Portugalski s³ownik ortograficzny dla Teda
242 Group: X11/Applications/Editors
243 Requires: %{name}-common = %{version}-%{release}
245 %description spelling-pt
246 Portuguese (pt_PT) spelling dictionary for Ted.
248 %description spelling-pt -l pl
249 Portugalski (pt_PT) s³ownik ortograficzny dla Teda.
252 Summary: Russian spelling dictionary for Ted
253 Summary(pl): Rosyjski s³ownik ortograficzny dla Teda
254 Group: X11/Applications/Editors
255 Requires: %{name}-common = %{version}-%{release}
257 %description spelling-ru
258 Russian (ru_RU) spelling dictionary for Ted.
260 %description spelling-ru -l pl
261 Rosyjski (ru_RU) s³ownik ortograficzny dla Teda.
264 Summary: Slovak spelling dictionary for Ted
265 Summary(pl): S³owacki s³ownik ortograficzny dla Teda
266 Group: X11/Applications/Editors
267 Requires: %{name}-common = %{version}-%{release}
269 %description spelling-sk
270 Slovak (sk_SK) spelling dictionary for Ted.
272 %description spelling-sk -l pl
273 S³owacki (sk_SK) s³ownik ortograficzny dla Teda.
276 Summary: Slovene spelling dictionary for Ted
277 Summary(pl): S³oweñski s³ownik ortograficzny dla Teda
278 Group: X11/Applications/Editors
279 Requires: %{name}-common = %{version}-%{release}
281 %description spelling-sl
282 Slovene (sl_SI) spelling dictionary for Ted.
284 %description spelling-sl -l pl
285 S³oweñski (sl_SI) s³ownik ortograficzny dla Teda.
288 Summary: Swedish spelling dictionary for Ted
289 Summary(pl): Szwedzki s³ownik ortograficzny dla Teda
290 Group: X11/Applications/Editors
291 Requires: %{name}-common = %{version}-%{release}
293 %description spelling-sv
294 Swedish (sv_SE) spelling dictionary for Ted.
296 %description spelling-sv -l pl
297 Szwedzki (sv_SE) s³ownik ortograficzny dla Teda.
300 %setup -q -n Ted-%{version} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a21
305 for d in bitmap ind libreg appUtil appFrame Ted; do
312 %{__make} compile.shared
313 mv -f Ted/Ted Ted.motif
315 for d in appFrame Ted; do
322 %{__make} compile.shared
325 rm -rf $RPM_BUILD_ROOT
326 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/Ted/{afm,ind}}
329 tar xf TedBindist.tar
332 install Ted.motif $RPM_BUILD_ROOT%{_bindir}/Ted
333 install Ted/Ted $RPM_BUILD_ROOT%{_bindir}/Ted.gtk
334 install tedPackage/afm/* $RPM_BUILD_ROOT%{_datadir}/Ted/afm
335 install tedPackage/ind/* ind/*.ind $RPM_BUILD_ROOT%{_datadir}/Ted/ind
336 install tedPackage/Ted/TedDocument-en_US.rtf $RPM_BUILD_ROOT%{_datadir}/Ted
339 install TedDocument-*.rtf $RPM_BUILD_ROOT%{_datadir}/Ted
341 # pt is pt_BR here, but there is no pt_PT translation
342 for f in cs da de eu fr hu it mg nl no oc pl pt sk ; do
343 tar xf Ted_${f}_*.tar
344 install -d $RPM_BUILD_ROOT%{_appdefsdir}/${f}
345 # comment out evil paths
346 sed -e 's@^\(Ted.*/usr\)@!\1@' usr/lib/X11/${f}_*/app-defaults/Ted \
347 > $RPM_BUILD_ROOT%{_appdefsdir}/${f}/Ted
350 tar xf Ted_es_AR.ad.tar
351 install -d $RPM_BUILD_ROOT%{_appdefsdir}/es_AR
352 sed -e 's@^\(Ted.*/usr\)@!\1@' usr/lib/X11/es_AR/app-defaults/Ted \
353 > $RPM_BUILD_ROOT%{_appdefsdir}/es_AR/Ted
354 tar xf Ted_es_ES.ad.tar
355 install -d $RPM_BUILD_ROOT%{_appdefsdir}/es
356 sed -e 's@^\(Ted.*/usr\)@!\1@' usr/lib/X11/es_AR/app-defaults/Ted \
357 > $RPM_BUILD_ROOT%{_appdefsdir}/es/Ted
359 # use latin2 font for pl_PL messages
360 echo 'Ted*fontList: -adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-iso8859-2' \
361 >> $RPM_BUILD_ROOT%{_appdefsdir}/pl/Ted
364 rm -rf $RPM_BUILD_ROOT
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_bindir}/Ted
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_bindir}/Ted.gtk
375 %defattr(644,root,root,755)
379 %dir %{_datadir}/Ted/ind
380 %lang(de) %{_datadir}/Ted/TedDocument-de_DE.rtf
381 %{_datadir}/Ted/TedDocument-en_US.rtf
382 %lang(fr) %{_datadir}/Ted/TedDocument-fr_FR.rtf
383 %lang(mg) %{_datadir}/Ted/TedDocument-mg_MG.rtf
384 %lang(cs) %{_appdefsdir}/cs/Ted
385 %lang(da) %{_appdefsdir}/da/Ted
386 %lang(de) %{_appdefsdir}/de/Ted
387 %lang(es) %{_appdefsdir}/es/Ted
388 %lang(es_AR) %{_appdefsdir}/es_AR/Ted
389 %lang(eu) %{_appdefsdir}/eu/Ted
390 %lang(fr) %{_appdefsdir}/fr/Ted
391 %lang(hu) %{_appdefsdir}/hu/Ted
392 %lang(it) %{_appdefsdir}/it/Ted
393 %lang(mg) %{_appdefsdir}/mg/Ted
394 %lang(nl) %{_appdefsdir}/nl/Ted
395 %lang(nb) %{_appdefsdir}/no/Ted
396 %lang(oc) %{_appdefsdir}/oc/Ted
397 %lang(pl) %{_appdefsdir}/pl/Ted
398 %lang(pt) %{_appdefsdir}/pt/Ted
399 %lang(sk) %{_appdefsdir}/sk/Ted
402 %defattr(644,root,root,755)
403 %{_datadir}/Ted/ind/Czech.ind
406 %defattr(644,root,root,755)
407 %{_datadir}/Ted/ind/Danish.ind
410 %defattr(644,root,root,755)
411 %{_datadir}/Ted/ind/German.ind
413 %files spelling-en_GB
414 %defattr(644,root,root,755)
415 %{_datadir}/Ted/ind/UK_English.ind
417 %files spelling-en_US
418 %defattr(644,root,root,755)
419 %{_datadir}/Ted/ind/US_English.ind
422 %defattr(644,root,root,755)
423 %{_datadir}/Ted/ind/Spanish.ind
426 %defattr(644,root,root,755)
427 %{_datadir}/Ted/ind/French.ind
430 %defattr(644,root,root,755)
431 %{_datadir}/Ted/ind/Italian.ind
434 %defattr(644,root,root,755)
435 %{_datadir}/Ted/ind/Dutch.ind
438 %defattr(644,root,root,755)
439 %{_datadir}/Ted/ind/Norwegian.ind
442 %defattr(644,root,root,755)
443 %{_datadir}/Ted/ind/Polish.ind
446 %defattr(644,root,root,755)
447 %{_datadir}/Ted/ind/Portuguese.ind
450 %defattr(644,root,root,755)
451 %{_datadir}/Ted/ind/Russian.ind
454 %defattr(644,root,root,755)
455 %{_datadir}/Ted/ind/Slovak.ind
458 %defattr(644,root,root,755)
459 %{_datadir}/Ted/ind/Slovene.ind
462 %defattr(644,root,root,755)
463 %{_datadir}/Ted/ind/Swedish.ind