]> git.pld-linux.org Git - packages/xemacs.git/blob - xemacs.spec
- added %{_datadir}/%{name}-%{version}%{_sysconfdir} dir to the
[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 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
20 Source8:        %{name}.png
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
37 %endif
38 Requires:       ctags
39 Requires:       %{name}-common = %{version}
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
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:
50
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
54 with emacs
55
56 Install xemacs-extras if you haven't emacs installed.
57
58 %description -l pl
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±.
63
64 Ta dystrubucja XEmacsa zosta³± podzielona na wiele pakietów binarnych:
65
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
71
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.
74
75 %package common
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
80
81 %description common
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.
85
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.
90
91 %package nox
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}
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 Requires:       %{name} = %{version}
110 Conflicts:      emacs
111
112 %description extras
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
115 you install XEmacs.
116
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.
120
121 %prep
122 %setup0 -q -b1 -a2
123 %patch0 -p1
124 %patch1 -p1
125
126 %build
127 CFLAGS="-I%{rpmcflags}"
128 CPPFLAGS="-I%{rpmcflags}"
129 LDFLAGS="%{rpmldflags} -lc"
130 sitelispdir=%{_libdir}/%{name}/site-lisp
131 export CFLAGS CPPFLAGS LDFLAGS sitelispdir
132
133 # no X
134 ./configure %{_target_platform} \
135         --prefix=%{_prefix} \
136         --infodir=%{_infodir} \
137         --mandir=%{_mandir}/man1 \
138         --datadir=%{_datadir} \
139         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
140         --with-mule \
141         --with-site-lisp \
142         --without-postgresql \
143         --without-sound \
144         --without-x11 \
145         --without-jpeg \
146         --without-png \
147         --without-xpm \
148         --with-gpm \
149         --with-ncurses \
150         --with-database=no \
151         --without-tiff \
152         --without-dnet \
153         --without-ldap \
154         --without-dragndrop \
155         --without-msw
156
157 sitelispdir=%{_libdir}/%{name}/site-lisp \
158 %{__make}
159 cp src/xemacs src/xemacs-nox
160 %{__make} distclean
161
162 # X
163 ./configure %{_target_platform} \
164         --prefix=%{_prefix} \
165         --infodir=%{_infodir} \
166         --mandir=%{_mandir}/man1 \
167         --datadir=%{_datadir} \
168         --package_path="~/.xemacs::%{_datadir}/%{name}-packages" \
169         --with-mule \
170         --with-site-lisp \
171         --with%{?!_with_postgresql:out}-postgresql \
172         --without-sound \
173         --with-jpeg \
174         --with-png \
175         --with-xpm \
176         --with-gpm \
177         --with-ncurses \
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} \
181         --with-database=no \
182         --with-gnome=no \
183         --without-tiff \
184         --without-dnet \
185         --without-ldap \
186         --without-dragndrop \
187         --without-msw
188
189 # if you want to xemacs sings and plays sounds add option
190 #       --with-sound=native
191
192 #       --lispdir=%{_datadir}/%{name}/lisp \
193 #       --pkgdir=%{_datadir}/%{name}/lisp \
194 #       --etcdir=%{_datadir}/%{name}/etc \
195 #       --cflags="$RPM_OPT_FLAGS" \
196 #       --error-checking=none \
197 #       --debug=no \
198 #       --with-session=yes \
199
200 sitelispdir=%{_libdir}/%{name}/site-lisp \
201 %{__make}
202
203 %install
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}
210
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} \
216
217 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Development/Editors/xemacs.desktop
218
219 ( cd $RPM_BUILD_ROOT%{_datadir}/%{name}-packages; gzip -dc %{SOURCE2} | tar xf - )
220
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}
225
226 #mv $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/%{_target_platform}/config.values $RPM_BUILD_ROOT%{_libdir}/%{name}
227
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
231
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
237
238 mv $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}%{_sysconfdir}/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 find $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/* -type f -name "ChangeLog*" | xargs gzip -9nf
245
246 install src/xemacs-nox $RPM_BUILD_ROOT%{_bindir}
247
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*
255
256 find $RPM_BUILD_ROOT -regex '.*~$' -exec rm -f {} \;
257
258 gzip -9nf README GETTING.GNU.SOFTWARE PROBLEMS \
259         etc/NEWS etc/MAILINGLISTS BUGS etc/TERMS etc/SERVICE
260
261 %clean
262 rm -rf $RPM_BUILD_ROOT
263
264 %post
265 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
266
267 %postun
268 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
269
270 %files
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
279 %{_pixmapsdir}/*
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
289
290 %files common
291 %defattr(644,root,root,755)
292 %doc *.gz etc/*.gz
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]*
306
307 %{_libdir}/%{name}
308
309 %{_datadir}/%{name}
310
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*
317
318 %{_datadir}/%{name}-%{version}/lisp/
319
320 %dir %{_datadir}/%{name}-packages
321 %{_datadir}/%{name}-packages/etc
322 %{_datadir}/%{name}-packages/lisp
323 %{_datadir}/%{name}-packages/lib-src
324
325 %{_mandir}/man1/xemacs.1*
326 %lang(ja) %{_mandir}/ja/man1/*
327
328 %{_infodir}/*
329
330 /var/lock/xemacs
331
332 %files nox
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_bindir}/xemacs-nox
335
336 %files extras
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_bindir}/b2m
339 %attr(755,root,root) %{_bindir}/rcs-checkin
This page took 0.067669 seconds and 4 git commands to generate.