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