1 # _with_postgresql - postgresql support
2 # _with_gtk - gtk enabled version
4 %define basepkgver 1.55
5 Summary: The XEmacs -- Emacs: The Next Generation
6 Summary(pl): XEmacs -- Emacs nastêpnej generacji
11 Group: Applications/Editors/Emacs
12 Group(de): Applikationen/Editors/Emacs
13 Group(pl): Aplikacje/Edytory/Emacs
14 Source0: ftp://ftp.xemacs.org/%{name}-%{ver}/%{name}-%{version}.tar.gz
15 Source1: ftp://ftp.xemacs.org/%{name}-%{ver}/%{name}-%{version}-elc.tar.gz
16 Source2: ftp://ftp.xemacs.org/packages/%{name}-base-%{basepkgver}-pkg.tar.gz
17 Source3: %{name}.desktop
18 Source4: %{name}.ad-pl
19 Source5: %{name}-default.el
20 Source6: %{name}-ogony-mule.el
21 Source7: %{name}-ogony-nomule.el
23 Patch0: %{name}-info.patch
24 Patch1: %{name}-archlibdir.patch
25 Patch2: %{name}-fix_ldflafs.patch
26 URL: http://www.xemacs.org/
27 BuildRequires: XFree86-devel
28 BuildRequires: motif-devel
29 BuildRequires: zlib-devel
30 BuildRequires: libtiff-devel
31 BuildRequires: libjpeg-devel
32 BuildRequires: libpng >= 1.0.8
33 %{?_with_postgresql:BuildRequires: postgresql-devel >= 7.1}
34 BuildRequires: gpm-devel
35 BuildRequires: ncurses-devel >= 5.0
36 BuildRequires: gpm-devel
37 %if %{?_with_gtk:1}%{!?_with_gtk:0}
38 BuildRequires: gtk+-devel >= 1.2.10
39 BuildRequires: glib-devel
42 Requires: %{name}-common = %{version}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 XEmacs is a highly customizable open source text editor and
47 application development system. XEmacs is a version of Emacs,
48 compatible with and containing many improvements over GNU Emacs,
49 written by Richard Stallman of the Free Software Foundation. It was
50 originally based on an early release of GNU Emacs version 19, and has
51 tracked subsequent releases of GNU Emacs as they have become
52 available. This XEmacs distribution has been splitted in some rpm:
54 xemacs-common - common files needed by xemacs and xemacs-nox packages
55 xemacs - XEmacs binary with both X11 and TTY support xemacs-nox -
56 XEmacs binary with TTY support only xemacs-extras - files in conflict
59 Install xemacs-extras if you haven't emacs installed.
62 XEmacs jest odmian± Emacsa, zgodn± (i zawieraj±c± wiele udogodnieñ) z
63 GNU Emacsem tworzonym przez Richarda Stallmana z Free Software
64 Foundation. Wywodzi siê z wczesnych odmian GNU Emacs 19, wprowadza
65 wiele mi³ych ulepszeñ nie trac±c jednak wiêzi z oryginaln± wersj±.
67 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
69 xemacs-common - pakiet zawieraj±cy pliki wspó³dzielone przez pakiety
70 xemacs i xemacs-nox xemacs - XEmacs skompilowany ze wsparciem dla X11
71 i konsoli xemacs-nox - XEmacs skompilowany bez wsparcia dla X11
72 (pracuje tylko na konsoli tekstowej) xemacs-extras - pliki wchodz±ce w
73 sk³ad dystrybucji GNU Emacs
75 Do pracy niezbêdne s± xemacs-common oraz xemacs b±d¼ xemacs-nox.
76 Zainstaluj tak¿e xemacs-extras je¶li nie posiadasz GNU Emacsa.
79 Summary: Common part of XEmacs distribution
80 Group: Applications/Editors/Emacs
81 Group(de): Applikationen/Editors/Emacs
82 Group(pl): Aplikacje/Edytory/Emacs
83 Provides: xemacs-base-pkg
86 Common files of XEmacs distribution. This package does not contain
87 XEmacs editor binary, you must install xemacs or xemacs-nox package to
88 use XEmacs -- Emacs: The Next Generation editor.
91 Summary: XEmacs binary compiled without X11 support
92 Group: Applications/Editors/Emacs
93 Group(de): Applikationen/Editors/Emacs
94 Group(pl): Aplikacje/Edytory/Emacs
95 Requires: %{name}-common = %{version}
96 Provides: %{name} = %{version}
99 XEmacs binary compiled with TTY support only, without X11 support.
101 %description nox -l pl
102 XEmacs skompilowany bez wsparcia dla X11 (pracuje tylko na konsoli lub
106 Summary: files which conflict with GNU Emacs
107 Summary(pl): wspólne pliki XEmacsa i GNU Emacsa
108 Group: Applications/Editors/Emacs
109 Group(de): Applikationen/Editors/Emacs
110 Group(pl): Aplikacje/Edytory/Emacs
111 Requires: %{name} = %{version}
115 These files are common between GNU Emacs and XEmacs. If you do not
116 have GNU Emacs installed, be sure to install this package as well when
119 %description extras -l pl
120 S± to wpólne pliki GNU Emacs i XEmacs. Je¶li nie zainstalowa³e¶ GNU
121 Emacsa, to koniecznie zainstaluj ten pakiet.
130 CFLAGS="-I%{rpmcflags}"
131 CPPFLAGS="-I%{rpmcflags}"
132 LDFLAGS="%{rpmldflags} -lc"
133 sitelispdir=%{_libdir}/%{name}/site-lisp
134 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
137 ./configure %{_target_platform} \
138 --prefix=%{_prefix} \
139 --infodir=%{_infodir} \
140 --mandir=%{_mandir}/man1 \
141 --datadir=%{_datadir} \
142 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
145 --without-postgresql \
157 --without-dragndrop \
160 sitelispdir=%{_libdir}/%{name}/site-lisp \
162 cp src/xemacs src/xemacs-nox
166 ./configure %{_target_platform} \
167 --prefix=%{_prefix} \
168 --infodir=%{_infodir} \
169 --mandir=%{_mandir}/man1 \
170 --datadir=%{_datadir} \
171 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
174 --with%{?!_with_postgresql:out}-postgresql \
181 --with%{?!_with_gtk:out}-gtk \
182 %{?!_with_gtk:--with-x11 --with-menubars=lucid --with-scrollbars=motif} \
183 %{?!_with_gtk:--with-dialogs=motif --with-widgets=motif} \
189 --without-dragndrop \
192 # if you want to xemacs sings and plays sounds add option
193 # --with-sound=native
195 # --lispdir=%{_datadir}/%{name}/lisp \
196 # --pkgdir=%{_datadir}/%{name}/lisp \
197 # --etcdir=%{_datadir}/%{name}/etc \
198 # --cflags="$RPM_OPT_FLAGS" \
199 # --error-checking=none \
201 # --with-session=yes \
203 sitelispdir=%{_libdir}/%{name}/site-lisp \
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Development/Editors,%{_pixmapsdir},/var/lock/xemacs} \
209 $RPM_BUILD_ROOT{%{_mandir}/{ja/man1,man1},%{_prefix}/X11R6/lib/X11/app-defaults/pl} \
210 $RPM_BUILD_ROOT%{_datadir}/%{name}/lisp \
211 $RPM_BUILD_ROOT%{_libdir}/%{name} \
212 $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/{etc,lib-src}
214 %{__make} install-arch-dep install-arch-indep \
215 prefix=$RPM_BUILD_ROOT%{_prefix} \
216 infodir=$RPM_BUILD_ROOT%{_infodir} \
217 mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
218 datadir=$RPM_BUILD_ROOT%{_datadir} \
220 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
222 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
224 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/default.el
225 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-mule.el
226 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-nomule.el
227 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
229 #mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
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
235 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
236 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/Emacs
237 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
238 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
239 cat %{SOURCE4} >>$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
241 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/xemacs-ja.1 \
242 $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
244 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
245 $RPM_BUILD_ROOT%{_bindir}/xemacs
247 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/%{_target_platform}/gnuserv \
248 $RPM_BUILD_ROOT%{_bindir}/gnuserv
250 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
252 install src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
254 # remove .el file if corresponding .elc file exists
255 find $RPM_BUILD_ROOT -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
256 rm -f $RPM_BUILD_ROOT%{_bindir}/{c,e}tags
257 # hmm, maybe xemacs-devel is necessary?
258 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/include
259 rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
260 rm -f $RPM_BUILD_ROOT%{_infodir}/{info,standards,texinfo}.info*
262 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
264 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
265 etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
268 rm -rf $RPM_BUILD_ROOT
271 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
274 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
277 %defattr(644,root,root,755)
278 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
279 %lang(pl) %{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
280 %attr(755,root,root) %{_bindir}/gnu*
281 %attr(755,root,root) %{_bindir}/xemacs
282 %attr(755,root,root) %{_bindir}/ootags
283 %attr(755,root,root) %{_bindir}/ellcc
284 %{_applnkdir}/Development/Editors/xemacs.desktop
286 %{_mandir}/man1/gnuattach.1*
287 %{_mandir}/man1/gnuclient.1*
288 %{_mandir}/man1/gnudoit.1*
289 %{_mandir}/man1/gnuserv.1*
290 %{_datadir}/%{name}-%{version}%{_sysconfdir}/custom
291 %{_datadir}/%{name}-%{version}%{_sysconfdir}/eos
292 %{_datadir}/%{name}-%{version}%{_sysconfdir}/toolbar
293 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.png
294 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xbm
295 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xpm
298 %defattr(644,root,root,755)
300 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL
301 %doc %lang(de) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.de
302 %doc %lang(fr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.fr
303 %doc %lang(hr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.hr
304 %doc %lang(ja) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ja
305 %doc %lang(ko) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ko
306 %doc %lang(no) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.no
307 %doc %lang(pl) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.pl
308 %doc %lang(ro) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ro
309 %doc %lang(ru) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ru
310 %doc %lang(th) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.th
311 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/[A-SU-Z]*
317 %dir %{_datadir}/%{name}-%{version}
318 # do not know it is necessary
319 %{_datadir}/%{name}-%{version}/%{_target_platform}/include
320 %{_datadir}/%{name}-%{version}/%{_target_platform}/modules
321 %attr(755,root,root) %{_datadir}/%{name}-%{version}/%{_target_platform}/[Dacdfghprsvwy]*
322 %attr(755,root,root) %{_datadir}/%{name}-%{version}/%{_target_platform}/m[am]*
323 %attr(755,root,root) %{_datadir}/%{name}-%{version}/%{_target_platform}/mov*
325 %{_datadir}/%{name}-%{version}/lisp/
327 %dir %{_datadir}/%{name}-packages
328 %{_datadir}/%{name}-packages/etc
329 %{_datadir}/%{name}-packages/lisp
330 %{_datadir}/%{name}-packages/lib-src
332 %{_mandir}/man1/xemacs.1*
333 %lang(ja) %{_mandir}/ja/man1/*
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_bindir}/xemacs-nox
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_bindir}/b2m
346 %attr(755,root,root) %{_bindir}/rcs-checkin