]> git.pld-linux.org Git - packages/emacs.git/blob - emacs.spec
- fix:
[packages/emacs.git] / emacs.spec
1 # TODO:
2 # - package cedit lisp files files
3 # - package new (non gtk) desktop file?
4 # - package ctags/etags in subpackage?
5 #
6 # Conditional build:
7 %bcond_without  athena          # don't build athena version
8 %bcond_without  gtk             # don't build GTK+2 version
9 %bcond_without  motif           # don't build motif version
10 %bcond_without  nox             # don't build nox version
11 %bcond_with     bootstrap       # build bootsrtap version
12 #
13 Summary:        The Emacs text editor for the X Window System
14 Summary(de.UTF-8):      GNU Emacs
15 Summary(es.UTF-8):      GNU Emacs
16 Summary(fr.UTF-8):      GNU Emacs
17 Summary(pl.UTF-8):      GNU Emacs - edytor tekstu dla systemu X Window
18 Summary(pt_BR.UTF-8):   GNU Emacs
19 Summary(tr.UTF-8):      GNU Emacs
20 Name:           emacs
21 %define ver     23.4
22 Version:        %{ver}
23 Release:        0.1
24 License:        GPL v3+
25 Group:          Applications/Editors/Emacs
26 Source0:        ftp://ftp.gnu.org/pub/gnu/emacs/%{name}-%{version}.tar.bz2
27 # Source0-md5:  070c68ad8e3c31fb3cb2414feaf5e6f0
28 Source1:        %{name}-dot%{name}
29 Source2:        %{name}-site-start.el
30 Source3:        %{name}.png
31 Source4:        %{name}-tuareg.el
32 Source5:        %{name}-nemerle.el
33 Source6:        %{name}-athena.desktop
34 Source7:        %{name}-gtk.desktop
35 Source8:        %{name}-motif.desktop
36 Source9:        %{name}-nox.desktop
37 Patch0:         %{name}-fontconfig.patch
38 Patch1:         %{name}-xgselect_init.patch
39 URL:            http://www.gnu.org/software/emacs/
40 BuildRequires:  autoconf
41 BuildRequires:  automake
42 BuildRequires:  ncurses-devel
43 BuildRequires:  freetype-devel
44 %{?with_gtk:BuildRequires:      gtk+2-devel}
45 BuildRequires:  libdnet-devel
46 BuildRequires:  libjpeg-devel
47 BuildRequires:  libpng-devel
48 BuildRequires:  libtiff-devel
49 BuildRequires:  libtool
50 BuildRequires:  giflib-devel
51 BuildRequires:  ncurses-devel
52 %{?with_motif:BuildRequires:    openmotif-devel}
53 BuildRequires:  pkgconfig
54 BuildRequires:  rpm-pythonprov
55 BuildRequires:  sed >= 4.0
56 BuildRequires:  texinfo
57 BuildRequires:  xorg-lib-libX11-devel
58 %{?with_athena:BuildRequires:   xorg-lib-libXaw-devel}
59 BuildRequires:  xorg-lib-libXext-devel
60 BuildRequires:  xorg-lib-libXft-devel
61 BuildRequires:  xorg-lib-libXmu-devel
62 BuildRequires:  xorg-lib-libXpm-devel
63 Requires:       %{name}-common = %{version}-%{release}
64 Requires:       ctags
65 Suggests:       emacsen-gnus-pkg-emacs
66 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68 %description
69 Emacs-X11 includes the Emacs text editor program for use with the X
70 Window System (it provides support for the mouse and other GUI
71 elements). Emacs-X11 will also run Emacs outside of X, but it has a
72 larger memory footprint than the 'non-X' Emacs package (emacs-nox).
73
74 Install emacs-X11 if you're going to use Emacs with the X Window
75 System. You should also install emacs-X11 if you're going to run Emacs
76 both with and without X (it will work fine both ways). You'll also
77 need to install the emacs-common package in order to run Emacs.
78
79 %description -l de.UTF-8
80 Emacs ist der erweiterbare, veränderbare, selbst-dokumentierende
81 Echtzeit-Editor. Emacs enthält spezielle Modi zum Bearbeiten von Code,
82 eine Script-Sprache (elisp) und Pakete für Mail, News und vieles mehr,
83 alles im Editor.
84
85 Dieses Paket enthält die zum Ausführen des emacs-Editors notwendig
86 sind. Das eigentliche Programm ist im Paket 'emacs-nox' bzw.
87 'emacs-X11' enthalten, je nachdem, ob Sie X-Window verwenden oder
88 nicht.
89
90 %description -l es.UTF-8
91 Emacs es un editor común, que se puede personalizar, y muestra los
92 propios documentos en tiempo real. Emacs posee un modo de código
93 especial para edición, un lenguaje script (elisp), y viene con varios
94 paquetes para mail, news, y más cosas, todo en tu editor. Este paquete
95 incluye las bibliotecas necesarias para ejecutar el editor emacs - el
96 programa actual puede ser encontrado en los paquetes emacs-nox o
97 emacs-X11, dependiendo de que uses o no el X Window.
98
99 %description -l pl.UTF-8
100 Emacs-X11 zawiera edytor tekstu Emacs do użytku z X Window System (ma
101 wsparcie dla myszy i innych elementów interfejsu graficznego).
102 Emacs-X11 może działać także bez X, ale wymaga więcej pamięci niż
103 wersja nie-X Emacsa (emacs-nox).
104
105 %description -l pt_BR.UTF-8
106 Emacs é um editor comum, personalizável, e mostra os próprios
107 documentos em tempo real. Emacs possui um modo de código especial para
108 edição, uma linguagem script (elisp), e vem com vários pacotes para
109 mail, news, e mais, tudo no seu editor. Este pacote inclui as
110 bibliotecas necessárias para rodar o editor emacs - o programa atual
111 pode ser achado nos pacotes emacs-nox ou emacs-X11, dependendo se você
112 usa ou não X Window.
113
114 %description -l tr.UTF-8
115 Emacs, son derece gelişmiş bir metin düzenleyicisidir. Bir çok
116 geliştirme ortamında kullanılmak üzere ayarlanabilir (C, Java, VHDL
117 gibi). E-posta okuyabilmek, haber gruplarına erişmek gibi birçok
118 değişik amaç için kullanılabilecek ek yazılımlarla yetenekli bir
119 çalışma ortamı sağlar. Bu paket emacs çalıştırmak için gereken
120 kütüphaneleri içerir. Asıl program kullandığınız ortama göre emacs-nox
121 veya emacs-X11 paketinde yer alır.
122
123 %package el
124 Summary:        The sources for elisp programs included with Emacs
125 Summary(de.UTF-8):      El Quelldateien - zum Betrieb von Emacs nicht erforderlich
126 Summary(es.UTF-8):      Fuentes .el -- no son necesarios para ejecutar Emacs
127 Summary(fr.UTF-8):      Fichiers sources .el - non nécessaires pour exécuter Emacs
128 Summary(pl.UTF-8):      Źródła programów w elispie dołączonych do Emacsa
129 Summary(pt_BR.UTF-8):   Fontes .el -- não são necessários para rodar o Emacs
130 Summary(tr.UTF-8):      Lisp kaynak dosyaları -- Emacs çalıştırmak için gerekmez
131 Group:          Applications/Editors/Emacs
132 Requires:       %{name}-common = %{version}-%{release}
133
134 %description el
135 Emacs-el contains the emacs-elisp sources for many of the elisp
136 programs included with the main Emacs text editor package.
137
138 You need to install emacs-el only if you intend to modify any of the
139 Emacs packages or see some elisp examples.
140
141 %description el -l es.UTF-8
142 Este paquete contiene los fuentes emacs-lisp para muchos de los
143 programas elisp incluido en el programa principal del paquete emacs.
144 Tu no necesitas de este paquete a menos que quieras modificarlos o
145 mirar algunos ejemplos de programas elisp.
146
147 %description el -l fr.UTF-8
148 Ce paquetage contient les sources emacs-lisp de la plupart des
149 programmes elisp inclus avec le paquetage emacs principal. Vous n'avez
150 pas besoin de ce paquetage sauf si vous voulez modifier ces paquetages
151 ou voir quelques exemples elisp.
152
153 %description el -l pl.UTF-8
154 Emacs-el zawiera źródła w emacs-elispie wielu programów dołączonych do
155 głównego pakietu edytora Emacs. Ten pakiet jest potrzebny tylko do
156 modyfikowania elementów Emacsa lub obejrzenia przykładów w elispie.
157
158 %description el -l pt_BR.UTF-8
159 Este pacote contém os fontes emacs-lisp para muitos dos programas
160 elisp incluído com o programa principal do pacote emacs. Você não
161 necessita deste pacote a menos que você queira modificar estes pacotes
162 ou ver alguns exemplos de programas elisp.
163
164 %description el -l tr.UTF-8
165 Bu paket, ana emacs paketinde yer alan çoğu programın lisp kaynak
166 kodlarını içerir. Bu programları değiştirmeyi düşünmüyorsanız gerek
167 duymayacaksınız.
168
169 %package leim
170 Summary:        Emacs Lisp code for input methods for international characters
171 Summary(es.UTF-8):      Código Lisp para internacionalización en Emacs
172 Summary(pl.UTF-8):      Kod w Emacs Lispie do wprowadzania znaków narodowych
173 Summary(pt_BR.UTF-8):   Código Lisp para para internacionalização no Emacs
174 Group:          Applications/Editors/Emacs
175 Requires:       %{name}-common = %{version}-%{release}
176
177 %description leim
178 The emacs-leim package contains Emacs Lisp code for input methods for
179 various international character scripts. Basically, the Lisp code
180 provided by this package describes the consecutive keystrokes that a
181 user must press in order to input a particular character in a
182 non-English character set. Input methods for many different language's
183 character sets are included in this package.
184
185 %description leim -l es.UTF-8
186 Código Lisp para internacionalización en Emacs.
187
188 %description leim -l pl.UTF-8
189 Pakiet emacs-leim zawiera kod w Emacs Lispie do wprowadzania różnych
190 narodowych znaków. Kod zawarty w tym pakiecie opisuje sekwencje
191 klawiszy, które użytkownik musi nacisnąć, by uzyskać dany znak spoza
192 zestawu angielskiego. Pakiet zawiera sposoby wprowadzania znaków w
193 wielu różnych językach.
194
195 %description leim -l pt_BR.UTF-8
196 Código Lisp para para internacionalização no Emacs.
197
198 %package leim-el
199 Summary:        Emacs Lisp source code for input methods for international characters
200 Summary(pl.UTF-8):      Kod źródłowy w Emacs Lispie do wprowadzania znaków narodowych
201 Group:          Applications/Editors/Emacs
202 Requires:       %{name}-leim = %{version}-%{release}
203
204 %description leim-el
205 Emacs Lisp source code for input methods for international characters.
206
207 %description leim-el -l pl.UTF-8
208 Kod źródłowy w Emacs Lispie do wprowadzania znaków narodowych.
209
210 %package nox
211 Summary:        The Emacs text editor without support for the X Window System
212 Summary(de.UTF-8):      emacs-nox - keine X-Libraries erforderlich
213 Summary(es.UTF-8):      emacs-nox - Emacs sin necesidad de bibliotecas X
214 Summary(fr.UTF-8):      emacs-nox - les bibliothèques X ne sont pas nécessaires
215 Summary(pl.UTF-8):      emacs-nox - edytor tekstu Emacs bez wsparcia dla X Window System
216 Summary(pt_BR.UTF-8):   emacs-nox - Emacs sem precisar de bibliotecas X
217 Summary(tr.UTF-8):      X gerektirmeyen emacs paketi
218 Group:          Applications/Editors/Emacs
219 Requires:       %{name}-common = %{version}-%{release}
220
221 %description nox
222 Emacs-nox is the Emacs text editor program without support for the X
223 Window System.
224
225 You need to install this package only if you plan on exclusively using
226 Emacs without the X Window System (emacs-X11 will work both in X and
227 out of X, but emacs-nox will only work outside of X). You'll also need
228 to install the emacs-common package in order to run Emacs.
229
230 %description nox -l de.UTF-8
231 Dieses Paket enthält eine Binärversion von emacs ohne X-Window-
232 Unterstützung. Das emacs-Binärprogramm im emacs-Hauptpaket
233 funktioniert zwar einwandfrei außerhalb von X-Window (z.B. auf der
234 Konsole), die Version in diesem Paket hat jedoch ein kleineres
235 Speicherabbild.
236
237 %description nox -l es.UTF-8
238 Este paquete contiene un binario emacs sin soporte al X Window. Aunque
239 el binario emacs, en el paquete principal, funcione bien fuera del X
240 Window (en la consola, por ejemplo) lo que se encuentra en este
241 paquete utiliza menos memoria.
242
243 %description nox -l fr.UTF-8
244 Ce paquetage contient un binaire emacs construit sans gestion X
245 Window. Bien que le binaire emacs du paquetage emacs principal
246 fonctionne bien sans X Window (sur un terminal, par exemple), celui-ci
247 à une image mémoire plus petite.
248
249 %description nox -l pl.UTF-8
250 Emacs-nox to edytor tekstu Emacs bez wsparcia dla X Window System.
251
252 %description nox -l pt_BR.UTF-8
253 Este pacote contém um binário emacs sem suporte ao X Window. Embora o
254 binário emacs no pacote principal funcione bem fora do X Window (na
255 console por exemplo) o que está neste pacote utiliza menos memória.
256
257 %description nox -l tr.UTF-8
258 Bu paket içinde yer alan emacs programı, X11 desteği içermez ve
259 çalışmak için daha az belleğe gereksinim duyar.
260
261 %package athena
262 Summary:        The Emacs text editor for X Window System (Athena toolkit version)
263 Summary(pl.UTF-8):      Emacs - edytor tekstu Emacs dla X Window System (wersja Athena)
264 Group:          Applications/Editors/Emacs
265 Requires:       %{name}-common = %{version}-%{release}
266
267 %description athena
268 The Emacs text editor for X Window System (Athena toolkit version).
269
270 %description athena -l pl.UTF-8
271 Emacs - edytor tekstu Emacs dla X Window System (wersja Athena).
272
273 %package gtk
274 Summary:        The Emacs text editor for X Window System (GTK+2 toolkit version)
275 Summary(pl.UTF-8):      Emacs - edytor tekstu Emacs dla X Window System (wersja GTK+2)
276 Group:          Applications/Editors/Emacs
277 Requires:       %{name}-common = %{version}-%{release}
278
279 %description gtk
280 The Emacs text editor for X Window System (GTK+2 toolkit version).
281
282 %description gtk -l pl.UTF-8
283 Emacs - edytor tekstu Emacs dla X Window System (wersja GTK+2).
284
285 %package motif
286 Summary:        The Emacs text editor for X Window System (Motif toolkit version)
287 Summary(pl.UTF-8):      Emacs - edytor tekstu Emacs dla X Window System (wersja Motif)
288 Group:          Applications/Editors/Emacs
289 Requires:       %{name}-common = %{version}-%{release}
290
291 %description motif
292 The Emacs text editor for X Window System (Motif toolkit version).
293
294 %description motif -l pl.UTF-8
295 Emacs - edytor tekstu Emacs dla X Window System (wersja Motif).
296
297 %package common
298 Summary:        The libraries needed to run the GNU Emacs text editor
299 Summary(pl.UTF-8):      Biblioteki potrzebne do uruchomienia edytora tekstu GNU Emacs
300 Group:          Applications/Editors/Emacs
301 Requires:       emacscommon
302
303 %description common
304 Emacs is a powerful, customizable, self-documenting, modeless text
305 editor. Emacs contains special code editing features, a scripting
306 language (elisp), and the capability to read mail, news and more
307 without leaving the editor.
308
309 This package includes the libraries you need to run the Emacs editor,
310 so you need to install this package if you intend to use Emacs. You
311 also need to install the actual Emacs program package (emacs-nox or
312 emacs). Install emacs-nox if you are not going to use the X Window
313 System; install emacs if you will be using X.
314
315 %description common -l pl.UTF-8
316 Emacs jest konfigurowalnym, samo-udokumentowanym edytorem tekstu o
317 dużych możliwościach. Zawiera ułatwienia do pisania kodu, język
318 skryptowy (elisp), daje możliwość czytania poczty, newsów i wiele
319 innych rzeczy bez opuszczania edytora.
320
321 Ten pakiet zawiera biblioteki potrzebne do uruchomienia Emacsa. Oprócz
322 tego pakietu potrzebny jest jeszcze właściwy program (emacs-nox lub
323 emacs). Zainstaluj emacs-nox jeżeli nie zamierzasz używasz Emacsa pod
324 X Window System; zainstaluj emacs jeżeli używasz X.
325
326 %package extras
327 Summary:        Files which conflict with XEmacs
328 Summary(pl.UTF-8):      Wspólne pliki XEmacsa i GNU Emacsa
329 Group:          Applications/Editors/Emacs
330 Provides:       emacscommon
331 Obsoletes:      emacscommon
332
333 %description extras
334 These files are common between GNU Emacs and XEmacs.
335
336 %description extras -l pl.UTF-8
337 Są to wspólne pliki GNU Emacs i XEmacs.
338
339 %package gnus
340 Summary:        Gnus is flexible message reader under Emacs
341 Summary(pl.UTF-8):      Gnus jest czytnikiem grup dyskusyjnych pod Emacsa
342 Group:          Applications/Editors/Emacs
343 Requires:       %{name}-common = %{version}-%{release}
344
345 %description gnus
346 Gnus is flexible message reader under Emacs.
347
348 %description gnus -l pl.UTF-8
349 Gnus jest czytnikiem grup dyskusyjnych pod Emacsa.
350
351 %package gnus-el
352 Summary:        Emacs Lisp source code for Gnus
353 Summary(pl.UTF-8):      Kod źródłowy Gnusa w Emacs Lispie
354 Group:          Applications/Editors/Emacs
355 Requires:       %{name}-gnus = %{version}-%{release}
356
357 %description gnus-el
358 Emacs Lisp source code for Gnus.
359
360 %description gnus-el -l pl.UTF-8
361 Kod źródłowy Gnusa w Emacs Lispie.
362
363 %prep
364 #
365 %if %{with gtk}
366 %define default_emacs gtk
367 %else
368 %if %{with motif}
369 %define default_emacs motif
370 %else
371 %if %{with athena}
372 %define default_emacs athena
373 %else
374 %if %{with nox}
375 %define default_emacs nox
376 %else
377 echo "ERROR: building Emacs with passed conditionals is impossible."
378 exit 1
379 %endif
380 %endif
381 %endif
382 %endif
383
384 %setup -q -n %{name}-%{ver}
385 %patch0 -p1
386 %patch1 -p1
387
388 %build
389 cp -f /usr/share/automake/config.* .
390 %{__aclocal} -I m4
391 %{__autoconf}
392 %{__autoheader}
393
394 %define bootstrap 0
395
396 %if %{with athena}
397 echo "Building emacs athena binary ..."
398 rm -rf build-athena
399 mkdir build-athena && cd build-athena
400 ../%configure \
401         --with-crt-dir=%{_libdir} \
402         --with-pop \
403         --with-xpm \
404         --with-jpeg \
405         --with-tiff \
406         --with-gif \
407         --with-png \
408         --with-x-toolkit=athena \
409         %{?with_bootstrap:--without-gpm}
410
411 %{__make} -j1 bootstrap
412 %define bootstrap athena
413 cd ..
414 %endif
415
416 %if %{with gtk}
417 echo "Building emacs GTK+2 binary ..."
418 rm -rf build-gtk
419 mkdir build-gtk && cd build-gtk
420 ../%configure \
421         --with-crt-dir=%{_libdir} \
422         --with-pop \
423         --with-xpm \
424         --with-jpeg \
425         --with-tiff \
426         --with-gif \
427         --with-png \
428         --with-x-toolkit=gtk \
429         %{?with_bootstrap:--without-gpm}
430
431 %if %{?bootstrap}
432 %{__make}
433 %else
434 %{__make} -j1 bootstrap
435 %define bootstrap gtk
436 %endif
437 cd ..
438 %endif
439
440 %if %{with motif}
441 echo "Building emacs motif binary ..."
442 rm -rf build-motif
443 mkdir build-motif && cd build-motif
444 ../%configure \
445         --with-crt-dir=%{_libdir} \
446         --with-pop \
447         --with-xpm \
448         --with-jpeg \
449         --with-tiff \
450         --with-gif \
451         --with-png \
452         --with-x-toolkit=motif \
453         %{?with_bootstrap:--without-gpm}
454
455 %if %{?bootstrap}
456 %{__make}
457 %else
458 %{__make} -j1 bootstrap
459 %define bootstrap motif
460 %endif
461 cd ..
462 %endif
463
464 %if %{with nox}
465 echo "Building emacs binary without X support ..."
466 [ -d build-nox ] && rm -rf build-nox
467 mkdir build-nox && cd build-nox
468 ../%configure \
469         --with-crt-dir=%{_libdir} \
470         --with-pop \
471         --without-xpm \
472         --without-jpeg \
473         --without-tiff \
474         --without-gif \
475         --without-png \
476         --with-x=no \
477         %{?with_bootstrap:--without-gpm}
478
479 %if %{?bootstrap}
480 %{__make}
481 %else
482 %{__make} -j1 bootstrap
483 %define bootstrap nox
484 %endif
485 cd ..
486 %endif
487
488 mv lisp/term/README README.term
489
490 %{__sed} s!@SITE_START_DIR@!%{_datadir}/emacs/site-lisp/site-start.d! \
491         < %{SOURCE2} > site-start.el
492
493 %install
494 rm -rf $RPM_BUILD_ROOT
495
496 install -d $RPM_BUILD_ROOT{%{_infodir},%{_datadir}/emacs/site-lisp/site-start.d} \
497         $RPM_BUILD_ROOT{%{_desktopdir},/etc/skel,%{_pixmapsdir}} \
498
499 %if %{with athena}%{with gtk}%{with motif}%{with nox}
500 %makeinstall -C build-%{bootstrap}
501 %else
502 echo 'ERROR: neither athena nor gtk nor motif nor nox emacs was built.' 1>&2
503 exit 1
504 %endif
505
506 for e in athena gtk motif nox ; do
507         [ -d build-$e ] && install build-${e}/src/emacs $RPM_BUILD_ROOT%{_bindir}/emacs-$e
508 done
509 rm -f $RPM_BUILD_ROOT%{_bindir}/emacs
510 # make "default emacs" from gtk, athena, motif and non-X version
511 for e in gtk athena motif nox ; do
512         if [ -f $RPM_BUILD_ROOT%{_bindir}/emacs-$e ] ; then
513                 (cd $RPM_BUILD_ROOT%{_bindir}
514                  cp -pf emacs-$e emacs
515                  cp -pf emacs-$e emacs-%{ver}
516                 )
517                 break;
518         fi
519 done
520
521 install site-start.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
522 install %{SOURCE1} $RPM_BUILD_ROOT/etc/skel/.emacs
523 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
524 install %{SOURCE4} $RPM_BUILD_ROOT/%{_datadir}/emacs/%{ver}/site-lisp/tuareg.el
525 install %{SOURCE5} $RPM_BUILD_ROOT/%{_datadir}/emacs/%{ver}/site-lisp/nemerle.el
526 install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}
527 install %{SOURCE7} $RPM_BUILD_ROOT%{_desktopdir}
528 install %{SOURCE8} $RPM_BUILD_ROOT%{_desktopdir}
529 install %{SOURCE9} $RPM_BUILD_ROOT%{_desktopdir}
530
531 [ -d build-nox ] && install build-nox/etc/DOC-* $RPM_BUILD_ROOT%{_datadir}/emacs/%{ver}/etc
532
533 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
534 # ERC is in separate spec
535 rm -fr $RPM_BUILD_ROOT%{_datadir}/emacs/%{ver}/lisp/erc
536
537 %clean
538 rm -rf $RPM_BUILD_ROOT
539
540 %post   common -p       /sbin/postshell
541 -/usr/sbin/fix-info-dir -c %{_infodir}
542
543 %postun common -p       /sbin/postshell
544 -/usr/sbin/fix-info-dir -c %{_infodir}
545
546 %triggerin nox -- emacs-X11
547 if [ -L %{_bindir}/emacs ]; then
548         rm -f %{_bindir}/emacs
549 fi
550
551 %triggerpostun nox -- emacs-X11
552 [ $2 = 0 ] || exit 0
553 if [ ! -L %{_bindir}/emacs ]; then
554         ln -sf emacs-nox %{_bindir}/emacs
555 fi
556
557 %post nox
558 if [ ! -x %{_bindir}/emacs -a ! -L %{_bindir}/emacs ]; then
559         ln -sf emacs-nox %{_bindir}/emacs
560 fi
561
562 %postun nox
563 [ $1 = 0 ] || exit 0
564 if [ -L %{_bindir}/emacs ]; then
565         rm -f %{_bindir}/emacs
566 fi
567
568 %files
569 %defattr(644,root,root,755)
570 %attr(755,root,root) %{_bindir}/emacs
571 %attr(755,root,root) %{_bindir}/emacs-%{ver}
572 %{_desktopdir}/emacs-%{default_emacs}.desktop
573 %{_pixmapsdir}/*
574 %{_iconsdir}/hicolor/16x16/apps/emacs*.png
575 %{_iconsdir}/hicolor/24x24/apps/emacs*.png
576 %{_iconsdir}/hicolor/32x32/apps/emacs*.png
577 %{_iconsdir}/hicolor/48x48/apps/emacs*.png
578 %{_iconsdir}/hicolor/128x128/apps/emacs*.png
579 %{_iconsdir}/hicolor/scalable/apps/emacs*.svg
580 %{_iconsdir}/hicolor/scalable/mimetypes/emacs*.svg
581
582 %files common
583 %defattr(644,root,root,755)
584 %config(noreplace) /etc/skel/.emacs
585 %attr(755,root,root) %{_bindir}/emacsclient
586 %attr(755,root,root) %{_bindir}/ebrowse
587 %{_mandir}/man1/ebrowse*
588 %{_mandir}/man1/emacs*
589 %{_infodir}/*
590
591 %dir %{_libdir}/emacs
592 %dir %{_libdir}/emacs/%{ver}
593 %dir %{_libdir}/emacs/%{ver}/*
594
595 %attr(2755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/movemail
596 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/digest-doc
597 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/fakemail
598 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/hexl
599 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/profile
600 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/rcs2log
601 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/sorted-doc
602 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/vcdiff
603 %attr(755,root,mail) %{_libdir}/emacs/%{ver}/*-linux/update-game-score
604
605 %dir %{_datadir}/emacs
606 %dir %{_datadir}/emacs/%{ver}
607 %dir %{_datadir}/emacs/%{ver}/site-lisp
608 %dir %{_datadir}/emacs/%{ver}/lisp
609 %dir %{_datadir}/emacs/%{ver}/leim
610 %dir %{_datadir}/emacs/%{ver}/lisp/calc
611 %dir %{_datadir}/emacs/%{ver}/lisp/calendar
612 %dir %{_datadir}/emacs/%{ver}/lisp/cedet
613 %dir %{_datadir}/emacs/%{ver}/lisp/cedet/ede
614 %dir %{_datadir}/emacs/%{ver}/lisp/cedet/semantic
615 %dir %{_datadir}/emacs/%{ver}/lisp/cedet/srecode
616 %dir %{_datadir}/emacs/%{ver}/lisp/emacs-lisp
617 %dir %{_datadir}/emacs/%{ver}/lisp/emulation
618 %dir %{_datadir}/emacs/%{ver}/lisp/eshell
619 %dir %{_datadir}/emacs/%{ver}/lisp/international
620 %dir %{_datadir}/emacs/%{ver}/lisp/language
621 %dir %{_datadir}/emacs/%{ver}/lisp/mail
622 %dir %{_datadir}/emacs/%{ver}/lisp/mh-e
623 %dir %{_datadir}/emacs/%{ver}/lisp/net
624 %dir %{_datadir}/emacs/%{ver}/lisp/nxml
625 %dir %{_datadir}/emacs/%{ver}/lisp/obsolete
626 %dir %{_datadir}/emacs/%{ver}/lisp/org
627 %dir %{_datadir}/emacs/%{ver}/lisp/play
628 %dir %{_datadir}/emacs/%{ver}/lisp/progmodes
629 %dir %{_datadir}/emacs/%{ver}/lisp/term
630 %dir %{_datadir}/emacs/%{ver}/lisp/textmodes
631 %dir %{_datadir}/emacs/%{ver}/lisp/url
632
633 %{_datadir}/emacs/site-lisp
634 %{_datadir}/emacs/%{ver}/etc
635 %{_datadir}/emacs/%{ver}/lisp/*.el
636 %{_datadir}/emacs/%{ver}/lisp/*.elc
637 %{_datadir}/emacs/%{ver}/lisp/README
638 %{_datadir}/emacs/%{ver}/lisp/calc/*.el
639 %{_datadir}/emacs/%{ver}/lisp/calc/*.elc
640 %{_datadir}/emacs/%{ver}/lisp/calc/README*
641 %{_datadir}/emacs/%{ver}/lisp/calendar/*.el
642 %{_datadir}/emacs/%{ver}/lisp/calendar/*.elc
643 %{_datadir}/emacs/%{ver}/lisp/emacs-lisp/*.el
644 %{_datadir}/emacs/%{ver}/lisp/emacs-lisp/*.elc
645 %{_datadir}/emacs/%{ver}/lisp/emulation/*.elc
646 %{_datadir}/emacs/%{ver}/lisp/eshell/*.elc
647 %{_datadir}/emacs/%{ver}/lisp/eshell/esh-groups.el
648 %{_datadir}/emacs/%{ver}/lisp/international/*.el
649 %{_datadir}/emacs/%{ver}/lisp/international/*.elc
650 %{_datadir}/emacs/%{ver}/lisp/international/README
651 %{_datadir}/emacs/%{ver}/lisp/language/*.el
652 %{_datadir}/emacs/%{ver}/lisp/language/*.elc
653 #%{_datadir}/emacs/%{ver}/lisp/cedet/*.el
654 %{_datadir}/emacs/%{ver}/lisp/cedet/*.elc
655 %{_datadir}/emacs/%{ver}/lisp/cedet/ede/*.el
656 %{_datadir}/emacs/%{ver}/lisp/cedet/ede/*.elc
657 %{_datadir}/emacs/%{ver}/lisp/cedet/semantic/*.el
658 %{_datadir}/emacs/%{ver}/lisp/cedet/semantic/*.elc
659 %{_datadir}/emacs/%{ver}/lisp/cedet/srecode/*.el
660 %{_datadir}/emacs/%{ver}/lisp/cedet/srecode/*.elc
661 %{_datadir}/emacs/%{ver}/lisp/mail/blessmail.el
662 %{_datadir}/emacs/%{ver}/lisp/mail/*.elc
663 %{_datadir}/emacs/%{ver}/lisp/mh-e/*.el
664 %{_datadir}/emacs/%{ver}/lisp/mh-e/*.elc
665 %{_datadir}/emacs/%{ver}/lisp/net/*.elc
666 %{_datadir}/emacs/%{ver}/lisp/nxml/*.elc
667 %{_datadir}/emacs/%{ver}/lisp/nxml/TODO
668 %{_datadir}/emacs/%{ver}/lisp/obsolete/*.elc
669 %{_datadir}/emacs/%{ver}/lisp/org/*.elc
670 %{_datadir}/emacs/%{ver}/lisp/play/bruce.el
671 %{_datadir}/emacs/%{ver}/lisp/play/*.elc
672 %{_datadir}/emacs/%{ver}/lisp/progmodes/*.elc
673 %{_datadir}/emacs/%{ver}/lisp/term/*.el
674 %{_datadir}/emacs/%{ver}/lisp/term/*.elc
675 %{_datadir}/emacs/%{ver}/lisp/textmodes/*.elc
676 %{_datadir}/emacs/%{ver}/lisp/url/*.elc
677
678 %dir /var/games/emacs
679 /var/games/emacs/tetris-scores
680 /var/games/emacs/snake-scores
681
682 %{_datadir}/emacs/%{ver}/site-lisp/subdirs.el
683 %{_datadir}/emacs/%{ver}/site-lisp/tuareg.el
684 %{_datadir}/emacs/%{ver}/site-lisp/nemerle.el
685
686 %files extras
687 %defattr(644,root,root,755)
688 %attr(755,root,root) %{_bindir}/b2m
689 %attr(755,root,root) %{_bindir}/grep-changelog
690 %attr(755,root,root) %{_bindir}/rcs-checkin
691 %{_mandir}/man1/b2m*
692 %{_mandir}/man1/grep-changelog*
693 %{_mandir}/man1/rcs-checkin*
694
695 %files el
696 %defattr(644,root,root,755)
697 %{_datadir}/emacs/%{ver}/lisp/*.el.gz
698 %{_datadir}/emacs/%{ver}/lisp/calc/*.el.gz
699 %{_datadir}/emacs/%{ver}/lisp/calendar/*.el.gz
700 %{_datadir}/emacs/%{ver}/lisp/emacs-lisp/*.el.gz
701 %{_datadir}/emacs/%{ver}/lisp/emulation/*.el.gz
702 %{_datadir}/emacs/%{ver}/lisp/eshell/*.el.gz
703 %{_datadir}/emacs/%{ver}/lisp/international/*.el.gz
704 %{_datadir}/emacs/%{ver}/lisp/language/*.el.gz
705 %{_datadir}/emacs/%{ver}/lisp/mail/*.el.gz
706 %{_datadir}/emacs/%{ver}/lisp/mh-e/*.el.gz
707 %{_datadir}/emacs/%{ver}/lisp/net/*.el.gz
708 %{_datadir}/emacs/%{ver}/lisp/nxml/*.el.gz
709 %{_datadir}/emacs/%{ver}/lisp/obsolete/*.el
710 %{_datadir}/emacs/%{ver}/lisp/obsolete/*.el.gz
711 %{_datadir}/emacs/%{ver}/lisp/org/*.el.gz
712 %{_datadir}/emacs/%{ver}/lisp/play/*.el.gz
713 %{_datadir}/emacs/%{ver}/lisp/progmodes/*.el.gz
714 %{_datadir}/emacs/%{ver}/lisp/term/*.el.gz
715 %{_datadir}/emacs/%{ver}/lisp/textmodes/*.el.gz
716 %{_datadir}/emacs/%{ver}/lisp/url/*.el.gz
717
718 %files leim
719 %defattr(644,root,root,755)
720 %dir %{_datadir}/emacs/%{ver}/leim/ja-dic
721 %dir %{_datadir}/emacs/%{ver}/leim/quail
722 %{_datadir}/emacs/%{ver}/leim/leim-list.el
723 %{_datadir}/emacs/%{ver}/leim/quail/*.elc
724 %{_datadir}/emacs/%{ver}/leim/ja-dic/*.elc
725
726 %files leim-el
727 %defattr(644,root,root,755)
728 %{_datadir}/emacs/%{ver}/leim/quail/*.el.gz
729 %{_datadir}/emacs/%{ver}/leim/ja-dic/*.el.gz
730
731 %if %{with nox} && %{?default_emacs} != "nox"
732 %files nox
733 %defattr(644,root,root,755)
734 %attr(755,root,root) %{_bindir}/emacs-nox
735 %{_desktopdir}/emacs-nox.desktop
736 %endif
737
738 %if %{with athena} && %{?default_emacs} != "athena"
739 %files athena
740 %defattr(644,root,root,755)
741 %attr(755,root,root) %{_bindir}/emacs-athena
742 %{_desktopdir}/emacs-athena.desktop
743 %endif
744
745 %if %{with gtk} && %{?default_emacs} != "gtk"
746 %files gtk
747 %defattr(644,root,root,755)
748 %attr(755,root,root) %{_bindir}/emacs-gtk
749 %{_desktopdir}/emacs-gtk.desktop
750 %endif
751
752 %if %{with motif} && %{?default_emacs} != "motif"
753 %files motif
754 %defattr(644,root,root,755)
755 %attr(755,root,root) %{_bindir}/emacs-motif
756 %{_desktopdir}/emacs-motif.desktop
757 %endif
758
759 %files gnus
760 %defattr(644,root,root,755)
761 %dir %{_datadir}/emacs/%{ver}/lisp/gnus
762 %{_datadir}/emacs/%{ver}/lisp/gnus/*.*
763 %exclude %{_datadir}/emacs/%{ver}/lisp/gnus/*.el.gz
764
765 %files gnus-el
766 %defattr(644,root,root,755)
767 %{_datadir}/emacs/%{ver}/lisp/gnus/*.el.gz
This page took 0.110041 seconds and 4 git commands to generate.