3 # - package emacs-lisp files (if building with xemacs)
6 %bcond_without xemacs # don't build/package emacs-lisp parts
9 Summary: GNU Common Lisp system
10 Summary(pl.UTF-8): System GNU Common Lisp
15 Group: Development/Languages
16 Source0: http://ftp.gnu.org/gnu/gcl/%{name}-%{version}.tar.gz
17 # Source0-md5: 7cb9c388e9e77696f4e27e7a1d118524
18 Patch0: %{name}-make.patch
19 Patch1: %{name}-info.patch
20 Patch2: %{name}-format.patch
21 URL: http://www.gnu.org/software/gcl/
22 BuildRequires: autoconf >= 2.61
23 BuildRequires: automake
24 BuildRequires: gmp-devel >= 4.0
25 BuildRequires: readline-devel
26 BuildRequires: texinfo
27 BuildRequires: tk-devel >= %{tk_ver}
28 %{?with_xemacs:BuildRequires: xemacs}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The GNU Common Lisp system, based on KCL.
34 %description -l pl.UTF-8
35 System GNU Common Lisp, bazujÄ…cy na KCL.
38 Summary: Tcl/Tk bindings for GNU Common Lisp
39 Summary(pl.UTF-8): Interfejs Tcl/Tk do GNU Common Lisp
40 Group: Development/Languages
41 Requires: %{name} = %{version}-%{release}
44 Tcl/Tk bindings for GNU Common Lisp.
46 %description tk -l pl.UTF-8
47 Interfejs Tcl/Tk dla GNU Common Lisp.
58 cp -f /usr/share/automake/config.* .
59 GCC="%{__cc}"; export GCC
61 %{?with_xemacs:EMACS=/usr/bin/xemacs} \
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_infodir},%{_mandir}/man1}
72 DESTDIR=$RPM_BUILD_ROOT \
73 INSTALL_LIB_DIR=%{_libdir}/gcl
75 mv -f $RPM_BUILD_ROOT%{_libdir}/gcl/info/* $RPM_BUILD_ROOT%{_infodir}
76 rmdir $RPM_BUILD_ROOT%{_libdir}/gcl/info
78 install man/man1/gcl.1 $RPM_BUILD_ROOT%{_mandir}/man1
80 ln -sf %{_libdir}/gcl/unixport/saved_gcl $RPM_BUILD_ROOT%{_bindir}/gcl.exe
82 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl
84 exec %{_libdir}/gcl/unixport/saved_gcl \
85 -dir %{_libdir}/gcl/unixport/ \
86 -libdir %{_libdir}/gcl/ \
87 -eval '(setq si::*allow-gzipped-file* t)' \
91 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gcl-tk
93 exec %{_libdir}/gcl/unixport/saved_gcl \
94 -dir %{_libdir}/gcl/unixport/ \
95 -libdir %{_libdir}/gcl/ \
96 -eval '(setq si::*allow-gzipped-file* t)' \
97 -eval '(setq si::*tk-library* "/usr/lib/tk%{tk_ver}")' \
101 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/{dwdoc*,gcl-si*,gcl-tk*}
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/postshell
107 -/usr/sbin/fix-info-dir -c %{_infodir}
109 %postun -p /sbin/postshell
110 -/usr/sbin/fix-info-dir -c %{_infodir}
112 %post tk -p /sbin/postshell
113 -/usr/sbin/fix-info-dir -c %{_infodir}
115 %postun tk -p /sbin/postshell
116 -/usr/sbin/fix-info-dir -c %{_infodir}
119 %defattr(644,root,root,755)
120 %doc readme faq ChangeLog
121 %attr(755,root,root) %{_bindir}/gcl
122 %attr(755,root,root) %{_bindir}/gcl.exe
125 %{_libdir}/gcl/cmpnew
129 %{_libdir}/gcl/xgcl-2
130 %dir %{_libdir}/gcl/unixport
131 %attr(755,root,root) %{_libdir}/gcl/unixport/saved_gcl
132 %{_libdir}/gcl/unixport/*.lsp
133 %{_libdir}/gcl/unixport/gcl.script
135 %{_libdir}/gcl/unixport/libgcl.a
136 %{_libdir}/gcl/unixport/libgclp.a
137 %{_infodir}/gcl-si.info*
138 %{_mandir}/man1/gcl.1*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/gcl-tk
143 %dir %{_libdir}/gcl/gcl-tk
144 %attr(755,root,root) %{_libdir}/gcl/gcl-tk/gcltkaux
145 %attr(755,root,root) %{_libdir}/gcl/gcl-tk/gcltksrv
146 %{_libdir}/gcl/gcl-tk/*.o
147 %{_libdir}/gcl/gcl-tk/*.tcl
148 %{_libdir}/gcl/gcl-tk/tk-package.lsp
149 %{_infodir}/gcl-tk.info*