]> git.pld-linux.org Git - packages/xemacs.git/blob - xemacs.spec
- release 3.
[packages/xemacs.git] / xemacs.spec
1 %define         ver             21.1
2 %define         basepkgver      1.46
3 Summary:        The XEmacs -- Emacs: The Next Generation
4 Summary(pl):    XEmacs -- Emacs nastêpnej generacji
5 Name:           xemacs
6 Version:        %{ver}.12
7 Release:        3
8 License:        GPL
9 Group:          Applications/Editors/Emacs
10 Group(pl):      Aplikacje/Edytory/Emacs
11 Source0:        ftp://ftp.xemacs.org/pub/xemacs/%{name}-%{ver}/%{name}-%{version}.tar.bz2
12 Source1:        ftp://ftp.xemacs.org/pub/xemacs/%{name}-%{ver}/%{name}-%{version}-elc.tar.gz
13 Source2:        ftp://ftp.xemacs.org/pub/xemacs/packages/%{name}-base-%{basepkgver}-pkg.tar.gz
14 Source3:        %{name}.desktop
15 Source4:        %{name}.ad-pl
16 Source5:        %{name}-default.el
17 Source6:        %{name}-kbd_pl
18 Patch0:         %{name}-info.patch
19 Patch1:         %{name}-sitelisp.patch
20 Patch2:         %{name}-fix_ldflafs.patch
21 Patch3:         %{name}-EMACSLOADPATH_fix.patch
22 Patch4:         %{name}-no-antoloads.patch
23 URL:            http://www.xemacs.org/
24 BuildRequires:  XFree86-devel
25 BuildRequires:  zlib-devel
26 BuildRequires:  libtiff-devel
27 BuildRequires:  libjpeg-devel
28 BuildRequires:  libpng >= 1.0.8
29 BuildRequires:  gpm-devel
30 BuildRequires:  ncurses-devel >= 5.0
31 Requires:       ctags
32 Requires:       %{name}-common = %{version}
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 XEmacs is a highly customizable open source text editor and
37 application development system.  XEmacs is a version of Emacs,
38 compatible with and containing many improvements over GNU Emacs,
39 written by Richard Stallman of the Free Software Foundation. It was
40 originally based on an early release of GNU Emacs version 19, and has
41 tracked subsequent releases of GNU Emacs as they have become
42 available. This XEmacs distribution has been splitted in some rpm:
43
44 xemacs-common - common files needed by xemacs and xemacs-nox packages 
45 xemacs        - XEmacs binary with both X11 and TTY support
46 xemacs-nox    - XEmacs binary with TTY support only
47 xemacs-extras - files in conflict with emacs
48
49 Install xemacs-extras if you haven't emacs installed.
50
51 %description -l pl 
52 XEmacs jest odmian± Emacsa, zgodn± (i zawieraj±c± wiele udogodnieñ) 
53 z GNU Emacsem tworzonym przez Richarda Stallmana z Free Software
54 Foundation. Wywodzi siê z wczesnych odmian GNU Emacs 19, wprowadza
55 wiele mi³ych ulepszeñ nie trac±c jednak wiêzi z oryginaln± wersj±.
56
57 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
58
59 xemacs-common - pakiet zawieraj±cy pliki wspó³dzielone przez pakiety 
60                   xemacs i xemacs-nox 
61 xemacs        - XEmacs skompilowany ze wsparciem dla X11 i konsoli
62 xemacs-nox    - XEmacs skompilowany bez wsparcia dla X11 (pracuje 
63                 tylko na konsoli tekstowej)
64 xemacs-extras - pliki wchodz±ce w sk³ad dystrybucji GNU Emacs
65
66 Do pracy niezbêdne s± xemacs-common oraz xemacs b±d¼ xemacs-nox.
67 Zainstaluj tak¿e xemacs-extras je¶li nie posiadasz GNU Emacsa.
68
69 %package common
70 Summary:        Common part of XEmacs distribution
71 Group:          Applications/Editors/Emacs
72 Group(pl):      Aplikacje/Edytory/Emacs
73 Provides:       xemacs-base-pkg
74
75 %description common
76 Common files of XEmacs distribution. This package does not contain 
77 XEmacs editor binary, you must install xemacs or xemacs-nox package
78 to use XEmacs -- Emacs: The Next Generation editor.
79
80 %package nox
81 Summary:        XEmacs binary compiled without X11 support
82 Group:          Applications/Editors/Emacs
83 Group(pl):      Aplikacje/Edytory/Emacs
84 Requires:       %{name}-common = %{version}
85 Provides:       %{name} = %{version}
86
87 %description nox
88 XEmacs binary compiled with TTY support only, without X11 support.
89
90 %description nox -l pl
91 XEmacs skompilowany bez wsparcia dla X11 (pracuje tylko na konsoli
92 lub w okienku xterma).
93
94 %package el
95 Summary:        .el source files for XEmacs
96 Summary(pl):    Pliki ¼ród³owe procedur w eLispie do XEmacsa
97 Group:          Applications/Editors/Emacs
98 Group(pl):      Aplikacje/Edytory/Emacs
99 Requires:       %{name}-common = %{version}
100
101 %description el
102 .el source files -- not necessary to run XEmacs.
103
104 %description el -l pl
105 Pliki ¼ród³owe procedur w eLispie do XEmacsa.
106
107 %package extras
108 Summary:        files which conflict with GNU Emacs
109 Summary(pl):    wspólne pliki XEmacsa i GNU Emacsa
110 Group:          Applications/Editors/Emacs
111 Group(pl):      Aplikacje/Edytory/Emacs
112 Requires:       %{name} = %{version}
113 Conflicts:      emacs
114
115 %description extras
116 These files are common between GNU Emacs and XEmacs. If you do not
117 have GNU Emacs installed, be sure to install this package as well when
118 you install XEmacs.
119
120 %description extras -l pl
121 S± to wpólne pliki GNU Emacs i XEmacs. Je¶li nie zainstalowa³e¶ GNU
122 Emacsa, to koniecznie zainstaluj ten pakiet.
123
124 %prep
125 %setup0 -q -b1 -a2
126 %patch0 -p1
127 %patch1 -p1
128 %patch2 -p1
129 %patch3 -p1
130 %patch4 -p1
131
132 %build
133 autoconf
134 CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}"
135 CPPFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}"
136 LDFLAGS="%{!?debug:-s} -lc"
137 sitelispdir=%{_libdir}/%{name}/site-lisp
138 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
139
140 # no X 
141 ./configure %{_target_platform} \
142         --prefix=%{_prefix} \
143         --infodir=%{_infodir} \
144         --mandir=%{_mandir}/man1 \
145         --datadir=%{_datadir} \
146         --lockdir=/var/lock/xemacs/ \
147         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
148         --with-site-lisp \
149         --without-sound \
150         --without-x11 \
151         --without-jpeg \
152         --without-png \
153         --without-xpm \
154         --with-gpm \
155         --with-ncurses \
156         --with-database=no \
157         --without-tiff \
158         --without-dnet \
159         --without-ldap \
160         --without-dragndrop \
161         --without-mule \
162
163 sitelispdir=%{_libdir}/%{name}/site-lisp \
164 %{__make}
165 cp src/xemacs src/xemacs-nox
166 %{__make} distclean
167
168 # X
169 autoconf
170 ./configure %{_target_platform} \
171         --prefix=%{_prefix} \
172         --infodir=%{_infodir} \
173         --mandir=%{_mandir}/man1 \
174         --datadir=%{_datadir} \
175         --lockdir=/var/lock/xemacs/ \
176         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
177         --with-site-lisp \
178         --without-sound \
179         --with-x11 \
180         --with-jpeg \
181         --with-png \
182         --with-xpm \
183         --with-gpm \
184         --with-ncurses \
185         --with-dialogs=athena \
186         --with-database=no \
187         --without-tiff \
188         --without-dnet \
189         --without-ldap \
190         --without-dragndrop \
191         --without-mule 
192
193 # if you want to xemacs sings and plays sounds add option 
194 #       --with-sound=native 
195
196 #       --lispdir=%{_datadir}/%{name}/lisp \
197 #       --pkgdir=%{_datadir}/%{name}/lisp \
198 #       --etcdir=%{_datadir}/%{name}/etc \
199 #       --cflags="$RPM_OPT_FLAGS" \
200 #       --error-checking=none \
201 #       --debug=no \
202 #       --with-session=yes \
203
204 sitelispdir=%{_libdir}/%{name}/site-lisp \
205 %{__make}
206
207 %install
208 rm -rf $RPM_BUILD_ROOT
209 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Development/Editors,/var/lock/xemacs} \
210         $RPM_BUILD_ROOT{%{_mandir}/{ja/man1,man1},%{_prefix}/X11R6/lib/X11/{,pl}/app-defaults} \
211         $RPM_BUILD_ROOT%{_datadir}/%{name}/lisp \
212         $RPM_BUILD_ROOT%{_libdir}/%{name} \
213         $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/{etc,lib-src}
214
215 %{__make} install-arch-dep install-arch-indep gzip-el \
216         prefix=$RPM_BUILD_ROOT%{_prefix} \
217         infodir=$RPM_BUILD_ROOT%{_infodir} \
218         mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
219         datadir=$RPM_BUILD_ROOT%{_datadir} \
220
221 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
222 install %{SOURCE4} $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/pl/app-defaults/Emacs
223
224 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - ; cd lisp/xemacs-base; gzip -9nf *.el)
225
226 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/default.el
227 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/kbd_pl
228
229 mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
230
231 [ -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp ] || \
232 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp
233 ln -s %{_datadir}/%{name}/site-lisp $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lisp
234
235 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/etc/Emacs.ad \
236         $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/Emacs
237
238 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/etc/xemacs-ja.1 \
239         $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
240
241 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
242         $RPM_BUILD_ROOT%{_bindir}/xemacs
243
244 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
245         etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
246
247 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
248
249 install -s src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
250
251 %clean
252 rm -rf $RPM_BUILD_ROOT
253
254 %post
255 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 
256
257 %postun
258 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 
259
260 %files
261 %defattr(644,root,root,755)
262 %{_applnkdir}/Development/Editors/xemacs.desktop
263 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
264 %lang(pl) %{_prefix}/X11R6/lib/X11/pl/app-defaults/Emacs
265 %attr(755,root,root) %{_bindir}/gnu*
266 %attr(755,root,root) %{_bindir}/xemacs
267 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/gnuserv
268 %{_mandir}/man1/gnuattach.1*
269 %{_mandir}/man1/gnuclient.1*
270 %{_mandir}/man1/gnudoit.1*
271 %{_mandir}/man1/gnuserv.1*
272
273 %files common
274 %defattr(644,root,root,755)
275 %doc *.gz etc/*.gz
276 %doc %{_datadir}/*/etc/TUTORIAL
277 %doc %lang(de) %{_datadir}/*/etc/TUTORIAL.de
278 %doc %lang(fr) %{_datadir}/*/etc/TUTORIAL.fr
279 %doc %lang(hr) %{_datadir}/*/etc/TUTORIAL.hr
280 %doc %lang(ja) %{_datadir}/*/etc/TUTORIAL.ja
281 %doc %lang(ko) %{_datadir}/*/etc/TUTORIAL.ko
282 %doc %lang(no) %{_datadir}/*/etc/TUTORIAL.no
283 %doc %lang(pl) %{_datadir}/*/etc/TUTORIAL.pl
284 %doc %lang(ro) %{_datadir}/*/etc/TUTORIAL.ro
285 %doc %lang(ru) %{_datadir}/*/etc/TUTORIAL.ru
286 %doc %lang(th) %{_datadir}/*/etc/TUTORIAL.th
287 %doc %{_libdir}/%{name}-%{version}/*/DOC
288 %doc %{_datadir}/*/etc/*README*
289 %doc %{_datadir}/*/etc/refcard.ps.gz
290 %doc %{_datadir}/*/etc/refcard.tex
291 %doc %{_datadir}/*/etc/sample.Xdefaults
292 %doc %{_datadir}/*/etc/sample.emacs
293 %doc %{_datadir}/*/etc/aliases.ksh
294 %doc %{_datadir}/*/etc/editclient.sh
295 %doc %{_datadir}/*/lisp/ChangeLog*
296 %doc %{_datadir}/*/lisp/README
297 %doc %{_datadir}/*/lisp/term/README
298
299 %{_libdir}/%{name}
300 %dir %{_libdir}/%{name}-%{version}
301 %dir %{_libdir}/%{name}-%{version}/%{_target_platform}
302
303 %{_datadir}/%{name}
304 %dir %{_datadir}/%{name}-%{version}
305 %dir %{_datadir}/%{name}-%{version}/etc
306 %{_datadir}/%{name}-%{version}/etc/custom
307 %{_datadir}/%{name}-%{version}/etc/eos
308 %{_datadir}/%{name}-%{version}/etc/idd
309 %{_datadir}/%{name}-%{version}/etc/photos
310 %{_datadir}/%{name}-%{version}/etc/toolbar
311 %{_datadir}/%{name}-%{version}/etc/*.xbm
312 %{_datadir}/%{name}-%{version}/etc/*.xpm
313 %{_datadir}/%{name}-%{version}/etc/*.png
314 %{_datadir}/%{name}-%{version}/etc/ms-kermit*
315 %{_datadir}/%{name}-%{version}/etc/package-index.LATEST.pgp
316
317 %dir %{_datadir}/%{name}-%{version}/lisp
318 %{_datadir}/%{name}-%{version}/lisp/*.elc
319 %dir %{_datadir}/%{name}-%{version}/lisp/term
320 %{_datadir}/%{name}-%{version}/lisp/term/*.elc
321
322 %dir %{_datadir}/%{name}-packages
323 %dir %{_datadir}/%{name}-packages/etc
324 %dir %{_datadir}/%{name}-packages/lib-src
325 %dir %{_datadir}/%{name}-packages/lisp
326 %dir %{_datadir}/%{name}-packages/lisp/xemacs-base
327 %{_datadir}/%{name}-packages/lisp/xemacs-base/*.elc
328 %{_datadir}/%{name}-packages/lisp/default.el
329 %{_datadir}/%{name}-packages/lisp/kbd_pl
330
331 %attr(2755,root,mail) %{_libdir}/%{name}-%{version}/*/movemail
332 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/cvtmail
333 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/digest-doc
334 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/fakemail
335 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/hexl
336 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/make-docfile
337 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/make-path
338 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/mmencode
339 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/profile
340 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/sorted-doc
341 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/yow
342 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/add-big-package.sh
343 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/gzip-el.sh
344 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/rcs2log
345 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/vcdiff
346 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/wakeup
347
348 %{_mandir}/man1/xemacs.1*
349 %lang(ja) %{_mandir}/ja/man1/*
350
351 %{_infodir}/custom.info*gz
352 %{_infodir}/external-widget.info*gz
353 %{_infodir}/internals.info*gz
354 %{_infodir}/lispref.info*gz
355 %{_infodir}/new-users-guide.info*gz
356 %{_infodir}/term.info*gz
357 %{_infodir}/widget.info*gz
358 %{_infodir}/xemacs-faq.info*gz
359 %{_infodir}/xemacs.info*gz
360
361 /var/lock/xemacs
362
363 %files nox
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_bindir}/xemacs-nox
366
367 %files el 
368 %defattr(644,root,root,755)
369
370 %{_datadir}/%{name}-%{version}/lisp/*.el.gz
371 %{_datadir}/%{name}-%{version}/lisp/term/*.el.gz
372 %{_datadir}/%{name}-packages/lisp/xemacs-base/*.el.gz
373
374 %files extras
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_bindir}/b2m
377 %attr(755,root,root) %{_bindir}/rcs-checkin
This page took 0.081725 seconds and 4 git commands to generate.