]> git.pld-linux.org Git - packages/xemacs.git/blob - xemacs.spec
- fix %%files section
[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}.4
9 Release:        2
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}-archlibdir.patch
25 Patch2:         %{name}-fix_ldflafs.patch
26 URL:            http://www.xemacs.org/
27 BuildRequires:  XFree86-devel
28 BuildRequires:  motif-devel
29 BuildRequires:  zlib-devel
30 BuildRequires:  libtiff-devel
31 BuildRequires:  libjpeg-devel
32 BuildRequires:  libpng >= 1.0.8
33 %{?_with_postgresql:BuildRequires:      postgresql-devel >= 7.1}
34 BuildRequires:  gpm-devel
35 BuildRequires:  ncurses-devel >= 5.0
36 BuildRequires:  gpm-devel
37 %if %{?_with_gtk:1}%{!?_with_gtk:0}
38 BuildRequires:  gtk+-devel >= 1.2.10
39 BuildRequires:  glib-devel
40 %endif
41 Requires:       ctags
42 Requires:       %{name}-common = %{version}
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 XEmacs is a highly customizable open source text editor and
47 application development system. XEmacs is a version of Emacs,
48 compatible with and containing many improvements over GNU Emacs,
49 written by Richard Stallman of the Free Software Foundation. It was
50 originally based on an early release of GNU Emacs version 19, and has
51 tracked subsequent releases of GNU Emacs as they have become
52 available. This XEmacs distribution has been splitted in some rpm:
53
54 xemacs-common - common files needed by xemacs and xemacs-nox packages
55 xemacs - XEmacs binary with both X11 and TTY support xemacs-nox -
56 XEmacs binary with TTY support only xemacs-extras - files in conflict
57 with emacs
58
59 Install xemacs-extras if you haven't emacs installed.
60
61 %description -l pl 
62 XEmacs jest odmian± Emacsa, zgodn± (i zawieraj±c± wiele udogodnieñ) z
63 GNU Emacsem tworzonym przez Richarda Stallmana z Free Software
64 Foundation. Wywodzi siê z wczesnych odmian GNU Emacs 19, wprowadza
65 wiele mi³ych ulepszeñ nie trac±c jednak wiêzi z oryginaln± wersj±.
66
67 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
68
69 xemacs-common - pakiet zawieraj±cy pliki wspó³dzielone przez pakiety
70 xemacs i xemacs-nox xemacs - XEmacs skompilowany ze wsparciem dla X11
71 i konsoli xemacs-nox - XEmacs skompilowany bez wsparcia dla X11
72 (pracuje tylko na konsoli tekstowej) xemacs-extras - pliki wchodz±ce w
73 sk³ad dystrybucji GNU Emacs
74
75 Do pracy niezbêdne s± xemacs-common oraz xemacs b±d¼ xemacs-nox.
76 Zainstaluj tak¿e xemacs-extras je¶li nie posiadasz GNU Emacsa.
77
78 %package common
79 Summary:        Common part of XEmacs distribution
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 %package nox
91 Summary:        XEmacs binary compiled without X11 support
92 Group:          Applications/Editors/Emacs
93 Group(de):      Applikationen/Editors/Emacs
94 Group(pl):      Aplikacje/Edytory/Emacs
95 Requires:       %{name}-common = %{version}
96 Provides:       %{name} = %{version}
97
98 %description nox
99 XEmacs binary compiled with TTY support only, without X11 support.
100
101 %description nox -l pl
102 XEmacs skompilowany bez wsparcia dla X11 (pracuje tylko na konsoli lub
103 w okienku xterma).
104
105 %package extras
106 Summary:        files which conflict with GNU Emacs
107 Summary(pl):    wspólne pliki XEmacsa i GNU Emacsa
108 Group:          Applications/Editors/Emacs
109 Group(de):      Applikationen/Editors/Emacs
110 Group(pl):      Aplikacje/Edytory/Emacs
111 Requires:       %{name} = %{version}
112 Conflicts:      emacs
113
114 %description extras
115 These files are common between GNU Emacs and XEmacs. If you do not
116 have GNU Emacs installed, be sure to install this package as well when
117 you install XEmacs.
118
119 %description extras -l pl
120 S± to wpólne pliki GNU Emacs i XEmacs. Je¶li nie zainstalowa³e¶ GNU
121 Emacsa, to koniecznie zainstaluj ten pakiet.
122
123 %prep
124 %setup0 -q -b1 -a2
125 %patch0 -p1
126 %patch1 -p1
127 %patch2 -p1
128
129 %build
130 CFLAGS="-I%{rpmcflags}"
131 CPPFLAGS="-I%{rpmcflags}"
132 LDFLAGS="%{rpmldflags} -lc"
133 sitelispdir=%{_libdir}/%{name}/site-lisp
134 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
135
136 # no X 
137 ./configure %{_target_platform} \
138         --prefix=%{_prefix} \
139         --infodir=%{_infodir} \
140         --mandir=%{_mandir}/man1 \
141         --datadir=%{_datadir} \
142         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
143         --with-mule \
144         --with-site-lisp \
145         --without-postgresql \
146         --without-sound \
147         --without-x11 \
148         --without-jpeg \
149         --without-png \
150         --without-xpm \
151         --with-gpm \
152         --with-ncurses \
153         --with-database=no \
154         --without-tiff \
155         --without-dnet \
156         --without-ldap \
157         --without-dragndrop \
158         --without-msw
159
160 sitelispdir=%{_libdir}/%{name}/site-lisp \
161 %{__make}
162 cp src/xemacs src/xemacs-nox
163 %{__make} distclean
164
165 # X
166 ./configure %{_target_platform} \
167         --prefix=%{_prefix} \
168         --infodir=%{_infodir} \
169         --mandir=%{_mandir}/man1 \
170         --datadir=%{_datadir} \
171         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
172         --with-mule \
173         --with-site-lisp \
174         --with%{?!_with_postgresql:out}-postgresql \
175         --without-sound \
176         --with-jpeg \
177         --with-png \
178         --with-xpm \
179         --with-gpm \
180         --with-ncurses \
181         --with%{?!_with_gtk:out}-gtk \
182         %{?!_with_gtk:--with-x11 --with-menubars=lucid --with-scrollbars=motif} \
183         %{?!_with_gtk:--with-dialogs=motif --with-widgets=motif} \
184         --with-database=no \
185         --with-gnome=no \
186         --without-tiff \
187         --without-dnet \
188         --without-ldap \
189         --without-dragndrop \
190         --without-msw
191
192 # if you want to xemacs sings and plays sounds add option 
193 #       --with-sound=native 
194
195 #       --lispdir=%{_datadir}/%{name}/lisp \
196 #       --pkgdir=%{_datadir}/%{name}/lisp \
197 #       --etcdir=%{_datadir}/%{name}/etc \
198 #       --cflags="$RPM_OPT_FLAGS" \
199 #       --error-checking=none \
200 #       --debug=no \
201 #       --with-session=yes \
202
203 sitelispdir=%{_libdir}/%{name}/site-lisp \
204 %{__make}
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Development/Editors,%{_pixmapsdir},/var/lock/xemacs} \
209         $RPM_BUILD_ROOT{%{_mandir}/{ja/man1,man1},%{_prefix}/X11R6/lib/X11/app-defaults/pl} \
210         $RPM_BUILD_ROOT%{_datadir}/%{name}/lisp \
211         $RPM_BUILD_ROOT%{_libdir}/%{name} \
212         $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/{etc,lib-src}
213
214 %{__make} install-arch-dep install-arch-indep \
215         prefix=$RPM_BUILD_ROOT%{_prefix} \
216         infodir=$RPM_BUILD_ROOT%{_infodir} \
217         mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
218         datadir=$RPM_BUILD_ROOT%{_datadir} \
219
220 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
221
222 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
223
224 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/default.el
225 install %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-mule.el
226 install %{SOURCE7} $RPM_BUILD_ROOT%{_datadir}/%{name}-packages/lisp/ogony-nomule.el
227 install %{SOURCE8} $RPM_BUILD_ROOT%{_pixmapsdir}
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 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
236         $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/Emacs
237 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/Emacs.ad \
238         $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
239 cat %{SOURCE4} >>$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
240
241 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/xemacs-ja.1 \
242         $RPM_BUILD_ROOT%{_mandir}/ja/man1/xemacs.1
243
244 mv -f $RPM_BUILD_ROOT%{_bindir}/xemacs-%{version} \
245         $RPM_BUILD_ROOT%{_bindir}/xemacs
246
247 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/%{_target_platform}/gnuserv \
248         $RPM_BUILD_ROOT%{_bindir}/gnuserv
249
250 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
251
252 install src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
253
254 # remove .el file if corresponding .elc file exists
255 find $RPM_BUILD_ROOT -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
256 rm -f $RPM_BUILD_ROOT%{_bindir}/{c,e}tags
257 # hmm, maybe xemacs-devel is necessary?
258 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/include
259 rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
260 rm -f $RPM_BUILD_ROOT%{_infodir}/{info,standards,texinfo}.info*
261
262 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
263
264 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
265         etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
266
267 %clean
268 rm -rf $RPM_BUILD_ROOT
269
270 %post
271 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 
272
273 %postun
274 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 
275
276 %files
277 %defattr(644,root,root,755)
278 %lang(en) %{_prefix}/X11R6/lib/X11/app-defaults/Emacs
279 %lang(pl) %{_prefix}/X11R6/lib/X11/app-defaults/pl/Emacs
280 %attr(755,root,root) %{_bindir}/gnu*
281 %attr(755,root,root) %{_bindir}/xemacs
282 %attr(755,root,root) %{_bindir}/ootags
283 %attr(755,root,root) %{_bindir}/ellcc
284 %{_applnkdir}/Development/Editors/xemacs.desktop
285 %{_pixmapsdir}/*
286 %{_mandir}/man1/gnuattach.1*
287 %{_mandir}/man1/gnuclient.1*
288 %{_mandir}/man1/gnudoit.1*
289 %{_mandir}/man1/gnuserv.1*
290 %{_datadir}/%{name}-%{version}%{_sysconfdir}/custom
291 %{_datadir}/%{name}-%{version}%{_sysconfdir}/eos
292 %{_datadir}/%{name}-%{version}%{_sysconfdir}/toolbar
293 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.png
294 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xbm
295 %{_datadir}/%{name}-%{version}%{_sysconfdir}/*.xpm
296
297 %files common
298 %defattr(644,root,root,755)
299 %doc *.gz etc/*.gz
300 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL
301 %doc %lang(de) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.de
302 %doc %lang(fr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.fr
303 %doc %lang(hr) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.hr
304 %doc %lang(ja) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ja
305 %doc %lang(ko) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ko
306 %doc %lang(no) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.no
307 %doc %lang(pl) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.pl
308 %doc %lang(ro) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ro
309 %doc %lang(ru) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.ru
310 %doc %lang(th) %{_datadir}/%{name}-%{version}%{_sysconfdir}/TUTORIAL.th
311 %doc %{_datadir}/%{name}-%{version}%{_sysconfdir}/[A-SU-Z]*
312
313 %{_libdir}/%{name}
314
315 %{_datadir}/%{name}
316
317 %dir %{_datadir}/%{name}-%{version}
318 # do not know it is necessary
319 %{_datadir}/%{name}-%{version}/%{_target_platform}/include
320 %{_datadir}/%{name}-%{version}/%{_target_platform}/modules
321 %attr(755,root,root) %{_datadir}/%{name}-%{version}/%{_target_platform}/[Dacdfghprsvwy]*
322 %attr(755,root,root) %{_datadir}/%{name}-%{version}/%{_target_platform}/m[am]*
323 %attr(755,root,root) %{_datadir}/%{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.055809 seconds and 4 git commands to generate.