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