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}-fix_ldflafs.patch
25 URL: http://www.xemacs.org/
26 BuildRequires: XFree86-devel
27 BuildRequires: motif-devel
28 BuildRequires: zlib-devel
29 BuildRequires: libtiff-devel
30 BuildRequires: libjpeg-devel
31 BuildRequires: libpng >= 1.0.8
32 %{?_with_postgresql:BuildRequires: postgresql-devel >= 7.1}
33 BuildRequires: gpm-devel
34 BuildRequires: ncurses-devel >= 5.0
35 BuildRequires: gpm-devel
36 %if %{?_with_gtk:1}%{!?_with_gtk:0}
37 BuildRequires: gtk+-devel >= 1.2.10
38 BuildRequires: glib-devel
41 Requires: %{name}-common = %{version}
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 XEmacs is a highly customizable open source text editor and
46 application development system. XEmacs is a version of Emacs,
47 compatible with and containing many improvements over GNU Emacs,
48 written by Richard Stallman of the Free Software Foundation. It was
49 originally based on an early release of GNU Emacs version 19, and has
50 tracked subsequent releases of GNU Emacs as they have become
51 available. This XEmacs distribution has been splitted in some rpm:
53 xemacs-common - common files needed by xemacs and xemacs-nox packages
54 xemacs - XEmacs binary with both X11 and TTY support xemacs-nox -
55 XEmacs binary with TTY support only xemacs-extras - files in conflict
58 Install xemacs-extras if you haven't emacs installed.
61 XEmacs jest odmian± Emacsa, zgodn± (i zawieraj±c± wiele udogodnieñ) z
62 GNU Emacsem tworzonym przez Richarda Stallmana z Free Software
63 Foundation. Wywodzi siê z wczesnych odmian GNU Emacs 19, wprowadza
64 wiele mi³ych ulepszeñ nie trac±c jednak wiêzi z oryginaln± wersj±.
66 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
68 xemacs-common - pakiet zawieraj±cy pliki wspó³dzielone przez pakiety
69 xemacs i xemacs-nox xemacs - XEmacs skompilowany ze wsparciem dla X11
70 i konsoli xemacs-nox - XEmacs skompilowany bez wsparcia dla X11
71 (pracuje tylko na konsoli tekstowej) xemacs-extras - pliki wchodz±ce w
72 sk³ad dystrybucji GNU Emacs
74 Do pracy niezbêdne s± xemacs-common oraz xemacs b±d¼ xemacs-nox.
75 Zainstaluj tak¿e xemacs-extras je¶li nie posiadasz GNU Emacsa.
78 Summary: Common part of XEmacs distribution
79 Summary(pl): Wspólne czê¶ci XEmacsa
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.
90 %description common -l pl
91 Wspólne pliki XEmacsa. Ten pakiet nie zawiera pliku wykonywalnego
92 edytora, musisz zainstalowaæ xemacs lub xemacs-nox, aby u¿ywaæ XEmacsa
93 b±d¼ Emacsa: edytor Nastêpnej Generacji.
96 Summary: XEmacs binary compiled without X11 support
97 Summary(pl): XEmacs skompilowany bez wsparcia dla X11
98 Group: Applications/Editors/Emacs
99 Group(de): Applikationen/Editors/Emacs
100 Group(pl): Aplikacje/Edytory/Emacs
101 Requires: %{name}-common = %{version}
102 Provides: %{name} = %{version}
105 XEmacs binary compiled with TTY support only, without X11 support.
107 %description nox -l pl
108 XEmacs skompilowany bez wsparcia dla X11 (pracuje tylko na konsoli lub
112 Summary: files which conflict with GNU Emacs
113 Summary(pl): wspólne pliki XEmacsa i GNU Emacsa
114 Group: Applications/Editors/Emacs
115 Group(de): Applikationen/Editors/Emacs
116 Group(pl): Aplikacje/Edytory/Emacs
117 Requires: %{name} = %{version}
121 These files are common between GNU Emacs and XEmacs. If you do not
122 have GNU Emacs installed, be sure to install this package as well when
125 %description extras -l pl
126 S± to wpólne pliki GNU Emacs i XEmacs. Je¶li nie zainstalowa³e¶ GNU
127 Emacsa, to koniecznie zainstaluj ten pakiet.
135 CFLAGS="-I%{rpmcflags}"
136 CPPFLAGS="-I%{rpmcflags}"
137 LDFLAGS="%{rpmldflags} -lc"
138 sitelispdir=%{_libdir}/%{name}/site-lisp
139 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
142 ./configure %{_target_platform} \
143 --prefix=%{_prefix} \
144 --infodir=%{_infodir} \
145 --mandir=%{_mandir}/man1 \
146 --datadir=%{_datadir} \
147 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
150 --without-postgresql \
162 --without-dragndrop \
165 sitelispdir=%{_libdir}/%{name}/site-lisp \
167 cp src/xemacs src/xemacs-nox
171 ./configure %{_target_platform} \
172 --prefix=%{_prefix} \
173 --infodir=%{_infodir} \
174 --mandir=%{_mandir}/man1 \
175 --datadir=%{_datadir} \
176 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
179 --with%{?!_with_postgresql:out}-postgresql \
186 --with%{?!_with_gtk:out}-gtk \
187 %{?!_with_gtk:--with-x11 --with-menubars=lucid --with-scrollbars=motif} \
188 %{?!_with_gtk:--with-dialogs=motif --with-widgets=motif} \
194 --without-dragndrop \
197 # if you want to xemacs sings and plays sounds add option
198 # --with-sound=native
200 # --lispdir=%{_datadir}/%{name}/lisp \
201 # --pkgdir=%{_datadir}/%{name}/lisp \
202 # --etcdir=%{_datadir}/%{name}/etc \
203 # --cflags="$RPM_OPT_FLAGS" \
204 # --error-checking=none \
206 # --with-session=yes \
208 sitelispdir=%{_libdir}/%{name}/site-lisp \
212 rm -rf $RPM_BUILD_ROOT
213 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Development/Editors,%{_pixmapsdir},/var/lock/xemacs} \
214 $RPM_BUILD_ROOT{%{_mandir}/{ja/man1,man1},%{_prefix}/X11R6/lib/X11/app-defaults/pl} \
215 $RPM_BUILD_ROOT%{_datadir}/%{name}/lisp \
216 $RPM_BUILD_ROOT%{_libdir}/%{name} \
217 $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/{etc,lib-src}
219 %{__make} install-arch-dep install-arch-indep \
220 prefix=$RPM_BUILD_ROOT%{_prefix} \
221 infodir=$RPM_BUILD_ROOT%{_infodir} \
222 mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
223 datadir=$RPM_BUILD_ROOT%{_datadir} \
225 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
227 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
229 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/default.el
230 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-mule.el
231 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-nomule.el
232 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
234 #mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
236 [ -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp ] || \
237 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp
238 ln -s %{_datadir}/%{name}/site-lisp $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lisp
240 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
241 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/Emacs
242 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
243 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
244 cat %{SOURCE4} >>$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
246 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/xemacs-ja.1 \
247 $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
249 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
250 $RPM_BUILD_ROOT%{_bindir}/xemacs
252 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
254 install src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
256 # remove .el file if corresponding .elc file exists
257 find $RPM_BUILD_ROOT -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
258 rm -f $RPM_BUILD_ROOT%{_bindir}/{c,e}tags
259 # hmm, maybe xemacs-devel is necessary?
260 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/include \
261 $RPM_BUILD_ROOT%{_infodir}/dir* \
262 $RPM_BUILD_ROOT%{_infodir}/{info,standards,texinfo}.info*
264 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
266 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
267 etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
270 rm -rf $RPM_BUILD_ROOT
273 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
276 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
279 %defattr(644,root,root,755)
280 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
281 %lang(pl) %{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
282 %attr(755,root,root) %{_bindir}/gnu*
283 %attr(755,root,root) %{_bindir}/xemacs
284 %attr(755,root,root) %{_bindir}/ootags
285 %attr(755,root,root) %{_bindir}/ellcc
286 %{_applnkdir}/Development/Editors/xemacs.desktop
288 %{_mandir}/man1/gnuattach.1*
289 %{_mandir}/man1/gnuclient.1*
290 %{_mandir}/man1/gnudoit.1*
291 %{_datadir}/%{name}-%{version}%{_sysconfdir}/custom
292 %{_datadir}/%{name}-%{version}%{_sysconfdir}/eos
293 %{_datadir}/%{name}-%{version}%{_sysconfdir}/toolbar
294 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.png
295 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xbm
296 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xpm
299 %defattr(644,root,root,755)
301 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL
302 %doc %lang(de) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.de
303 %doc %lang(fr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.fr
304 %doc %lang(hr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.hr
305 %doc %lang(ja) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ja
306 %doc %lang(ko) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ko
307 %doc %lang(no) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.no
308 %doc %lang(pl) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.pl
309 %doc %lang(ro) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ro
310 %doc %lang(ru) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ru
311 %doc %lang(th) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.th
312 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/[A-SU-Z]*
318 %dir %{_datadir}/%{name}-%{version}
319 # do not know it is necessary
320 %{_libdir}/%{name}-%{version}/%{_target_platform}/modules
321 %attr(755,root,root) %{_libdir}/%{name}-%{version}/%{_target_platform}/[Dacdfghprsvwy]*
322 %attr(755,root,root) %{_libdir}/%{name}-%{version}/%{_target_platform}/m[am]*
323 %attr(755,root,root) %{_libdir}/%{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