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