]>
Commit | Line | Data |
---|---|---|
e196ce95 | 1 | Summary: Scheme script interpreter with multibyte character handling |
039adc86 | 2 | Summary(pl.UTF-8): Interpreter Scheme obsługujący wielobajtowe kodowanie znaków |
e196ce95 | 3 | Name: Gauche |
4 | Version: 0.5.5 | |
728a04f2 | 5 | Release: 2 |
e196ce95 | 6 | License: BSD |
7 | Group: Development/Languages | |
44fa6eef | 8 | Source0: http://dl.sourceforge.net/gauche/%{name}-%{version}.tgz |
e52c5ad2 | 9 | # Source0-md5: 8e2d65afc7669858557166568030d555 |
728a04f2 | 10 | Patch0: %{name}-install.patch |
44fa6eef | 11 | URL: http://www.shiro.dreamhost.com/scheme/gauche/ |
c1240bbe | 12 | BuildRequires: automake |
e196ce95 | 13 | BuildRequires: gdbm-devel >= 1.8.0 |
14 | BuildRequires: slib | |
15 | Requires: slib | |
e196ce95 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
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. | |
24 | ||
039adc86 JR |
25 | %description -l pl.UTF-8 |
26 | Gauche jest interpreterem języka Scheme zgodnym z "Revised^5 Report on | |
e196ce95 | 27 | Algorithmic Language Scheme". Jest on zaprojektowany do szybkiego |
039adc86 JR |
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. | |
e196ce95 | 32 | |
33 | %package static | |
34 | Summary: Static version of Gauche runtime libary | |
039adc86 | 35 | Summary(pl.UTF-8): Statyczna wersja biblioteki czasu wykonania Gauche |
e196ce95 | 36 | Group: Development/Languages |
5087ce8d | 37 | Requires: %{name} = %{version}-%{release} |
e196ce95 | 38 | |
39 | %description static | |
40 | Static version of Gauche runtime libary. | |
41 | ||
039adc86 | 42 | %description static -l pl.UTF-8 |
e196ce95 | 43 | Statyczna wersja biblioteki czasu wykonania Gauche. |
44 | ||
45 | %package dbm | |
46 | Summary: Gauche bindings for GDBM library | |
039adc86 | 47 | Summary(pl.UTF-8): Wiązania do biblioteki GDBM dla Gauche |
e196ce95 | 48 | Group: Development/Languages |
5087ce8d | 49 | Requires: %{name} = %{version}-%{release} |
e196ce95 | 50 | |
51 | %description dbm | |
52 | Gauche bindings for GDBM library. | |
53 | ||
039adc86 JR |
54 | %description dbm -l pl.UTF-8 |
55 | Wiązania do biblioteki GDBM dla Gauche. | |
e196ce95 | 56 | |
57 | %prep | |
58 | %setup -q | |
728a04f2 | 59 | %patch0 -p1 |
e196ce95 | 60 | |
61 | %build | |
62 | %configure \ | |
63 | --enable-multibyte=utf-8 \ | |
53749ea1 | 64 | --with-slib=%{_datadir}/guile/slib \ |
e196ce95 | 65 | --with-pthread |
66 | ||
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | install -d $RPM_BUILD_ROOT | |
72 | ||
728a04f2 | 73 | echo "echo $RPM_BUILD_ROOT\$(sh $(pwd)/src/gauche-config \"\$@\")" >src/gauche-config-install |
74 | ||
e196ce95 | 75 | %{__make} \ |
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 \ | |
728a04f2 | 81 | SCM_INSTALL_DIR=$RPM_BUILD_ROOT%{_datadir}/gauche/%{version}/lib \ |
82 | GAUCHE_CONFIG="sh $(pwd)/src/gauche-config-install" \ | |
e196ce95 | 83 | install-rpm |
84 | ||
85 | install -d $RPM_BUILD_ROOT%{_includedir} | |
86 | mv $RPM_BUILD_ROOT%{_libdir}/gauche/%{version}/include/* $RPM_BUILD_ROOT%{_includedir} | |
87 | ||
88 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
89 | install doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
90 | ||
91 | install -d $RPM_BUILD_ROOT%{_aclocaldir} | |
92 | install aclocal.m4 $RPM_BUILD_ROOT%{_aclocaldir}/gauche.m4 | |
93 | ||
94 | %clean | |
44fa6eef | 95 | rm -rf $RPM_BUILD_ROOT |
e196ce95 | 96 | |
97 | %post | |
98 | # creates slib catalog, if possible. | |
99 | /usr/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)" > /dev/null 2>&1 || : | |
100 | /sbin/ldconfig | |
101 | ||
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
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 | |
c1240bbe JB |
110 | %dir %{_libdir}/gauche |
111 | %dir %{_libdir}/gauche/%{version} | |
112 | %dir %{_libdir}/gauche/%{version}/* | |
e196ce95 | 113 | %attr(755,root,root) %{_libdir}/gauche/%{version}/*/* |
114 | %exclude %attr(755,root,root) %{_libdir}/gauche/%{version}/*/[nog]dbm.so | |
c1240bbe JB |
115 | %dir %{_libdir}/gauche/site |
116 | %dir %{_libdir}/gauche/site/%{version} | |
e196ce95 | 117 | %dir %{_libdir}/gauche/site/%{version}/* |
c1240bbe JB |
118 | %dir %{_datadir}/gauche |
119 | %dir %{_datadir}/gauche/%{version} | |
e196ce95 | 120 | %{_datadir}/gauche/%{version}/lib |
121 | %exclude %{_datadir}/gauche/%{version}/lib/dbm* | |
122 | %dir %{_datadir}/gauche/site/lib | |
123 | %{_includedir}/gauche | |
124 | %{_includedir}/gauche.h | |
125 | %{_mandir}/man1/* | |
126 | %{_aclocaldir}/*.m4 | |
127 | ||
128 | %files static | |
129 | %defattr(644,root,root,755) | |
130 | %{_libdir}/libgauche.a | |
131 | ||
132 | %files dbm | |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_libdir}/gauche/%{version}/*/[nog]dbm.so | |
135 | %{_datadir}/gauche/%{version}/lib/dbm | |
136 | %{_datadir}/gauche/%{version}/lib/dbm.scm |