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