1 # $Id: Gauche.spec,v 1.6 2003-05-26 16:24:18 malekith Exp $
2 Summary: Scheme script interpreter with multibyte character handling
3 Summary(pl): Interpreter Scheme obs³uguj±cy wielobajtowe kodowanie znaków
8 Group: Development/Languages
9 Source0: http://telia.dl.sourceforge.net/sourceforge/gauche/%{name}-%{version}.tgz
10 # Source0-md5: 8e2d65afc7669858557166568030d555
11 Patch0: %{name}-install.patch
12 BuildRequires: gdbm-devel >= 1.8.0
15 URL: http://www.shiro.dreamhost.com/scheme/gauche/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Gauche is a Scheme interpreter conforming Revised^5 Report on
20 Algorithmic Language Scheme. It is designed for rapid development of
21 daily tools like system management and text processing. It can handle
22 multibyte character strings natively. This package is compiled with
23 utf-8 as the native character encoding.
26 Gauche jest interpreterem jêzyka Scheme zgodnym z "Revised^5 Report on
27 Algorithmic Language Scheme". Jest on zaprojektowany do szybkiego
28 tworzenia codziennych narzêdzi, jak zarz±dzania systemem lub
29 przetwarzanie tekstu. Potrafi on obs³ugiwaæ natywnie wielobajtowe
30 kodowanie znaków (jak na przyk³ad unicode). Ten pakiet jest
31 skompilowany z utf-8 jako natywnym kodowaniem znaków.
34 Summary: Static version of Gauche runtime libary
35 Summary(pl): Statyczna wersja biblioteki czasu wykonania Gauche
36 Group: Development/Languages
37 Requires: %{name} = %{version}
40 Static version of Gauche runtime libary.
42 %description static -l pl
43 Statyczna wersja biblioteki czasu wykonania Gauche.
46 Summary: Gauche bindings for GDBM library
47 Summary(pl): Wi±zania do biblioteki GDBM dla Gauche
48 Group: Development/Languages
49 Requires: %{name} = %{version}
52 Gauche bindings for GDBM library.
54 %description dbm -l pl
55 Wi±zania do biblioteki GDBM dla Gauche.
63 --enable-multibyte=utf-8 \
64 --with-slib=%{_datadir}/guile/slib \
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT
73 echo "echo $RPM_BUILD_ROOT\$(sh $(pwd)/src/gauche-config \"\$@\")" >src/gauche-config-install
76 LIB_INSTALL_DIR=$RPM_BUILD_ROOT%{_libdir} \
77 BIN_INSTALL_DIR=$RPM_BUILD_ROOT%{_bindir} \
78 DATA_INSTALL_DIR=$RPM_BUILD_ROOT%{_datadir} \
79 GAUCHE_DATA_DIR=$RPM_BUILD_ROOT%{_datadir}/gauche \
80 GAUCHE_ARCH_DIR=$RPM_BUILD_ROOT%{_libdir}/gauche \
81 SCM_INSTALL_DIR=$RPM_BUILD_ROOT%{_datadir}/gauche/%{version}/lib \
82 GAUCHE_CONFIG="sh $(pwd)/src/gauche-config-install" \
85 install -d $RPM_BUILD_ROOT%{_includedir}
86 mv $RPM_BUILD_ROOT%{_libdir}/gauche/%{version}/include/* $RPM_BUILD_ROOT%{_includedir}
88 install -d $RPM_BUILD_ROOT%{_mandir}/man1
89 install doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
91 install -d $RPM_BUILD_ROOT%{_aclocaldir}
92 install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/gauche.m4
95 rm -rf ${RPM_BUILD_ROOT}
98 # creates slib catalog, if possible.
99 /usr/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)" > /dev/null 2>&1 || :
102 %postun -p /sbin/ldconfig
105 %defattr(644,root,root,755)
106 %doc COPYING ChangeLog
107 %attr(755,root,root) %{_bindir}/gosh
108 %attr(755,root,root) %{_bindir}/gauche-config
109 %attr(755,root,root) %{_libdir}/libgauche.so
110 %attr(755,root,root) %{_libdir}/gauche/%{version}/*/*
111 %exclude %attr(755,root,root) %{_libdir}/gauche/%{version}/*/[nog]dbm.so
112 %dir %{_libdir}/gauche/site/%{version}/*
113 %{_datadir}/gauche/%{version}/lib
114 %exclude %{_datadir}/gauche/%{version}/lib/dbm*
115 %dir %{_datadir}/gauche/site/lib
116 %{_includedir}/gauche
117 %{_includedir}/gauche.h
122 %defattr(644,root,root,755)
123 %{_libdir}/libgauche.a
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/gauche/%{version}/*/[nog]dbm.so
128 %{_datadir}/gauche/%{version}/lib/dbm
129 %{_datadir}/gauche/%{version}/lib/dbm.scm