summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kile/trinity-kile.spec
blob: f3defbc8e779b02206cb49e0efd784d0262c46e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
# Default version for this component
%define kdecomp kile
%define version 2.0.2
%define release 1

# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
%define _variant .opt
%define _docdir %{_prefix}/share/doc
%endif

# TDE 3.5.13 specific building variables
BuildRequires: autoconf automake libtool m4
%define tde_docdir %{_docdir}/kde
%define tde_includedir %{_includedir}/kde
%define tde_libdir %{_libdir}/trinity


Name:		trinity-%{kdecomp}
Summary:	KDE Integrated LaTeX Environment [Trinity]
Version:	%{?version}
Release:	%{?release}%{?dist}%{?_variant}

License:	GPLv2+
Group:		Applications/Publishing

Vendor:		Trinity Project
Packager:	Francois Andriot <francois.andriot@free.fr>
URL:		http://www.trinitydesktop.org/

Prefix:    %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source0:	%{kdecomp}-3.5.13.tar.gz
Source1:	%{kdecomp}.xpm

BuildRequires:	tqtinterface-devel
BuildRequires:	trinity-kdelibs-devel
BuildRequires:	trinity-kdebase-devel
BuildRequires:	desktop-file-utils
BuildRequires:	gettext

%package i18n-ar
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Arabic (ar) translations for Kile [Trinity]
%description i18n-ar
This package contains the Arabic translations for Kile.

%package i18n-bg
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Bulgarian (bg) translations for Kile [Trinity]
%description i18n-bg
This package contains the Bulgarian translations for Kile.

%package i18n-br
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Brazilian (br) translations for Kile [Trinity]
%description i18n-br
This package contains the Brazilian translations for Kile.

%package i18n-ca
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Catalan (ca) translations for Kile [Trinity]
%description i18n-ca
This package contains the Catalan translations for Kile.

%package i18n-cs
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Czech (cs) translations for Kile [Trinity]
%description i18n-cs
This package contains the Czech translations for Kile.

%package i18n-cy
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Welsh (cy) translations for Kile [Trinity]
%description i18n-cy
This package contains the Welsh translations for Kile.

%package i18n-da
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Danish (da) translations for Kile [Trinity]
%description i18n-da
This package contains the Danish translations for Kile.

%package i18n-de
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: German (de) translations for Kile [Trinity]
%description i18n-de
This package contains the German translations for Kile.

%package i18n-el
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Greek (el) translations for Kile [Trinity]
%description i18n-el
This package contains the greek translations for Kile.

%package i18n-engb
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: British English (en_GB) translations for Kile [Trinity]
%description i18n-engb
This package contains the British English (en_GB) translations for Kile [Trinity].

%package i18n-es
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Spanish (es) translations for Kile [Trinity]
%description i18n-es
This package contains the Spanish translations for Kile.

%package i18n-et
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Estonian (et) translations for Kile [Trinity]
%description i18n-et
This package contains the Estonian translations for Kile.

%package i18n-eu
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Basque (eu) translations for Kile [Trinity]
%description i18n-eu
This package contains the Basque translations for Kile.

%package i18n-fi
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Finnish (fi) translations for Kile [Trinity]
%description i18n-fi
This package contains the Finnish translations for Kile.

%package i18n-fr
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: French (fr) translations for Kile [Trinity]
%description i18n-fr
This package contains the French translations for Kile.

%package i18n-ga
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Irish Gaelic (ga) translations for Kile [Trinity]
%description i18n-ga
This package contains the Irish Gaelic translations for Kile.

%package i18n-gl
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Galician (gl) translations for Kile [Trinity]
%description i18n-gl
This package contains the Galician translations for Kile.

%package i18n-hi
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Hindi (hi) translations for Kile [Trinity]
%description i18n-hi
This package contains the Hindi translations for Kile.

%package i18n-hu
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Hungarian (hu) translations for Kile [Trinity]
%description i18n-hu
This package contains the Hungarian translations for Kile.

%package i18n-is
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Icelandic (is) translations for Kile [Trinity]
%description i18n-is
This package contains the Icelandic translations for Kile.

%package i18n-it
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Italian (it) translations for Kile [Trinity]
%description i18n-it
This package contains the Italian translations for Kile.

%package i18n-ja
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Japanese (ja) translations for Kile [Trinity]
%description i18n-ja
This package contains the Japanese translations for Kile.

%package i18n-lt
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Lithuanian (lt) translations for Kile [Trinity]
%description i18n-lt
This package contains the Lithuanian translations for Kile.

%package i18n-ms
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Malay (ms) translations for Kile [Trinity]
%description i18n-ms
This package contains the Malay translations for Kile.

%package i18n-mt
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Maltese (mt) translations for Kile [Trinity]
%description i18n-mt
This package contains the Maltese translations for Kile.

%package i18n-nb
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Norwegian Bookmal (nb) translations for Kile [Trinity]
%description i18n-nb
This package contains the Norwegian Bookmal translations for Kile.

%package i18n-nds
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Low Saxon (nds) translations for Kile [Trinity]
%description i18n-nds
This package contains the Low Saxon translations for Kile.

%package i18n-nl
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Dutch (nl) translations for Kile [Trinity]
%description i18n-nl
This package contains the Dutch translations for Kile.

%package i18n-nn
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Norwegian Nynorsk (nn) translations for Kile [Trinity]
%description i18n-nn
This package contains the Norwegian Nynorsk translations for Kile.

%package i18n-pa
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Punjabi (pa) translations for Kile [Trinity]
%description i18n-pa
This package contains the Punjabi translations for Kile.

%package i18n-pl
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Polish (pl) translations for Kile [Trinity]
%description i18n-pl
This package contains the Polish translations for Kile.

%package i18n-pt
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Portuguese (pt) translations for Kile [Trinity]
%description i18n-pt
This package contains the Portuguese translations for Kile.

%package i18n-ptbr
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Brazilian Portuguese (pt_BR) translations for Kile [Trinity]
%description i18n-ptbr
This package contains the Brazilian Portuguese translations for Kile.

%package i18n-ro
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Romanian (ro) translations for Kile [Trinity]
%description i18n-ro
This package contains the Romanian translations for Kile.

%package i18n-ru
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Russian (ru) translations for Kile [Trinity]
%description i18n-ru
This package contains the Russian translations for Kile.

%package i18n-rw
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Kinyarwanda (rw) translations for Kile [Trinity]
%description i18n-rw
This package contains the Kinyarwanda translations for Kile.

%package i18n-sk
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Slovak (sk) translations for Kile [Trinity]
%description i18n-sk
This package contains the Slovak translations for Kile.

%package i18n-sr
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Serbian (sr) translations for Kile [Trinity]
%description i18n-sr
This package contains the Serbian translations for Kile.

%package i18n-srlatin
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Latin Serbian (sr@Latn) translations for Kile [Trinity]
%description i18n-srlatin
This package contains the Latin Serbian translations for Kile.

%package i18n-sv
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Swedish (sv) translations for Kile [Trinity]
%description i18n-sv
This package contains the Swedish translations for Kile.

%package i18n-ta
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Tamil (ta) translations for Kile [Trinity]
%description i18n-ta
This package contains the Tamil translations for Kile.

%package i18n-th
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Thai (th) translations for Kile [Trinity]
%description i18n-th
This package contains the Thai translations for Kile.

%package i18n-tr
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Turkish (tr) translations for Kile [Trinity]
%description i18n-tr
This package contains the Turkish translations for Kile.

%package i18n-uk
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Ukrainian (uk) translations for Kile [Trinity]
%description i18n-uk
This package contains the Ukrainian translations for Kile.

%package i18n-zhcn
Group:		Applications/Publishing
Requires: %{name} >= %{version}
Provides: trinity-kile-i18n
Summary: Chinese Simplified (zh_CN) translations for Kile [Trinity]
%description i18n-zhcn
This package contains the Chinese Simplified translations for Kile.


%description
Kile is a user-friendly LaTeX source editor and TeX shell for KDE.

The source editor is a multi-document editor designed for .tex and .bib
files.  Menus, wizards and auto-completion are provided to assist with
tag insertion and code generation.  A structural view of the document
assists with navigation within source files.

The TeX shell integrates the various tools required for TeX processing.
It assists with LaTeX compilation, DVI and postscript document viewing,
generation of bibliographies and indices and other common tasks.

Kile can support large projects consisting of several smaller files.

%prep
%setup -q -n applications/%{kdecomp}

# Ugly hack to modify TQT include directory inside autoconf files.
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
%__sed -i admin/acinclude.m4.in \
  -e "s,/usr/include/tqt,%{_includedir}/tqt,g" \
  -e "s,kde_htmldir='.*',kde_htmldir='%{tde_docdir}/HTML',g"

%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"


%build
export PATH="%{_bindir}:${PATH}"
export LDFLAGS="-L%{_libdir} -I%{_includedir}"

%configure \
	--disable-rpath \
    --with-extra-includes=%{_includedir}/tqt

%__make %{?_smp_mflags}


%install
export PATH="%{_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}

%__install -D -p -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/kile.xpm
%__chmod +x %{buildroot}%{_datadir}/apps/kile/test/runTests.sh

%clean
%__rm -rf %{buildroot}


%post
touch --no-create %{_datadir}/icons/hicolor || :
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun
touch --no-create %{_datadir}/icons/hicolor || :
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%files
%defattr(-,root,root,-)
%{_bindir}/kile
%{_datadir}/applications/kde/kile.desktop
%{_datadir}/apps/katepart/syntax/bibtex.xml
%{_datadir}/apps/katepart/syntax/latex.xml
%{_datadir}/apps/kconf_update
%{_datadir}/apps/kile
%{_datadir}/config.kcfg/kile.kcfg
%{_datadir}/icons/hicolor/*/apps/kile.png
%{_datadir}/icons/hicolor/scalable/apps/kile.svgz
%{tde_docdir}/HTML/en/kile
%{_datadir}/mimelnk/text/x-kilepr.desktop
%{_datadir}/pixmaps/kile.xpm

%files i18n-da
%lang(da) %{tde_docdir}/HTML/da/kile
%lang(da) %{_datadir}/locale/da/LC_MESSAGES/kile.mo

%files i18n-es
%lang(es) %{tde_docdir}/HTML/es/kile
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/kile.mo

%files i18n-et
%lang(et) %{tde_docdir}/HTML/et/kile
%lang(et) %{_datadir}/locale/et/LC_MESSAGES/kile.mo

%files i18n-it
%lang(it) %{tde_docdir}/HTML/it/kile
%lang(it) %{_datadir}/locale/it/LC_MESSAGES/kile.mo

%files i18n-nl
%lang(nl) %{tde_docdir}/HTML/nl/kile
%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/kile.mo

%files i18n-pt
%lang(pt) %{tde_docdir}/HTML/pt/kile
%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/kile.mo

%files i18n-sv
%lang(sv) %{tde_docdir}/HTML/sv/kile
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/kile.mo

%files i18n-ar
%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/kile.mo

%files i18n-bg
%lang(bg) %{_datadir}/locale/bg/LC_MESSAGES/kile.mo

%files i18n-br
%lang(br) %{_datadir}/locale/br/LC_MESSAGES/kile.mo

%files i18n-ca
%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/kile.mo

%files i18n-cs
%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/kile.mo

%files i18n-cy
%lang(cy) %{_datadir}/locale/cy/LC_MESSAGES/kile.mo

%files i18n-de
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/kile.mo

%files i18n-el
%lang(el) %{_datadir}/locale/el/LC_MESSAGES/kile.mo

%files i18n-engb
%lang(en_GB) %{_datadir}/locale/en_GB/LC_MESSAGES/kile.mo

%files i18n-eu
%lang(eu) %{_datadir}/locale/eu/LC_MESSAGES/kile.mo

%files i18n-fi
%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/kile.mo

%files i18n-fr
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/kile.mo

%files i18n-ga
%lang(ga) %{_datadir}/locale/ga/LC_MESSAGES/kile.mo

%files i18n-gl
%lang(gl) %{_datadir}/locale/gl/LC_MESSAGES/kile.mo

%files i18n-hi
%lang(hi) %{_datadir}/locale/hi/LC_MESSAGES/kile.mo

%files i18n-hu
%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/kile.mo

%files i18n-is
%lang(is) %{_datadir}/locale/is/LC_MESSAGES/kile.mo

%files i18n-ja
%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/kile.mo

%files i18n-lt
%lang(lt) %{_datadir}/locale/lt/LC_MESSAGES/kile.mo

%files i18n-ms
%lang(ms) %{_datadir}/locale/ms/LC_MESSAGES/kile.mo

%files i18n-mt
%lang(mt) %{_datadir}/locale/mt/LC_MESSAGES/kile.mo

%files i18n-nb
%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/kile.mo

%files i18n-nds
%lang(nds) %{_datadir}/locale/nds/LC_MESSAGES/kile.mo

%files i18n-nn
%lang(nn) %{_datadir}/locale/nn/LC_MESSAGES/kile.mo

%files i18n-pa
%lang(pa) %{_datadir}/locale/pa/LC_MESSAGES/kile.mo

%files i18n-pl
%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/kile.mo

%files i18n-ptbr
%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/kile.mo

%files i18n-ro
%lang(ro) %{_datadir}/locale/ro/LC_MESSAGES/kile.mo

%files i18n-ru
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/kile.mo

%files i18n-rw
%lang(rw) %{_datadir}/locale/rw/LC_MESSAGES/kile.mo

%files i18n-sk
%lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/kile.mo

%files i18n-sr
%lang(sr) %{_datadir}/locale/sr/LC_MESSAGES/kile.mo

%files i18n-srlatin
%lang(sr@Latn) %{_datadir}/locale/sr@Latn/LC_MESSAGES/kile.mo

%files i18n-ta
%lang(ta) %{_datadir}/locale/ta/LC_MESSAGES/kile.mo

%files i18n-th
%lang(th) %{_datadir}/locale/th/LC_MESSAGES/kile.mo

%files i18n-tr
%lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/kile.mo

%files i18n-uk
%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/kile.mo

%files i18n-zhcn
%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/kile.mo
 



%Changelog
* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 2.0.2-1
- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16