3 %bcond_without builtin_bfd # use built in bfd instead of system one
4 # (currently does not build with system one from new binutils)
6 Summary: GNU Common Lisp system
7 Summary(pl): System GNU Common Lisp
12 Group: Development/Languages
13 Source0: ftp://ftp.gnu.org/gnu/gcl/%{name}-%{version}.tar.gz
14 # Source0-md5: e0852318b81c93b76bc7e012f036ec6c
15 Patch0: %{name}-make.patch
16 Patch1: %{name}-info.patch
17 # It seems this patch doesn't fix what it should: still doesn't build with
19 #Patch2: %{name}-binutils.patch
20 URL: http://www.gnu.org/software/gcl/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: gmp-devel >= 4.0
24 BuildRequires: readline-devel
26 BuildRequires: tk-devel >= %{_tkline}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The GNU Common Lisp system, based on KCL.
34 System GNU Common Lisp, bazuj±cy na KCL.
37 Summary: Tcl/Tk bindings for GNU Common Lisp
38 Summary(pl): Interfejs Tcl/Tk do GNU Common Lisp
39 Group: Development/Languages
40 Requires: %{name} = %{version}-%{release}
43 Tcl/Tk bindings for GNU Common Lisp.
46 Interfejs Tcl/Tk dla GNU Common Lisp.
57 cp -f /usr/share/automake/config.* .
58 GCC="%{__cc}"; export GCC
59 # note: full path to xemacs must be passed
60 EMACS=/usr/bin/xemacs; export EMACS
62 --disable-statsysbfd \
63 %if %{with builtin_bfd}
66 %ifnarch alpha hppa ia64 mips
74 EMACS_SITE_LISP=`xemacs -q -batch 2>&1 | sed -e /Loading/d `
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1}
81 DESTDIR=$RPM_BUILD_ROOT \
82 INSTALL_LIB_DIR=%{_libdir}/gcl
84 mv -f $RPM_BUILD_ROOT%{_libdir}/gcl/info/* $RPM_BUILD_ROOT%{_infodir}
85 rmdir $RPM_BUILD_ROOT%{_libdir}/gcl/info
87 install man/man1/gcl.1 $RPM_BUILD_ROOT%{_mandir}/man1
89 ln -sf %{_libdir}/gcl/unixport/saved_gcl $RPM_BUILD_ROOT%{_bindir}/gcl.exe
91 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl
93 exec %{_libdir}/gcl/unixport/saved_gcl \
94 -dir {_libdir}/gcl/unixport/ \
95 -libdir %{_libdir}/gcl/ \
96 -eval '(setq si::*allow-gzipped-file* t)' \
100 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl-tk
102 exec %{_libdir}/gcl/unixport/saved_gcl \
103 -dir {_libdir}/gcl/unixport/ \
104 -libdir %{_libdir}/gcl/ \
105 -eval '(setq si::*allow-gzipped-file* t)' \
106 -eval '(setq si::*tk-library* "/usr/lib/tk%{_tkline}")' \
111 rm -rf $RPM_BUILD_ROOT
114 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
120 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
123 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
126 %defattr(644,root,root,755)
127 %doc readme faq ChangeLog
128 %attr(755,root,root) %{_bindir}/gcl
129 %attr(755,root,root) %{_bindir}/gcl.exe
132 %{_libdir}/gcl/cmpnew
136 %dir %{_libdir}/gcl/unixport
137 %attr(755,root,root) %{_libdir}/gcl/unixport/saved_gcl
138 %{_libdir}/gcl/unixport/*.lsp
140 #%{_libdir}/gcl/unixport/*.a
141 %{_infodir}/gcl-si.info*
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/gcl-tk
147 %dir %{_libdir}/gcl/gcl-tk
148 %attr (755,root,root) %{_libdir}/gcl/gcl-tk/gcltkaux
149 %attr (755,root,root) %{_libdir}/gcl/gcl-tk/gcltksrv
150 %{_libdir}/gcl/gcl-tk/*.o
151 %{_libdir}/gcl/gcl-tk/*.tcl
152 %{_infodir}/gcl-tk.info*