]>
Commit | Line | Data |
---|---|---|
ec16a992 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't perform ./check-guile | |
4 | # | |
6a63ad55 | 5 | %define ver 1.8 |
6ed4fa86 | 6 | Summary: GNU Extension language |
cd997da6 ER |
7 | Summary(es.UTF-8): Lenguaje de extensión de la GNU |
8 | Summary(ja.UTF-8): アプリケーションの拡張のための GNU による Scheme の実装 | |
9 | Summary(pl.UTF-8): Język GNU Extension language | |
10 | Summary(pt_BR.UTF-8): Linguagem de extensão da GNU | |
11 | Summary(ru.UTF-8): Язык расширений GNU | |
12 | Summary(uk.UTF-8): Мова розширень GNU | |
6ed4fa86 | 13 | Name: guile |
97c6ae4c JB |
14 | Version: 1.8.4 |
15 | Release: 1 | |
1e52da12 | 16 | Epoch: 5 |
90523dbf | 17 | License: GPL v2+/LGPL v2.1+ |
6ed4fa86 | 18 | Group: Development/Languages |
ec16a992 | 19 | Source0: ftp://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.gz |
97c6ae4c | 20 | # Source0-md5: aacc6a384af88a85574717a9221f5c6e |
3c33fb4e | 21 | Patch0: %{name}-info.patch |
1c3a8efd | 22 | Patch1: %{name}-fix_awk_patch.patch |
82061f6b | 23 | Patch2: %{name}-SCM_SITE_DIR_path.patch |
ae4d8b47 | 24 | Patch3: %{name}-unknown_arch.patch |
771e095e | 25 | Patch4: %{name}-test-hacks.patch |
55c62197 | 26 | Patch5: %{name}-as-needed.patch |
46d84e2f JB |
27 | URL: http://www.gnu.org/software/guile/guile.html |
28 | BuildRequires: autoconf >= 2.53 | |
29 | BuildRequires: automake >= 1.6 | |
6ad3279f | 30 | BuildRequires: gettext-devel |
771e095e | 31 | BuildRequires: gmp-devel >= 4.1 |
a5198a98 | 32 | BuildRequires: libltdl-devel |
46d84e2f | 33 | BuildRequires: libtool >= 1:1.4.2-9 |
0889bccb | 34 | BuildRequires: ncurses-devel >= 5.2 |
35 | BuildRequires: readline-devel >= 4.2 | |
46d84e2f | 36 | BuildRequires: texinfo |
18b82ed8 | 37 | Requires: umb-scheme |
08deaa75 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73082f46 | 39 | Obsoletes: libguile9 |
24717ba3 | 40 | |
fbf0caed | 41 | %ifarch sparc sparc64 |
42 | %undefine with_tests | |
43 | %endif | |
44 | ||
dba6023b | 45 | %description |
62f049eb | 46 | Guile, a portable, embeddable Scheme implementation written in C. |
47 | Guile provides a machine independent execution platform that can be | |
48 | linked in as a library when building extensible programs. | |
6ed4fa86 | 49 | |
e50d8b8b JR |
50 | %description -l es.UTF-8 |
51 | Guile es una implementación de Scheme, que puede ser portátil y | |
52 | empotrada, escrita en C. Guile provee una máquina de ejecución | |
1e52da12 | 53 | independiente de plataforma, que puede ser linkada como una biblioteca |
54 | construyendo programas extensibles. | |
55 | ||
e50d8b8b JR |
56 | %description -l ja.UTF-8 |
57 | GUILE (GNU's Ubiquitous Intelligent Language for Extension) は Scheme | |
58 | プログラミング言語を実装した C で書かれたライブラリです。 GUILE は | |
59 | マシン非依存の実行環境で、プログラムの拡張性を提供します。 | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Guile jest przenośną, dającą się wbudować implementacją Scheme | |
63 | napisaną w C. Guile udostępnia platformę wykonywania niezależną od | |
64 | sprzętu, która może być dołączona jako biblioteka przy tworzeniu | |
65 | rozszerzalnych programów. | |
66 | ||
67 | %description -l pt_BR.UTF-8 | |
68 | Guile é um implementação de Scheme portável e embutível escrita em C. | |
69 | Guile provê uma máquina de execução independente de plataforma, que | |
70 | pode ser ligada como uma biblioteca construindo programas extensíveis. | |
71 | ||
72 | %description -l ru.UTF-8 | |
73 | Guile - это переносимая, встраиваемая реализация языка Scheme | |
74 | написанная на C. Guile предоставляет машинонезависимую среду | |
75 | исполнения, которая может быть скомпонована с программой в виде | |
76 | библиотеки. | |
77 | ||
78 | %description -l uk.UTF-8 | |
79 | Guile - це переносима та вбудовувана реалізація мови Scheme написана | |
80 | на C. Guile забезпечує машинонезалежне середовище виконання, яке може | |
81 | бути скомпоноване з програмою у вигляді бібліотеки. | |
1e52da12 | 82 | |
24717ba3 | 83 | %package devel |
4a0c2f81 | 84 | Summary: Guile's header files, etc |
cd997da6 ER |
85 | Summary(es.UTF-8): Bibliotecas de Guile, archivos de inclusión, etc |
86 | Summary(ja.UTF-8): GUILE 拡張性ライブラリ用のライブラリとヘッダファイル | |
87 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja Guile | |
88 | Summary(pt_BR.UTF-8): Bibliotecas da Guile, arquivos de inclusão, etc | |
89 | Summary(ru.UTF-8): Файлы для разработки программ с Guile | |
90 | Summary(uk.UTF-8): Файли для розробки програм з Guile | |
a56b727e | 91 | Group: Development/Libraries |
943ebcc6 | 92 | Requires: %{name} = %{epoch}:%{version}-%{release} |
771e095e JB |
93 | Requires: gmp-devel >= 4.1 |
94 | Requires: libltdl-devel | |
95 | Requires: m4 | |
73082f46 | 96 | Obsoletes: libguile9-devel |
24717ba3 | 97 | |
98 | %description devel | |
99 | What's needed to develop apps linked w/ guile | |
100 | ||
e50d8b8b | 101 | %description devel -l es.UTF-8 |
1e52da12 | 102 | Este paquete contiene todo lo necesario para desarrollar aplicaciones |
103 | usando Guile. | |
104 | ||
e50d8b8b JR |
105 | %description -l ja.UTF-8 |
106 | guile-devel パッケージはライブラリやヘッダファイル、その他...あなたが | |
107 | GUILE 拡張性ライブラリをリンクしたプログラムを作成するのに必要な | |
108 | ファイルを提供します。 | |
1e52da12 | 109 | |
e50d8b8b JR |
110 | %description devel -l pl.UTF-8 |
111 | Pliki nagłówkowe i dokumentacja Guile. | |
6ed4fa86 | 112 | |
e50d8b8b JR |
113 | %description devel -l pt_BR.UTF-8 |
114 | Este pacote contém o que é necessário para desenvolver aplicações | |
1e52da12 | 115 | usando a Guile. |
116 | ||
e50d8b8b JR |
117 | %description devel -l ru.UTF-8 |
118 | Все, что нужно для разработки приложений, скомпонованых с guile. | |
1e52da12 | 119 | |
e50d8b8b JR |
120 | %description devel -l uk.UTF-8 |
121 | Все, що потрібно для розробки програм, що компонуються з guile. | |
1e52da12 | 122 | |
3242f195 | 123 | %package static |
6ed4fa86 | 124 | Summary: Guile static libraries |
cd997da6 ER |
125 | Summary(pl.UTF-8): Biblioteka statyczna Guile |
126 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com guile | |
127 | Summary(ru.UTF-8): Статические библиотеки Guile | |
128 | Summary(uk.UTF-8): Статичні бібліотеки Guile | |
a56b727e | 129 | Group: Development/Libraries |
943ebcc6 | 130 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
24717ba3 | 131 | |
132 | %description static | |
6ed4fa86 | 133 | Guile static library. |
134 | ||
e50d8b8b | 135 | %description static -l pl.UTF-8 |
62f049eb | 136 | Biblioteka statyczna Guile. |
24717ba3 | 137 | |
e50d8b8b JR |
138 | %description static -l pt_BR.UTF-8 |
139 | Bibliotecas estáticas para desenvolvimento com guile | |
1e52da12 | 140 | |
e50d8b8b JR |
141 | %description static -l ru.UTF-8 |
142 | Статические библиотеки guile. | |
1e52da12 | 143 | |
e50d8b8b JR |
144 | %description static -l uk.UTF-8 |
145 | Статичні бібліотеки guile. | |
1e52da12 | 146 | |
24717ba3 | 147 | %prep |
148 | %setup -q | |
3242f195 | 149 | %patch0 -p1 |
61931b2d | 150 | %patch1 -p1 |
d89fff94 | 151 | %patch3 -p1 |
771e095e | 152 | %patch4 -p1 |
55c62197 | 153 | %patch5 -p1 |
82061f6b | 154 | |
155 | # I wouldn't apply it, it breaks other programs, but I have fixed it, so | |
156 | # if you convince me... (but remember about perl, python, tcl and ruby ) (filon) | |
d89fff94 | 157 | # patch2 -p1 |
24717ba3 | 158 | |
159 | %build | |
6ad3279f | 160 | %{__gettextize} |
a5198a98 | 161 | %{__libtoolize} |
162 | %{__aclocal} -I guile-config | |
163 | %{__autoconf} | |
164 | %{__automake} | |
46d84e2f | 165 | cd guile-readline |
a5198a98 | 166 | %{__aclocal} -I ../guile-config |
167 | %{__autoconf} | |
46d84e2f | 168 | # DON'T USE --force HERE - it would break build |
a5198a98 | 169 | automake -a -c --foreign |
46d84e2f | 170 | cd .. |
ae4d8b47 | 171 | %configure |
82061f6b | 172 | |
c29e7d20 | 173 | %{__make} |
ec16a992 JB |
174 | |
175 | %{?with_tests:./check-guile} | |
24717ba3 | 176 | |
177 | %install | |
178 | rm -rf $RPM_BUILD_ROOT | |
18b82ed8 | 179 | install -d $RPM_BUILD_ROOT{%{_datadir}/guile/site,%{_libdir}/guile} |
dba6023b | 180 | |
62f049eb | 181 | %{__make} install \ |
182 | DESTDIR=$RPM_BUILD_ROOT \ | |
183 | aclocaldir=%{_aclocaldir} | |
6ed4fa86 | 184 | |
46d84e2f JB |
185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
82061f6b | 187 | |
24717ba3 | 188 | %post -p /sbin/ldconfig |
189 | %postun -p /sbin/ldconfig | |
190 | ||
97c6ae4c | 191 | %post devel -p /sbin/postshell |
2d675e95 | 192 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3242f195 | 193 | |
97c6ae4c | 194 | %postun devel -p /sbin/postshell |
2d675e95 | 195 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3242f195 | 196 | |
24717ba3 | 197 | %files |
67c5c8e0 | 198 | %defattr(644,root,root,755) |
ee71bfc9 | 199 | %doc AUTHORS NEWS README THANKS |
d1c4b0d3 | 200 | %attr(755,root,root) %{_bindir}/guile |
46d84e2f | 201 | %attr(755,root,root) %{_bindir}/guile-tools |
ee71bfc9 | 202 | %attr(755,root,root) %{_libdir}/libguile.so.*.*.* |
ee71bfc9 | 203 | %attr(755,root,root) %ghost %{_libdir}/libguile.so.17 |
97c6ae4c JB |
204 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-1-v-3.so.*.*.* |
205 | %attr(755,root,root) %ghost %{_libdir}/libguile-srfi-srfi-1-v-3.so.3 | |
206 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-4-v-3.so.*.*.* | |
207 | %attr(755,root,root) %ghost %{_libdir}/libguile-srfi-srfi-4-v-3.so.3 | |
208 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-13-14-v-3.so.*.*.* | |
209 | %attr(755,root,root) %ghost %{_libdir}/libguile-srfi-srfi-13-14-v-3.so.3 | |
210 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-60-v-2.so.*.*.* | |
211 | %attr(755,root,root) %ghost %{_libdir}/libguile-srfi-srfi-60-v-2.so.2 | |
212 | %attr(755,root,root) %{_libdir}/libguilereadline-v-17.so.*.*.* | |
213 | %attr(755,root,root) %ghost %{_libdir}/libguilereadline-v-17.so.17 | |
18b82ed8 | 214 | %{_libdir}/guile |
6a63ad55 SS |
215 | %dir %{_datadir}/guile |
216 | %dir %{_datadir}/guile/%{ver} | |
217 | %{_datadir}/guile/%{ver}/guile-procedures.txt | |
218 | %{_datadir}/guile/%{ver}/ice-9 | |
219 | %{_datadir}/guile/%{ver}/lang | |
220 | %{_datadir}/guile/%{ver}/oop | |
221 | %dir %{_datadir}/guile/%{ver}/scripts | |
222 | %attr(755,root,root) %{_datadir}/guile/%{ver}/scripts/* | |
223 | %{_datadir}/guile/%{ver}/srfi | |
24717ba3 | 224 | |
225 | %files devel | |
6ed4fa86 | 226 | %defattr(644,root,root,755) |
46d84e2f | 227 | %doc ChangeLog HACKING |
d1c4b0d3 | 228 | %attr(755,root,root) %{_bindir}/guile-config |
82061f6b | 229 | %attr(755,root,root) %{_bindir}/guile-snarf |
ee71bfc9 | 230 | %attr(755,root,root) %{_libdir}/libguile.so |
97c6ae4c JB |
231 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-1-v-3.so |
232 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-4-v-3.so | |
233 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-13-14-v-3.so | |
234 | %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-60-v-2.so | |
235 | %attr(755,root,root) %{_libdir}/libguilereadline-v-17.so | |
ee71bfc9 | 236 | %{_libdir}/libguile.la |
97c6ae4c JB |
237 | %{_libdir}/libguile-srfi-srfi-1-v-3.la |
238 | %{_libdir}/libguile-srfi-srfi-4-v-3.la | |
239 | %{_libdir}/libguile-srfi-srfi-13-14-v-3.la | |
240 | %{_libdir}/libguile-srfi-srfi-60-v-2.la | |
241 | %{_libdir}/libguilereadline-v-17.la | |
242 | %{_infodir}/goops.info* | |
243 | %{_infodir}/guile.info* | |
244 | %{_infodir}/guile-tut.info* | |
245 | %{_infodir}/r5rs.info* | |
246 | %{_includedir}/guile | |
247 | %{_includedir}/libguile | |
248 | %{_includedir}/libguile.h | |
ac27a5be | 249 | %{_aclocaldir}/guile.m4 |
3242f195 | 250 | |
251 | %files static | |
24717ba3 | 252 | %defattr(644,root,root,755) |
ee71bfc9 | 253 | %{_libdir}/libguile.a |
97c6ae4c JB |
254 | %{_libdir}/libguile-srfi-srfi-1-v-3.a |
255 | %{_libdir}/libguile-srfi-srfi-4-v-3.a | |
256 | %{_libdir}/libguile-srfi-srfi-13-14-v-3.a | |
257 | %{_libdir}/libguile-srfi-srfi-60-v-2.a | |
258 | %{_libdir}/libguilereadline-v-17.a |