1 # $Id: Gauche.spec,v 1.5 2003-05-25 05:45:21 misi3k 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 Patch0: %{name}-install.patch
11 BuildRequires: gdbm-devel >= 1.8.0
14 URL: http://www.shiro.dreamhost.com/scheme/gauche/
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Gauche is a Scheme interpreter conforming Revised^5 Report on
19 Algorithmic Language Scheme. It is designed for rapid development of
20 daily tools like system management and text processing. It can handle
21 multibyte character strings natively. This package is compiled with
22 utf-8 as the native character encoding.
25 Gauche jest interpreterem jêzyka Scheme zgodnym z "Revised^5 Report on
26 Algorithmic Language Scheme". Jest on zaprojektowany do szybkiego
27 tworzenia codziennych narzêdzi, jak zarz±dzania systemem lub
28 przetwarzanie tekstu. Potrafi on obs³ugiwaæ natywnie wielobajtowe
29 kodowanie znaków (jak na przyk³ad unicode). Ten pakiet jest
30 skompilowany z utf-8 jako natywnym kodowaniem znaków.
33 Summary: Static version of Gauche runtime libary
34 Summary(pl): Statyczna wersja biblioteki czasu wykonania Gauche
35 Group: Development/Languages
36 Requires: %{name} = %{version}
39 Static version of Gauche runtime libary.
41 %description static -l pl
42 Statyczna wersja biblioteki czasu wykonania Gauche.
45 Summary: Gauche bindings for GDBM library
46 Summary(pl): Wi±zania do biblioteki GDBM dla Gauche
47 Group: Development/Languages
48 Requires: %{name} = %{version}
51 Gauche bindings for GDBM library.
53 %description dbm -l pl
54 Wi±zania do biblioteki GDBM dla Gauche.
62 --enable-multibyte=utf-8 \
63 --with-slib=%{_datadir}/guile/slib \
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT
72 echo "echo $RPM_BUILD_ROOT\$(sh $(pwd)/src/gauche-config \"\$@\")" >src/gauche-config-install
75 LIB_INSTALL_DIR=$RPM_BUILD_ROOT%{_libdir} \
76 BIN_INSTALL_DIR=$RPM_BUILD_ROOT%{_bindir} \
77 DATA_INSTALL_DIR=$RPM_BUILD_ROOT%{_datadir} \
78 GAUCHE_DATA_DIR=$RPM_BUILD_ROOT%{_datadir}/gauche \
79 GAUCHE_ARCH_DIR=$RPM_BUILD_ROOT%{_libdir}/gauche \
80 SCM_INSTALL_DIR=$RPM_BUILD_ROOT%{_datadir}/gauche/%{version}/lib \
81 GAUCHE_CONFIG="sh $(pwd)/src/gauche-config-install" \
84 install -d $RPM_BUILD_ROOT%{_includedir}
85 mv $RPM_BUILD_ROOT%{_libdir}/gauche/%{version}/include/* $RPM_BUILD_ROOT%{_includedir}
87 install -d $RPM_BUILD_ROOT%{_mandir}/man1
88 install doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
90 install -d $RPM_BUILD_ROOT%{_aclocaldir}
91 install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/gauche.m4
94 rm -rf ${RPM_BUILD_ROOT}
97 # creates slib catalog, if possible.
98 /usr/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)" > /dev/null 2>&1 || :
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc COPYING ChangeLog
106 %attr(755,root,root) %{_bindir}/gosh
107 %attr(755,root,root) %{_bindir}/gauche-config
108 %attr(755,root,root) %{_libdir}/libgauche.so
109 %attr(755,root,root) %{_libdir}/gauche/%{version}/*/*
110 %exclude %attr(755,root,root) %{_libdir}/gauche/%{version}/*/[nog]dbm.so
111 %dir %{_libdir}/gauche/site/%{version}/*
112 %{_datadir}/gauche/%{version}/lib
113 %exclude %{_datadir}/gauche/%{version}/lib/dbm*
114 %dir %{_datadir}/gauche/site/lib
115 %{_includedir}/gauche
116 %{_includedir}/gauche.h
121 %defattr(644,root,root,755)
122 %{_libdir}/libgauche.a
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/gauche/%{version}/*/[nog]dbm.so
127 %{_datadir}/gauche/%{version}/lib/dbm
128 %{_datadir}/gauche/%{version}/lib/dbm.scm