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 Source0: ftp://ftp.xemacs.org/%{name}-%{ver}/%{name}-%{version}.tar.gz
13 Source1: ftp://ftp.xemacs.org/%{name}-%{ver}/%{name}-%{version}-elc.tar.gz
14 Source2: ftp://ftp.xemacs.org/packages/%{name}-base-%{basepkgver}-pkg.tar.gz
15 Source3: %{name}.desktop
16 Source4: %{name}.ad-pl
17 Source5: %{name}-default.el
18 Source6: %{name}-ogony-mule.el
19 Source7: %{name}-ogony-nomule.el
21 Patch0: %{name}-info.patch
22 Patch1: %{name}-fix_ldflafs.patch
23 URL: http://www.xemacs.org/
24 BuildRequires: XFree86-devel
25 BuildRequires: motif-devel
26 BuildRequires: zlib-devel
27 BuildRequires: libtiff-devel
28 BuildRequires: libjpeg-devel
29 BuildRequires: libpng >= 1.0.8
30 %{?_with_postgresql:BuildRequires: postgresql-devel >= 7.1}
31 BuildRequires: gpm-devel
32 BuildRequires: ncurses-devel >= 5.0
33 BuildRequires: gpm-devel
34 %if %{?_with_gtk:1}%{!?_with_gtk:0}
35 BuildRequires: gtk+-devel >= 1.2.10
36 BuildRequires: glib-devel
39 Requires: %{name}-common = %{version}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 XEmacs is a highly customizable open source text editor and
44 application development system. XEmacs is a version of Emacs,
45 compatible with and containing many improvements over GNU Emacs,
46 written by Richard Stallman of the Free Software Foundation. It was
47 originally based on an early release of GNU Emacs version 19, and has
48 tracked subsequent releases of GNU Emacs as they have become
49 available. This XEmacs distribution has been splitted in some rpm:
51 xemacs-common - common files needed by xemacs and xemacs-nox packages
52 xemacs - XEmacs binary with both X11 and TTY support xemacs-nox -
53 XEmacs binary with TTY support only xemacs-extras - files in conflict
56 Install xemacs-extras if you haven't emacs installed.
59 XEmacs jest odmian± Emacsa, zgodn± (i zawieraj±c± wiele udogodnieñ) z
60 GNU Emacsem tworzonym przez Richarda Stallmana z Free Software
61 Foundation. Wywodzi siê z wczesnych odmian GNU Emacs 19, wprowadza
62 wiele mi³ych ulepszeñ nie trac±c jednak wiêzi z oryginaln± wersj±.
64 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
66 xemacs-common - pakiet zawieraj±cy pliki wspó³dzielone przez pakiety
67 xemacs i xemacs-nox xemacs - XEmacs skompilowany ze wsparciem dla X11
68 i konsoli xemacs-nox - XEmacs skompilowany bez wsparcia dla X11
69 (pracuje tylko na konsoli tekstowej) xemacs-extras - pliki wchodz±ce w
70 sk³ad dystrybucji GNU Emacs
72 Do pracy niezbêdne s± xemacs-common oraz xemacs b±d¼ xemacs-nox.
73 Zainstaluj tak¿e xemacs-extras je¶li nie posiadasz GNU Emacsa.
76 Summary: Common part of XEmacs distribution
77 Summary(pl): Wspólne czê¶ci XEmacsa
78 Group: Applications/Editors/Emacs
79 Provides: xemacs-base-pkg
82 Common files of XEmacs distribution. This package does not contain
83 XEmacs editor binary, you must install xemacs or xemacs-nox package to
84 use XEmacs -- Emacs: The Next Generation editor.
86 %description common -l pl
87 Wspólne pliki XEmacsa. Ten pakiet nie zawiera pliku wykonywalnego
88 edytora, musisz zainstalowaæ xemacs lub xemacs-nox, aby u¿ywaæ XEmacsa
89 b±d¼ Emacsa: edytor Nastêpnej Generacji.
92 Summary: XEmacs binary compiled without X11 support
93 Summary(pl): XEmacs skompilowany bez wsparcia dla X11
94 Group: Applications/Editors/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 Requires: %{name} = %{version}
113 These files are common between GNU Emacs and XEmacs. If you do not
114 have GNU Emacs installed, be sure to install this package as well when
117 %description extras -l pl
118 S± to wpólne pliki GNU Emacs i XEmacs. Je¶li nie zainstalowa³e¶ GNU
119 Emacsa, to koniecznie zainstaluj ten pakiet.
127 CFLAGS="-I%{rpmcflags}"
128 CPPFLAGS="-I%{rpmcflags}"
129 LDFLAGS="%{rpmldflags} -lc"
130 sitelispdir=%{_libdir}/%{name}/site-lisp
131 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
134 ./configure %{_target_platform} \
135 --prefix=%{_prefix} \
136 --infodir=%{_infodir} \
137 --mandir=%{_mandir}/man1 \
138 --datadir=%{_datadir} \
139 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
142 --without-postgresql \
154 --without-dragndrop \
157 sitelispdir=%{_libdir}/%{name}/site-lisp \
159 cp src/xemacs src/xemacs-nox
163 ./configure %{_target_platform} \
164 --prefix=%{_prefix} \
165 --infodir=%{_infodir} \
166 --mandir=%{_mandir}/man1 \
167 --datadir=%{_datadir} \
168 --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
171 --with%{?!_with_postgresql:out}-postgresql \
178 --with%{?!_with_gtk:out}-gtk \
179 %{?!_with_gtk:--with-x11 --with-menubars=lucid --with-scrollbars=motif} \
180 %{?!_with_gtk:--with-dialogs=motif --with-widgets=motif} \
186 --without-dragndrop \
189 # if you want to xemacs sings and plays sounds add option
190 # --with-sound=native
192 # --lispdir=%{_datadir}/%{name}/lisp \
193 # --pkgdir=%{_datadir}/%{name}/lisp \
194 # --etcdir=%{_datadir}/%{name}/etc \
195 # --cflags="$RPM_OPT_FLAGS" \
196 # --error-checking=none \
198 # --with-session=yes \
200 sitelispdir=%{_libdir}/%{name}/site-lisp \
204 rm -rf $RPM_BUILD_ROOT
205 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Development/Editors,%{_pixmapsdir},/var/lock/xemacs} \
206 $RPM_BUILD_ROOT{%{_mandir}/{ja/man1,man1},%{_prefix}/X11R6/lib/X11/app-defaults/pl} \
207 $RPM_BUILD_ROOT%{_datadir}/%{name}/lisp \
208 $RPM_BUILD_ROOT%{_libdir}/%{name} \
209 $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/{etc,lib-src}
211 %{__make} install-arch-dep install-arch-indep \
212 prefix=$RPM_BUILD_ROOT%{_prefix} \
213 infodir=$RPM_BUILD_ROOT%{_infodir} \
214 mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
215 datadir=$RPM_BUILD_ROOT%{_datadir} \
217 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
219 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
221 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/default.el
222 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-mule.el
223 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-nomule.el
224 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
226 #mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
228 [ -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp ] || \
229 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/site-lisp
230 ln -s %{_datadir}/%{name}/site-lisp $RPM_BUILD_ROOT%{_libdir}/%{name}/site-lisp
232 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
233 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/Emacs
234 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
235 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
236 cat %{SOURCE4} >>$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
238 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/xemacs-ja.1 \
239 $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
241 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
242 $RPM_BUILD_ROOT%{_bindir}/xemacs
244 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
246 install src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
248 # remove .el file if corresponding .elc file exists
249 find $RPM_BUILD_ROOT -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
250 rm -f $RPM_BUILD_ROOT%{_bindir}/{c,e}tags
251 # hmm, maybe xemacs-devel is necessary?
252 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/include \
253 $RPM_BUILD_ROOT%{_infodir}/dir* \
254 $RPM_BUILD_ROOT%{_infodir}/{info,standards,texinfo}.info*
256 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
258 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
259 etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
262 rm -rf $RPM_BUILD_ROOT
265 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
268 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
271 %defattr(644,root,root,755)
272 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
273 %lang(pl) %{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
274 %attr(755,root,root) %{_bindir}/gnu*
275 %attr(755,root,root) %{_bindir}/xemacs
276 %attr(755,root,root) %{_bindir}/ootags
277 %attr(755,root,root) %{_bindir}/ellcc
278 %{_applnkdir}/Development/Editors/xemacs.desktop
280 %{_mandir}/man1/gnuattach.1*
281 %{_mandir}/man1/gnuclient.1*
282 %{_mandir}/man1/gnudoit.1*
283 %{_datadir}/%{name}-%{version}%{_sysconfdir}/custom
284 %{_datadir}/%{name}-%{version}%{_sysconfdir}/eos
285 %{_datadir}/%{name}-%{version}%{_sysconfdir}/toolbar
286 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.png
287 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xbm
288 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xpm
291 %defattr(644,root,root,755)
293 %dir %{_datadir}/%{name}-%{version}%{_sysconfdir}
294 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL
295 %doc %lang(de) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.de
296 %doc %lang(fr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.fr
297 %doc %lang(hr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.hr
298 %doc %lang(ja) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ja
299 %doc %lang(ko) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ko
300 %doc %lang(no) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.no
301 %doc %lang(pl) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.pl
302 %doc %lang(ro) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ro
303 %doc %lang(ru) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ru
304 %doc %lang(th) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.th
305 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/[A-SU-Z]*
311 %dir %{_datadir}/%{name}-%{version}
312 # do not know it is necessary
313 %{_libdir}/%{name}-%{version}/%{_target_platform}/modules
314 %attr(755,root,root) %{_libdir}/%{name}-%{version}/%{_target_platform}/[Dacdfghprsvwy]*
315 %attr(755,root,root) %{_libdir}/%{name}-%{version}/%{_target_platform}/m[am]*
316 %attr(755,root,root) %{_libdir}/%{name}-%{version}/%{_target_platform}/mov*
318 %{_datadir}/%{name}-%{version}/lisp/
320 %dir %{_datadir}/%{name}-packages
321 %{_datadir}/%{name}-packages/etc
322 %{_datadir}/%{name}-packages/lisp
323 %{_datadir}/%{name}-packages/lib-src
325 %{_mandir}/man1/xemacs.1*
326 %lang(ja) %{_mandir}/ja/man1/*
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_bindir}/xemacs-nox
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_bindir}/b2m
339 %attr(755,root,root) %{_bindir}/rcs-checkin