]> git.pld-linux.org Git - packages/xemacs.git/blob - xemacs.spec
basepkgver 1.46
[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:        2
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="$RPM_OPT_FLAGS"
135 CPPFLAGS="$RPM_OPT_FLAGS"
136 LDFLAGS="-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 $RPM_BUILD_ROOT{%{_mandir}/{man1/*,ja/man1/*},%{_infodir}/*info*} \
245         README GETTING.GNU.SOFTWARE PROBLEMS \
246         etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
247
248 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
249
250 install -s src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
251
252 %clean
253 rm -rf $RPM_BUILD_ROOT
254
255 %post
256 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 
257
258 %postun
259 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 
260
261 %files
262 %defattr(644,root,root,755)
263 %{_applnkdir}/Development/Editors/xemacs.desktop
264 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
265 %lang(pl) %{_prefix}/X11R6/lib/X11/pl/app-defaults/Emacs
266 %attr(755,root,root) %{_bindir}/gnu*
267 %attr(755,root,root) %{_bindir}/xemacs
268 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/gnuserv
269 %{_mandir}/man1/gnuattach.1*
270 %{_mandir}/man1/gnuclient.1*
271 %{_mandir}/man1/gnudoit.1*
272 %{_mandir}/man1/gnuserv.1*
273
274 %files common
275 %defattr(644,root,root,755)
276 %doc *.gz etc/*.gz
277 %doc %{_datadir}/*/etc/TUTORIAL
278 %doc %lang(de) %{_datadir}/*/etc/TUTORIAL.de
279 %doc %lang(fr) %{_datadir}/*/etc/TUTORIAL.fr
280 %doc %lang(hr) %{_datadir}/*/etc/TUTORIAL.hr
281 %doc %lang(ja) %{_datadir}/*/etc/TUTORIAL.ja
282 %doc %lang(ko) %{_datadir}/*/etc/TUTORIAL.ko
283 %doc %lang(no) %{_datadir}/*/etc/TUTORIAL.no
284 %doc %lang(pl) %{_datadir}/*/etc/TUTORIAL.pl
285 %doc %lang(ro) %{_datadir}/*/etc/TUTORIAL.ro
286 %doc %lang(ru) %{_datadir}/*/etc/TUTORIAL.ru
287 %doc %lang(th) %{_datadir}/*/etc/TUTORIAL.th
288 %doc %{_libdir}/%{name}-%{version}/*/DOC
289 %doc %{_datadir}/*/etc/*README*
290 %doc %{_datadir}/*/etc/refcard.ps.gz
291 %doc %{_datadir}/*/etc/refcard.tex
292 %doc %{_datadir}/*/etc/sample.Xdefaults
293 %doc %{_datadir}/*/etc/sample.emacs
294 %doc %{_datadir}/*/etc/aliases.ksh
295 %doc %{_datadir}/*/etc/editclient.sh
296 %doc %{_datadir}/*/lisp/ChangeLog*
297 %doc %{_datadir}/*/lisp/README
298 %doc %{_datadir}/*/lisp/term/README
299
300 %{_libdir}/%{name}
301 %dir %{_libdir}/%{name}-%{version}
302 %dir %{_libdir}/%{name}-%{version}/%{_target_platform}
303
304 %{_datadir}/%{name}
305 %dir %{_datadir}/%{name}-%{version}
306 %dir %{_datadir}/%{name}-%{version}/etc
307 %{_datadir}/%{name}-%{version}/etc/custom
308 %{_datadir}/%{name}-%{version}/etc/eos
309 %{_datadir}/%{name}-%{version}/etc/idd
310 %{_datadir}/%{name}-%{version}/etc/photos
311 %{_datadir}/%{name}-%{version}/etc/toolbar
312 %{_datadir}/%{name}-%{version}/etc/*.xbm
313 %{_datadir}/%{name}-%{version}/etc/*.xpm
314 %{_datadir}/%{name}-%{version}/etc/*.png
315 %{_datadir}/%{name}-%{version}/etc/ms-kermit*
316 %{_datadir}/%{name}-%{version}/etc/package-index.LATEST.pgp
317
318 %dir %{_datadir}/%{name}-%{version}/lisp
319 %{_datadir}/%{name}-%{version}/lisp/*.elc
320 %dir %{_datadir}/%{name}-%{version}/lisp/term
321 %{_datadir}/%{name}-%{version}/lisp/term/*.elc
322
323 %dir %{_datadir}/%{name}-packages
324 %dir %{_datadir}/%{name}-packages/etc
325 %dir %{_datadir}/%{name}-packages/lib-src
326 %dir %{_datadir}/%{name}-packages/lisp
327 %dir %{_datadir}/%{name}-packages/lisp/xemacs-base
328 %{_datadir}/%{name}-packages/lisp/xemacs-base/*.elc
329 %{_datadir}/%{name}-packages/lisp/default.el
330 %{_datadir}/%{name}-packages/lisp/kbd_pl
331
332 %attr(2755,root,mail) %{_libdir}/%{name}-%{version}/*/movemail
333 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/cvtmail
334 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/digest-doc
335 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/fakemail
336 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/hexl
337 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/make-docfile
338 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/make-path
339 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/mmencode
340 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/profile
341 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/sorted-doc
342 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/yow
343 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/add-big-package.sh
344 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/gzip-el.sh
345 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/rcs2log
346 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/vcdiff
347 %attr(755,root,root) %{_libdir}/%{name}-%{version}/*/wakeup
348
349 %{_mandir}/man1/xemacs.1*
350 %lang(ja) %{_mandir}/ja/man1/*
351
352 %{_infodir}/custom.info*gz
353 %{_infodir}/external-widget.info*gz
354 %{_infodir}/internals.info*gz
355 %{_infodir}/lispref.info*gz
356 %{_infodir}/new-users-guide.info*gz
357 %{_infodir}/term.info*gz
358 %{_infodir}/widget.info*gz
359 %{_infodir}/xemacs-faq.info*gz
360 %{_infodir}/xemacs.info*gz
361
362 /var/lock/xemacs
363
364 %files nox
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_bindir}/xemacs-nox
367
368 %files el 
369 %defattr(644,root,root,755)
370
371 %{_datadir}/%{name}-%{version}/lisp/*.el.gz
372 %{_datadir}/%{name}-%{version}/lisp/term/*.el.gz
373 %{_datadir}/%{name}-packages/lisp/xemacs-base/*.el.gz
374
375 %files extras
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_bindir}/b2m
378 %attr(755,root,root) %{_bindir}/rcs-checkin
This page took 0.049268 seconds and 4 git commands to generate.