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