]> git.pld-linux.org Git - SPECS.git/blob - ted.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / ted.spec
1 # NOTE: remember to update i18n resources on each Source0 update!
2 #       (tars are not versioned, but updated together with new ted version)
3 #
4 # TODO: fix locales in GTK+2 version (strings are encoded in legacy/mixed,
5 #       gtk+2 expects utf-8)
6 #
7 Summary:        Ted - easy rich text processor
8 Summary(pl.UTF-8):      Ted - prosty procesor tekstu
9 Name:           ted
10 Version:        2.17
11 Release:        9
12 License:        GPL
13 Group:          X11/Applications/Editors
14 Source0:        ftp://ftp.nluug.nl/pub/editors/ted/%{name}-%{version}.src.tar.gz
15 # Source0-md5:  8adc2ab0a67954b2b5068c9be243c82d
16 Source1:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_cs_CZ.tar.gz
17 # Source1-md5:  d0e5bb73ceda6398ff76e44893e15437
18 Source2:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_da_DK.tar.gz
19 # Source2-md5:  710cbd18fca03b29cdeb0d7ed15480ee
20 Source3:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_de_DE.tar.gz
21 # Source3-md5:  896b464240f2a02128f92a7f652ec1c8
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:  8cb7ba7ad35d48bb5a1315bc75b0685d
26 Source6:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_es_ES.tar.gz
27 # Source6-md5:  37153f84ae05d25d418521a5f9650ef7
28 Source7:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_eu_FR.tar.gz
29 # Source7-md5:  6c23467ea1e6953f627d3ed8a78e7c15
30 Source8:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_fr_FR.tar.gz
31 # Source8-md5:  45b8e048b1bcf55766ecf6e8852b153d
32 Source9:        ftp://ftp.nluug.nl/pub/editors/ted/Ted_hu_HU.tar.gz
33 # Source9-md5:  75686a70dc892e68f554cbd0045cbc72
34 Source10:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_it_IT.tar.gz
35 # Source10-md5: 7596605fc2986191c1bf2f0f35556d49
36 Source11:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_mg_MG.tar.gz
37 # Source11-md5: 2f42eed6105a6ba42b09efbb84686be8
38 Source12:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_nl_NL.tar.gz
39 # Source12-md5: 4a2a707581b8c5589b0df2840f528595
40 Source13:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_no_NO.tar.gz
41 # Source13-md5: 1fc60a90e5d4a68a4e2db335b0e5e500
42 Source14:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_oc_FR.tar.gz
43 # Source14-md5: 4149bcf3f56d03b7dfee724444da93e1
44 Source15:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_pl_PL.tar.gz
45 # Source15-md5: 56dae2bd3c9d99a280c12bfeab1e4bd7
46 Source16:       ftp://ftp.nluug.nl/pub/editors/ted/Ted_pt_BR.tar.gz
47 # Source16-md5: 6068db5077102768b6351ba24707ea59
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: c001543f5b6822b527e54435c97c14c4
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 Patch2:         %{name}-gtk.patch
61 Patch3:         %{name}-pl.patch
62 Patch4:         %{name}-libpng15.patch
63 URL:            http://www.nllgg.nl/Ted/
64 BuildRequires:  autoconf >= 2.59-9
65 BuildRequires:  gtk+2-devel >= 1:2.0.0
66 BuildRequires:  libpng-devel
67 BuildRequires:  libjpeg-devel
68 BuildRequires:  libtiff-devel
69 BuildRequires:  motif-devel
70 BuildRequires:  pkgconfig
71 BuildRequires:  xorg-lib-libXp-devel
72 BuildRequires:  xorg-lib-libXpm-devel
73 BuildRequires:  xorg-lib-libXmu-devel
74 Requires:       %{name}-common = %{version}-%{release}
75 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
77 %description
78 Ted is a text processor running under X Window on Unix/Linux systems.
79 It was made to edit rich text documents on Unix/Linux in a WYSIWYG
80 way. It can edit MS RTF files and print to PostScript.
81
82 %description -l pl.UTF-8
83 Ted jest procesorem tekstu działającym pod X Window pod unices. Służy
84 do edycji dokumentów tekstowych w stylu WYSIWYG. Może obrabiać pliki w
85 formacie MS RTF i drukować w PostScripcie.
86
87 %package gtk
88 Summary:        Ted with GTK+-based interface
89 Summary(pl.UTF-8):      Ted z interfejsem opartym na GTK+
90 Group:          X11/Applications/Editors
91 Requires:       %{name}-common = %{version}-%{release}
92
93 %description gtk
94 Ted with interface based on GTK+ instead of Motif.
95
96 %description gtk -l pl.UTF-8
97 Ted z interfejsem opartym na GTK+, a nie na Motifie.
98
99 %package common
100 Summary:        Common package for both Ted interfaces
101 Summary(pl.UTF-8):      Wspólny pakiet dla obu interfejsów Teda
102 Group:          X11/Applications/Editors
103 Requires:       xorg-lib-libXt-devel >= 1.0.0
104
105 %description common
106 Common package for both Ted interfaces.
107
108 %description common -l pl.UTF-8
109 Wspólny pakiet dla obu interfejsów Teda.
110
111 %package spelling-cs
112 Summary:        Czech spelling dictionary for Ted
113 Summary(pl.UTF-8):      Czeski słownik ortograficzny dla Teda
114 Group:          X11/Applications/Editors
115 Requires:       %{name}-common = %{version}-%{release}
116
117 %description spelling-cs
118 Czech (cs_CZ) spelling dictionary for Ted.
119
120 %description spelling-cs -l pl.UTF-8
121 Czeski (cs_CZ) słownik ortograficzny dla Teda.
122
123 %package spelling-da
124 Summary:        Danish spelling dictionary for Ted
125 Summary(pl.UTF-8):      Duński słownik ortograficzny dla Teda
126 Group:          X11/Applications/Editors
127 Requires:       %{name}-common = %{version}-%{release}
128
129 %description spelling-da
130 Danish (da_DK) spelling dictionary for Ted.
131
132 %description spelling-da -l pl.UTF-8
133 Duński (da_DK) słownik ortograficzny dla Teda.
134
135 %package spelling-de
136 Summary:        German spelling dictionary for Ted
137 Summary(pl.UTF-8):      Niemiecki słownik ortograficzny dla Teda
138 Group:          X11/Applications/Editors
139 Requires:       %{name}-common = %{version}-%{release}
140
141 %description spelling-de
142 German (de_DE) spelling dictionary for Ted.
143
144 %description spelling-de -l pl.UTF-8
145 Niemiecki (de_DE) słownik ortograficzny dla Teda.
146
147 %package spelling-en_GB
148 Summary:        English (UK) spelling dictionary for Ted
149 Summary(pl.UTF-8):      Angielski (brytyjski) słownik ortograficzny dla Teda
150 Group:          X11/Applications/Editors
151 Requires:       %{name}-common = %{version}-%{release}
152
153 %description spelling-en_GB
154 English (UK - en_GB) spelling dictionary for Ted.
155
156 %description spelling-en_GB -l pl.UTF-8
157 Angielski (brytyjski - en_GB) słownik ortograficzny dla Teda.
158
159 %package spelling-en_US
160 Summary:        English (US) spelling dictionary for Ted
161 Summary(pl.UTF-8):      Angielski (amerykański) słownik ortograficzny dla Teda
162 Group:          X11/Applications/Editors
163 Requires:       %{name}-common = %{version}-%{release}
164
165 %description spelling-en_US
166 English (en_US) spelling dictionary for Ted.
167
168 %description spelling-en_US -l pl.UTF-8
169 Angielski (amerykański - en_US) słownik ortograficzny dla Teda.
170
171 %package spelling-es
172 Summary:        Spanish spelling dictionary for Ted
173 Summary(pl.UTF-8):      Hiszpański słownik ortograficzny dla Teda
174 Group:          X11/Applications/Editors
175 Requires:       %{name}-common = %{version}-%{release}
176
177 %description spelling-es
178 Spanish (es_ES) spelling dictionary for Ted.
179
180 %description spelling-es -l pl.UTF-8
181 Hiszpański (es_ES) słownik ortograficzny dla Teda.
182
183 %package spelling-fr
184 Summary:        French spelling dictionary for Ted
185 Summary(pl.UTF-8):      Francuski słownik ortograficzny dla Teda
186 Group:          X11/Applications/Editors
187 Requires:       %{name}-common = %{version}-%{release}
188
189 %description spelling-fr
190 French (fr_FR) spelling dictionary for Ted.
191
192 %description spelling-fr -l pl.UTF-8
193 Francuski (fr_FR) słownik ortograficzny dla Teda.
194
195 %package spelling-it
196 Summary:        Italian spelling dictionary for Ted
197 Summary(pl.UTF-8):      Włoski słownik ortograficzny dla Teda
198 Group:          X11/Applications/Editors
199 Requires:       %{name}-common = %{version}-%{release}
200
201 %description spelling-it
202 Italian (it_IT) spelling dictionary for Ted.
203
204 %description spelling-it -l pl.UTF-8
205 Włoski (it_IT) słownik ortograficzny dla Teda.
206
207 %package spelling-nb
208 Summary:        Norwegian spelling dictionary for Ted
209 Summary(pl.UTF-8):      Norweski słownik ortograficzny dla Teda
210 Group:          X11/Applications/Editors
211 Requires:       %{name}-common = %{version}-%{release}
212 Obsoletes:      ted-spelling-no
213
214 %description spelling-nb
215 Norwegian (nb_NO) spelling dictionary for Ted.
216
217 %description spelling-nb -l pl.UTF-8
218 Norweski (nb_NO) słownik ortograficzny dla Teda.
219
220 %package spelling-nl
221 Summary:        Dutch spelling dictionary for Ted
222 Summary(pl.UTF-8):      Holenderski słownik ortograficzny dla Teda
223 Group:          X11/Applications/Editors
224 Requires:       %{name}-common = %{version}-%{release}
225
226 %description spelling-nl
227 Dutch (nl_NL) spelling dictionary for Ted.
228
229 %description spelling-nl -l pl.UTF-8
230 Holenderski (nl_NL) słownik ortograficzny dla Teda.
231
232 %package spelling-pl
233 Summary:        Polish spelling dictionary for Ted
234 Summary(pl.UTF-8):      Polski słownik ortograficzny dla Teda
235 Group:          X11/Applications/Editors
236 Requires:       %{name}-common = %{version}-%{release}
237
238 %description spelling-pl
239 Polish (pl_PL) spelling dictionary for Ted.
240
241 %description spelling-pl -l pl.UTF-8
242 Polski (pl_PL) słownik ortograficzny dla Teda.
243
244 %package spelling-pt
245 Summary:        Portuguese spelling dictionary for Ted
246 Summary(pl.UTF-8):      Portugalski słownik ortograficzny dla Teda
247 Group:          X11/Applications/Editors
248 Requires:       %{name}-common = %{version}-%{release}
249
250 %description spelling-pt
251 Portuguese (pt_PT) spelling dictionary for Ted.
252
253 %description spelling-pt -l pl.UTF-8
254 Portugalski (pt_PT) słownik ortograficzny dla Teda.
255
256 %package spelling-ru
257 Summary:        Russian spelling dictionary for Ted
258 Summary(pl.UTF-8):      Rosyjski słownik ortograficzny dla Teda
259 Group:          X11/Applications/Editors
260 Requires:       %{name}-common = %{version}-%{release}
261
262 %description spelling-ru
263 Russian (ru_RU) spelling dictionary for Ted.
264
265 %description spelling-ru -l pl.UTF-8
266 Rosyjski (ru_RU) słownik ortograficzny dla Teda.
267
268 %package spelling-sk
269 Summary:        Slovak spelling dictionary for Ted
270 Summary(pl.UTF-8):      Słowacki słownik ortograficzny dla Teda
271 Group:          X11/Applications/Editors
272 Requires:       %{name}-common = %{version}-%{release}
273
274 %description spelling-sk
275 Slovak (sk_SK) spelling dictionary for Ted.
276
277 %description spelling-sk -l pl.UTF-8
278 Słowacki (sk_SK) słownik ortograficzny dla Teda.
279
280 %package spelling-sl
281 Summary:        Slovene spelling dictionary for Ted
282 Summary(pl.UTF-8):      Słoweński słownik ortograficzny dla Teda
283 Group:          X11/Applications/Editors
284 Requires:       %{name}-common = %{version}-%{release}
285
286 %description spelling-sl
287 Slovene (sl_SI) spelling dictionary for Ted.
288
289 %description spelling-sl -l pl.UTF-8
290 Słoweński (sl_SI) słownik ortograficzny dla Teda.
291
292 %package spelling-sv
293 Summary:        Swedish spelling dictionary for Ted
294 Summary(pl.UTF-8):      Szwedzki słownik ortograficzny dla Teda
295 Group:          X11/Applications/Editors
296 Requires:       %{name}-common = %{version}-%{release}
297
298 %description spelling-sv
299 Swedish (sv_SE) spelling dictionary for Ted.
300
301 %description spelling-sv -l pl.UTF-8
302 Szwedzki (sv_SE) słownik ortograficzny dla Teda.
303
304 %prep
305 %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
306 %patch0 -p1
307 %patch1 -p1
308 %patch2 -p1
309
310 cd tedPackage
311 tar xf TedBindist.tar
312 cd ../Ted/ad
313 for f in *.tar ; do
314         tar xf "$f"
315 done
316 mv -f usr/lib/X11/{no_NO,nb_NO}
317 cd ../..
318 %patch3 -p1
319 %patch4 -p0
320
321
322 %build
323 for d in bitmap ind libreg appUtil appFrame Ted; do
324         cd $d
325         %{__autoconf}
326         %configure \
327                 --with-MOTIF
328         cd ..
329 done
330 %{__make} compile.shared
331 mv -f Ted/Ted Ted.motif
332
333 for d in appFrame Ted; do
334         cd $d
335         rm -f *.o
336         %configure \
337                 --with-GTK
338         cd ..
339 done
340 %{__make} compile.shared
341
342 %install
343 rm -rf $RPM_BUILD_ROOT
344 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/Ted/{afm,ind}}
345
346 install Ted.motif $RPM_BUILD_ROOT%{_bindir}/Ted
347 install Ted/Ted $RPM_BUILD_ROOT%{_bindir}/Ted.gtk
348 install tedPackage/afm/* $RPM_BUILD_ROOT%{_datadir}/Ted/afm
349 install tedPackage/ind/* ind/*.ind $RPM_BUILD_ROOT%{_datadir}/Ted/ind
350 install tedPackage/Ted/TedDocument-en_US.rtf $RPM_BUILD_ROOT%{_datadir}/Ted
351
352 cd Ted
353 install TedDocument-*.rtf $RPM_BUILD_ROOT%{_datadir}/Ted
354 cd ad
355 # pt is pt_BR here, but there is no pt_PT translation
356 for f in cs da de eu fr hu it mg nb nl oc pl pt sk ; do
357         install -d $RPM_BUILD_ROOT%{_datadir}/X11/${f}/app-defaults
358         # comment out evil paths
359         sed -e 's@^\(Ted.*/usr\)@!\1@' usr/lib/X11/${f}_*/app-defaults/Ted \
360                 > $RPM_BUILD_ROOT%{_datadir}/X11/${f}/app-defaults/Ted
361 done
362 # special case
363 install -d $RPM_BUILD_ROOT%{_datadir}/X11/es_AR/app-defaults
364 sed -e 's@^\(Ted.*/usr\)@!\1@' usr/lib/X11/es_AR/app-defaults/Ted \
365         > $RPM_BUILD_ROOT%{_datadir}/X11/es_AR/app-defaults/Ted
366 install -d $RPM_BUILD_ROOT%{_datadir}/X11/es/app-defaults
367 sed -e 's@^\(Ted.*/usr\)@!\1@' usr/lib/X11/es_AR/app-defaults/Ted \
368         > $RPM_BUILD_ROOT%{_datadir}/X11/es/app-defaults/Ted
369
370 # use latin2 font for pl_PL messages
371 echo 'Ted*fontList:     -adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-iso8859-2' \
372         >> $RPM_BUILD_ROOT%{_datadir}/X11/pl/app-defaults/Ted
373
374 %clean
375 rm -rf $RPM_BUILD_ROOT
376
377 %files
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_bindir}/Ted
380
381 %files gtk
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_bindir}/Ted.gtk
384
385 %files common
386 %defattr(644,root,root,755)
387 %doc README
388 %dir %{_datadir}/Ted
389 %{_datadir}/Ted/afm
390 %dir %{_datadir}/Ted/ind
391 %lang(de) %{_datadir}/Ted/TedDocument-de_DE.rtf
392 %{_datadir}/Ted/TedDocument-en_US.rtf
393 %lang(fr) %{_datadir}/Ted/TedDocument-fr_FR.rtf
394 %lang(mg) %{_datadir}/Ted/TedDocument-mg_MG.rtf
395 %lang(cs) %{_datadir}/X11/cs/app-defaults/Ted
396 %lang(da) %{_datadir}/X11/da/app-defaults/Ted
397 %lang(de) %{_datadir}/X11/de/app-defaults/Ted
398 %lang(es) %{_datadir}/X11/es/app-defaults/Ted
399 %lang(es_AR) %{_datadir}/X11/es_AR/app-defaults/Ted
400 %lang(eu) %{_datadir}/X11/eu/app-defaults/Ted
401 %lang(fr) %{_datadir}/X11/fr/app-defaults/Ted
402 %lang(hu) %{_datadir}/X11/hu/app-defaults/Ted
403 %lang(it) %{_datadir}/X11/it/app-defaults/Ted
404 %lang(mg) %{_datadir}/X11/mg/app-defaults/Ted
405 %lang(nb) %{_datadir}/X11/nb/app-defaults/Ted
406 %lang(nl) %{_datadir}/X11/nl/app-defaults/Ted
407 %lang(oc) %{_datadir}/X11/oc/app-defaults/Ted
408 %lang(pl) %{_datadir}/X11/pl/app-defaults/Ted
409 %lang(pt) %{_datadir}/X11/pt/app-defaults/Ted
410 %lang(sk) %{_datadir}/X11/sk/app-defaults/Ted
411
412 %files spelling-cs
413 %defattr(644,root,root,755)
414 %{_datadir}/Ted/ind/Czech.ind
415
416 %files spelling-da
417 %defattr(644,root,root,755)
418 %{_datadir}/Ted/ind/Danish.ind
419
420 %files spelling-de
421 %defattr(644,root,root,755)
422 %{_datadir}/Ted/ind/German.ind
423
424 %files spelling-en_GB
425 %defattr(644,root,root,755)
426 %{_datadir}/Ted/ind/UK_English.ind
427
428 %files spelling-en_US
429 %defattr(644,root,root,755)
430 %{_datadir}/Ted/ind/US_English.ind
431
432 %files spelling-es
433 %defattr(644,root,root,755)
434 %{_datadir}/Ted/ind/Spanish.ind
435
436 %files spelling-fr
437 %defattr(644,root,root,755)
438 %{_datadir}/Ted/ind/French.ind
439
440 %files spelling-it
441 %defattr(644,root,root,755)
442 %{_datadir}/Ted/ind/Italian.ind
443
444 %files spelling-nb
445 %defattr(644,root,root,755)
446 %{_datadir}/Ted/ind/Norwegian.ind
447
448 %files spelling-nl
449 %defattr(644,root,root,755)
450 %{_datadir}/Ted/ind/Dutch.ind
451
452 %files spelling-pl
453 %defattr(644,root,root,755)
454 %{_datadir}/Ted/ind/Polish.ind
455
456 %files spelling-pt
457 %defattr(644,root,root,755)
458 %{_datadir}/Ted/ind/Portuguese.ind
459
460 %files spelling-ru
461 %defattr(644,root,root,755)
462 %{_datadir}/Ted/ind/Russian.ind
463
464 %files spelling-sk
465 %defattr(644,root,root,755)
466 %{_datadir}/Ted/ind/Slovak.ind
467
468 %files spelling-sl
469 %defattr(644,root,root,755)
470 %{_datadir}/Ted/ind/Slovene.ind
471
472 %files spelling-sv
473 %defattr(644,root,root,755)
474 %{_datadir}/Ted/ind/Swedish.ind
This page took 0.176455 seconds and 3 git commands to generate.