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