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: 45d67331b29cafc3e9b1eacb488044ec
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 Patch3: %{name}-gcc4.patch
21 URL: http://www.gnu.org/software/gcl/
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: gmp-devel >= 4.0
25 BuildRequires: readline-devel
26 BuildRequires: texinfo
28 BuildRequires: tk-devel >= %{_tkline}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 The GNU Common Lisp system, based on KCL.
36 System GNU Common Lisp, bazuj±cy na KCL.
39 Summary: Tcl/Tk bindings for GNU Common Lisp
40 Summary(pl): Interfejs Tcl/Tk do GNU Common Lisp
41 Group: Development/Languages
42 Requires: %{name} = %{version}-%{release}
45 Tcl/Tk bindings for GNU Common Lisp.
48 Interfejs Tcl/Tk dla GNU Common Lisp.
60 cp -f /usr/share/automake/config.* .
61 GCC="%{__cc}"; export GCC
62 # note: full path to xemacs must be passed
63 EMACS=/usr/bin/xemacs; export EMACS
65 --disable-statsysbfd \
66 %ifnarch alpha hppa ia64 mips
67 %if %{with builtin_bfd}
77 EMACS_SITE_LISP=`xemacs -q -batch 2>&1 | sed -e /Loading/d `
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1}
84 DESTDIR=$RPM_BUILD_ROOT \
85 INSTALL_LIB_DIR=%{_libdir}/gcl
87 mv -f $RPM_BUILD_ROOT%{_libdir}/gcl/info/* $RPM_BUILD_ROOT%{_infodir}
88 rmdir $RPM_BUILD_ROOT%{_libdir}/gcl/info
90 install man/man1/gcl.1 $RPM_BUILD_ROOT%{_mandir}/man1
92 ln -sf %{_libdir}/gcl/unixport/saved_gcl $RPM_BUILD_ROOT%{_bindir}/gcl.exe
94 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl
96 exec %{_libdir}/gcl/unixport/saved_gcl \
97 -dir {_libdir}/gcl/unixport/ \
98 -libdir %{_libdir}/gcl/ \
99 -eval '(setq si::*allow-gzipped-file* t)' \
103 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl-tk
105 exec %{_libdir}/gcl/unixport/saved_gcl \
106 -dir {_libdir}/gcl/unixport/ \
107 -libdir %{_libdir}/gcl/ \
108 -eval '(setq si::*allow-gzipped-file* t)' \
109 -eval '(setq si::*tk-library* "/usr/lib/tk%{_tkline}")' \
114 rm -rf $RPM_BUILD_ROOT
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 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
129 %defattr(644,root,root,755)
130 %doc readme faq ChangeLog
131 %attr(755,root,root) %{_bindir}/gcl
132 %attr(755,root,root) %{_bindir}/gcl.exe
135 %{_libdir}/gcl/cmpnew
139 %dir %{_libdir}/gcl/unixport
140 %attr(755,root,root) %{_libdir}/gcl/unixport/saved_gcl
141 %{_libdir}/gcl/unixport/*.lsp
143 #%{_libdir}/gcl/unixport/*.a
144 %{_infodir}/gcl-si.info*
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_bindir}/gcl-tk
150 %dir %{_libdir}/gcl/gcl-tk
151 %attr (755,root,root) %{_libdir}/gcl/gcl-tk/gcltkaux
152 %attr (755,root,root) %{_libdir}/gcl/gcl-tk/gcltksrv
153 %{_libdir}/gcl/gcl-tk/*.o
154 %{_libdir}/gcl/gcl-tk/*.tcl
155 %{_infodir}/gcl-tk.info*