1 # _with_postgresql - postgresql support
2 # _with_gtk - gtk enabled version
4 %define basepkgver 1.53
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/pub/xemacs/%{name}-%{ver}/%{name}-%{version}.tar.gz
15 Source1: ftp://ftp.xemacs.org/pub/xemacs/%{name}-%{ver}/%{name}-%{version}-elc.tar.gz
16 Source2: ftp://ftp.xemacs.org/pub/xemacs/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 Patch3: %{name}-event.patch
27 URL: http://www.xemacs.org/
28 BuildRequires: XFree86-devel
29 BuildRequires: motif-devel
30 BuildRequires: zlib-devel
31 BuildRequires: libtiff-devel
32 BuildRequires: libjpeg-devel
33 BuildRequires: libpng >= 1.0.8
34 %{?_with_postgresql:BuildRequires: postgresql-devel >= 7.1}
35 BuildRequires: gpm-devel
36 BuildRequires: ncurses-devel >= 5.0
37 BuildRequires: gpm-devel
38 %if %{?_with_gtk:1}%{!?_with_gtk:0}
39 BuildRequires: gtk+-devel >= 1.2.10
40 BuildRequires: glib-devel
43 Requires: %{name}-common = %{version}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 XEmacs is a highly customizable open source text editor and
48 application development system. XEmacs is a version of Emacs,
49 compatible with and containing many improvements over GNU Emacs,
50 written by Richard Stallman of the Free Software Foundation. It was
51 originally based on an early release of GNU Emacs version 19, and has
52 tracked subsequent releases of GNU Emacs as they have become
53 available. This XEmacs distribution has been splitted in some rpm:
55 xemacs-common - common files needed by xemacs and xemacs-nox packages
56 xemacs - XEmacs binary with both X11 and TTY support xemacs-nox -
57 XEmacs binary with TTY support only xemacs-extras - files in conflict
60 Install xemacs-extras if you haven't emacs installed.
63 XEmacs jest odmian± Emacsa, zgodn± (i zawieraj±c± wiele udogodnieñ) z
64 GNU Emacsem tworzonym przez Richarda Stallmana z Free Software
65 Foundation. Wywodzi siê z wczesnych odmian GNU Emacs 19, wprowadza
66 wiele mi³ych ulepszeñ nie trac±c jednak wiêzi z oryginaln± wersj±.
68 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
70 xemacs-common - pakiet zawieraj±cy pliki wspó³dzielone przez pakiety
71 xemacs i xemacs-nox xemacs - XEmacs skompilowany ze wsparciem dla X11
72 i konsoli xemacs-nox - XEmacs skompilowany bez wsparcia dla X11
73 (pracuje tylko na konsoli tekstowej) xemacs-extras - pliki wchodz±ce w
74 sk³ad dystrybucji GNU Emacs
76 Do pracy niezbêdne s± xemacs-common oraz xemacs b±d¼ xemacs-nox.
77 Zainstaluj tak¿e xemacs-extras je¶li nie posiadasz GNU Emacsa.
80 Summary: Common part of XEmacs distribution
81 Group: Applications/Editors/Emacs
82 Group(de): Applikationen/Editors/Emacs
83 Group(pl): Aplikacje/Edytory/Emacs
84 Provides: xemacs-base-pkg
87 Common files of XEmacs distribution. This package does not contain
88 XEmacs editor binary, you must install xemacs or xemacs-nox package to
89 use XEmacs -- Emacs: The Next Generation editor.
92 Summary: XEmacs binary compiled without X11 support
93 Group: Applications/Editors/Emacs
94 Group(de): Applikationen/Editors/Emacs
95 Group(pl): Aplikacje/Edytory/Emacs
96 Requires: %{name}-common = %{version}
97 Provides: %{name} = %{version}
100 XEmacs binary compiled with TTY support only, without X11 support.
102 %description nox -l pl
103 XEmacs skompilowany bez wsparcia dla X11 (pracuje tylko na konsoli lub
107 Summary: files which conflict with GNU Emacs
108 Summary(pl): wspólne pliki XEmacsa i GNU Emacsa
109 Group: Applications/Editors/Emacs
110 Group(de): Applikationen/Editors/Emacs
111 Group(pl): Aplikacje/Edytory/Emacs
112 Requires: %{name} = %{version}
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
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.
134 CFLAGS="-I%{rpmcflags}"
135 CPPFLAGS="-I%{rpmcflags}"
136 LDFLAGS="%{rpmldflags} -lc"
137 sitelispdir=%{_libdir}/%{name}/site-lisp
138 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
141 ./configure %{_target_platform} \
142 --prefix=%{_prefix} \
143 --infodir=%{_infodir} \
144 --mandir=%{_mandir}/man1 \
145 --datadir=%{_datadir} \
146 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
149 --without-postgresql \
161 --without-dragndrop \
164 sitelispdir=%{_libdir}/%{name}/site-lisp \
166 cp src/xemacs src/xemacs-nox
172 ./configure %{_target_platform} \
173 --prefix=%{_prefix} \
174 --infodir=%{_infodir} \
175 --mandir=%{_mandir}/man1 \
176 --datadir=%{_datadir} \
177 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
180 --with%{?!_with_postgresql:out}-postgresql \
187 --with%{?!_with_gtk:out}-gtk \
188 %{?!_with_gtk:--with-x11 --with-menubars=lucid --with-scrollbars=motif} \
189 %{?!_with_gtk:--with-dialogs=motif --with-widgets=motif} \
195 --without-dragndrop \
198 # if you want to xemacs sings and plays sounds add option
199 # --with-sound=native
201 # --lispdir=%{_datadir}/%{name}/lisp \
202 # --pkgdir=%{_datadir}/%{name}/lisp \
203 # --etcdir=%{_datadir}/%{name}/etc \
204 # --cflags="$RPM_OPT_FLAGS" \
205 # --error-checking=none \
207 # --with-session=yes \
209 sitelispdir=%{_libdir}/%{name}/site-lisp \
213 rm -rf $RPM_BUILD_ROOT
214 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Development/Editors,%{_pixmapsdir},/var/lock/xemacs} \
215 $RPM_BUILD_ROOT{%{_mandir}/{ja/man1,man1},%{_prefix}/X11R6/lib/X11/{,pl}/app-defaults} \
216 $RPM_BUILD_ROOT%{_datadir}/%{name}/lisp \
217 $RPM_BUILD_ROOT%{_libdir}/%{name} \
218 $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/{etc,lib-src}
220 %{__make} install-arch-dep install-arch-indep \
221 prefix=$RPM_BUILD_ROOT%{_prefix} \
222 infodir=$RPM_BUILD_ROOT%{_infodir} \
223 mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
224 datadir=$RPM_BUILD_ROOT%{_datadir} \
226 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
228 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
230 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/default.el
231 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-mule.el
232 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-nomule.el
233 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
235 mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
237 [ -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp ] || \
238 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp
239 ln -s %{_datadir}/%{name}/site-lisp $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lisp
241 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
242 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/Emacs
243 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
244 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/pl/app-defaults/Emacs
245 cat %{SOURCE4} >>$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/pl/app-defaults/Emacs
247 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/xemacs-ja.1 \
248 $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
250 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
251 $RPM_BUILD_ROOT%{_bindir}/xemacs
253 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
255 install -s src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
257 # remove .el file if corresponding .elc file exists
258 find $RPM_BUILD_ROOT -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
259 rm -f $RPM_BUILD_ROOT%{_bindir}/{c,e}tags
260 # hmm, maybe xemacs-devel is necessary?
261 rm -fr $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/include
262 rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
263 rm -f $RPM_BUILD_ROOT%{_infodir}/{info,standards,texinfo}.info*
265 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
267 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
268 etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
271 rm -rf $RPM_BUILD_ROOT
274 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
277 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
280 %defattr(644,root,root,755)
281 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
282 %lang(pl) %{_prefix}/X11R6/lib/X11/pl/app-defaults/Emacs
283 %attr(755,root,root) %{_bindir}/gnu*
284 %attr(755,root,root) %{_bindir}/xemacs
285 %attr(755,root,root) %{_bindir}/ootags
286 %attr(755,root,root) %{_bindir}/ellcc
287 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/gnuserv
288 %{_applnkdir}/Development/Editors/xemacs.desktop
290 %{_mandir}/man1/gnuattach.1*
291 %{_mandir}/man1/gnuclient.1*
292 %{_mandir}/man1/gnudoit.1*
293 %{_mandir}/man1/gnuserv.1*
294 %{_datadir}/%{name}-%{version}%{_sysconfdir}/custom
295 %{_datadir}/%{name}-%{version}%{_sysconfdir}/eos
296 %{_datadir}/%{name}-%{version}%{_sysconfdir}/toolbar
297 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.png
298 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xbm
299 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xpm
302 %defattr(644,root,root,755)
304 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL
305 %doc %lang(de) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.de
306 %doc %lang(fr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.fr
307 %doc %lang(hr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.hr
308 %doc %lang(ja) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ja
309 %doc %lang(ko) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ko
310 %doc %lang(no) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.no
311 %doc %lang(pl) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.pl
312 %doc %lang(ro) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ro
313 %doc %lang(ru) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ru
314 %doc %lang(th) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.th
315 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/[A-SU-Z]*
318 %dir %{_libdir}/%{name}-%{version}
319 %attr(755,root,root) %{_libdir}/%{name}-%{version}/%{_target_platform}
323 %dir %{_datadir}/%{name}-%{version}
324 # do not know it is necessary
325 %{_datadir}/%{name}-%{version}/%{_target_platform}
327 %{_datadir}/%{name}-%{version}/lisp/
329 %dir %{_datadir}/%{name}-packages
330 %{_datadir}/%{name}-packages/lisp
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