1 Summary: GNU Common Lisp
2 Summary(pl): GNU Common Lisp
7 Group: Development/Languages
8 Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tgz
9 # Source0-md5: cd2326647d1cd18ccec088370ebdf58d
10 Patch0: %{name}-make.patch
11 Patch1: %{name}-OPT.patch
12 Patch2: %{name}-info.patch
13 Patch3: %{name}-libgmp.patch
14 Patch4: %{name}-bfd.patch
15 URL: http://www.ma.utexas.edu/users/wfs/gcl.html
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: gmp-devel
21 BuildRequires: tk-devel >= %{_tk-line}.4-5
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 ExclusiveArch: %{ix86} sparc
27 The GNU Common Lisp system, based on KCL.
30 System GNU Common Lisp, bazuj±cy na KCL.
33 Summary: Tcl/Tk bindings for GNU Common Lisp
34 Summary(pl): Interfejs Tcl/Tk do GNU Common Lisp
35 Group: Development/Languages
36 Requires: %{name} = %{version}
39 Tcl/Tk bindings for GNU Common Lisp.
42 Intefejs Tcl/Tk dla GNU Common Lisp.
56 cp -f /usr/share/automake/config.* .
57 GCC="%{__cc}"; export GCC
58 # note: full path to xemacs must be passed
59 EMACS=/usr/bin/xemacs; export EMACS
63 %{__make} OPTFLAGS="%{rpmcflags}" \
64 EMACS_SITE_LISP=`xemacs -q -batch 2>&1 | sed -e /Loading/d `
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_libdir}/gcl/{cmpnew,unixport,lsp,gcl-tk} \
69 $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1,%{_bindir}} \
70 $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
74 makeinfo gcl-si.texi gcl-tk.texi
75 install gcl*info* $RPM_BUILD_ROOT%{_infodir}
78 install man/man1/gcl.1 $RPM_BUILD_ROOT%{_mandir}/man1
80 install unixport/saved_gcl $RPM_BUILD_ROOT%{_libdir}/gcl/unixport
81 install info/*info* $RPM_BUILD_ROOT%{_infodir}
82 install cmpnew/collectfn.o $RPM_BUILD_ROOT%{_libdir}/gcl/cmpnew
83 install lsp/{gprof.lsp,info.o,profile.lsp} $RPM_BUILD_ROOT%{_libdir}/gcl/lsp
84 install gcl-tk/{decode.tcl,gcl.tcl,gcltkaux,gcltksrv,tinfo.o,tkl.o} \
85 $RPM_BUILD_ROOT%{_libdir}/gcl/gcl-tk
87 ln -sf %{_libdir}/gcl/unixport/saved_gcl $RPM_BUILD_ROOT%{_bindir}/gcl.exe
89 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl
91 exec %{_libdir}/gcl/unixport/saved_gcl \
92 -dir {_libdir}/gcl/unixport/ \
93 -libdir %{_libdir}/gcl/ \
94 -eval '(setq si::*allow-gzipped-file* t)' \
98 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl-tk
100 exec %{_libdir}/gcl/unixport/saved_gcl \
101 -dir {_libdir}/gcl/unixport/ \
102 -libdir %{_libdir}/gcl/ \
103 -eval '(setq si::*allow-gzipped-file* t)' \
104 -eval '(setq si::*tk-library* "%{_libdir}/tk%{_tk-line}")' \
109 rm -rf $RPM_BUILD_ROOT
112 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
115 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
118 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
121 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
124 %defattr(644,root,root,755)
125 %doc readme faq ChangeLog
126 %attr(755,root,root) %{_bindir}/gcl
127 %attr(755,root,root) %{_bindir}/gcl.exe
128 %{_libdir}/gcl/cmpnew
130 %attr(755,root,root) %{_libdir}/gcl/unixport/saved_gcl
131 %{_infodir}/gcl-si.info*
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/gcl-tk
137 %dir %{_libdir}/gcl/gcl-tk
138 %attr (755,root,root) %{_libdir}/gcl/gcl-tk/gcltkaux
139 %attr (755,root,root) %{_libdir}/gcl/gcl-tk/gcltksrv
140 %{_libdir}/gcl/gcl-tk/*.o
141 %{_libdir}/gcl/gcl-tk/*.tcl
142 %{_infodir}/gcl-tk.info*