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