]> git.pld-linux.org Git - packages/xemacs.git/blob - xemacs.spec
- %desc
[packages/xemacs.git] / xemacs.spec
1 # _with_postgresql      - postgresql support
2 # _with_gtk             - gtk enabled version
3 %define         ver             21.4
4 %define         basepkgver      1.55
5 Summary:        The XEmacs -- Emacs: The Next Generation
6 Summary(pl):    XEmacs -- Emacs nastêpnej generacji
7 Name:           xemacs
8 Version:        %{ver}.6
9 Release:        1
10 License:        GPL
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
22 Source8:        %{name}.png
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
39 %endif
40 Requires:       ctags
41 Requires:       %{name}-common = %{version}
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
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:
52
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
56 with emacs
57
58 Install xemacs-extras if you haven't emacs installed.
59
60 %description -l pl
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±.
65
66 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
67
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
73
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.
76
77 %package common
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
84
85 %description common
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.
89
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.
94
95 %package nox
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}
103
104 %description nox
105 XEmacs binary compiled with TTY support only, without X11 support.
106
107 %description nox -l pl
108 XEmacs skompilowany bez wsparcia dla X11 (pracuje tylko na konsoli lub
109 w okienku xterma).
110
111 %package extras
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}
118 Conflicts:      emacs
119
120 %description extras
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
123 you install XEmacs.
124
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.
128
129 %prep
130 %setup0 -q -b1 -a2
131 %patch0 -p1
132 %patch1 -p1
133
134 %build
135 CFLAGS="-I%{rpmcflags}"
136 CPPFLAGS="-I%{rpmcflags}"
137 LDFLAGS="%{rpmldflags} -lc"
138 sitelispdir=%{_libdir}/%{name}/site-lisp
139 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
140
141 # no X
142 ./configure %{_target_platform} \
143         --prefix=%{_prefix} \
144         --infodir=%{_infodir} \
145         --mandir=%{_mandir}/man1 \
146         --datadir=%{_datadir} \
147         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
148         --with-mule \
149         --with-site-lisp \
150         --without-postgresql \
151         --without-sound \
152         --without-x11 \
153         --without-jpeg \
154         --without-png \
155         --without-xpm \
156         --with-gpm \
157         --with-ncurses \
158         --with-database=no \
159         --without-tiff \
160         --without-dnet \
161         --without-ldap \
162         --without-dragndrop \
163         --without-msw
164
165 sitelispdir=%{_libdir}/%{name}/site-lisp \
166 %{__make}
167 cp src/xemacs src/xemacs-nox
168 %{__make} distclean
169
170 # X
171 ./configure %{_target_platform} \
172         --prefix=%{_prefix} \
173         --infodir=%{_infodir} \
174         --mandir=%{_mandir}/man1 \
175         --datadir=%{_datadir} \
176         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
177         --with-mule \
178         --with-site-lisp \
179         --with%{?!_with_postgresql:out}-postgresql \
180         --without-sound \
181         --with-jpeg \
182         --with-png \
183         --with-xpm \
184         --with-gpm \
185         --with-ncurses \
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} \
189         --with-database=no \
190         --with-gnome=no \
191         --without-tiff \
192         --without-dnet \
193         --without-ldap \
194         --without-dragndrop \
195         --without-msw
196
197 # if you want to xemacs sings and plays sounds add option
198 #       --with-sound=native
199
200 #       --lispdir=%{_datadir}/%{name}/lisp \
201 #       --pkgdir=%{_datadir}/%{name}/lisp \
202 #       --etcdir=%{_datadir}/%{name}/etc \
203 #       --cflags="$RPM_OPT_FLAGS" \
204 #       --error-checking=none \
205 #       --debug=no \
206 #       --with-session=yes \
207
208 sitelispdir=%{_libdir}/%{name}/site-lisp \
209 %{__make}
210
211 %install
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}
218
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} \
224
225 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
226
227 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
228
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}
233
234 #mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
235
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
239
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
245
246 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/xemacs-ja.1 \
247         $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
248
249 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
250         $RPM_BUILD_ROOT%{_bindir}/xemacs
251
252 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
253
254 install src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
255
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*
263
264 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
265
266 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
267         etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
268
269 %clean
270 rm -rf $RPM_BUILD_ROOT
271
272 %post
273 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
274
275 %postun
276 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
277
278 %files
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
287 %{_pixmapsdir}/*
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
297
298 %files common
299 %defattr(644,root,root,755)
300 %doc *.gz etc/*.gz
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]*
313
314 %{_libdir}/%{name}
315
316 %{_datadir}/%{name}
317
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*
324
325 %{_datadir}/%{name}-%{version}/lisp/
326
327 %dir %{_datadir}/%{name}-packages
328 %{_datadir}/%{name}-packages/etc
329 %{_datadir}/%{name}-packages/lisp
330 %{_datadir}/%{name}-packages/lib-src
331
332 %{_mandir}/man1/xemacs.1*
333 %lang(ja) %{_mandir}/ja/man1/*
334
335 %{_infodir}/*
336
337 /var/lock/xemacs
338
339 %files nox
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_bindir}/xemacs-nox
342
343 %files extras
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_bindir}/b2m
346 %attr(755,root,root) %{_bindir}/rcs-checkin
This page took 0.256406 seconds and 4 git commands to generate.