]>
Commit | Line | Data |
---|---|---|
d571a5bd | 1 | # TODO: many bytevectors.test and numbers.test failures on x32 |
ec16a992 JB |
2 | # |
3 | # Conditional build: | |
1833e73e JB |
4 | %bcond_without tests # running ./check-guile |
5 | %bcond_with emacs # emacs mode subpackage | |
8d722aac | 6 | |
1833e73e JB |
7 | %ifarch sparc sparc64 |
8 | %undefine with_tests | |
9 | %endif | |
10 | ||
51527323 | 11 | %define mver 3.0 |
6ed4fa86 | 12 | Summary: GNU Extension language |
cd997da6 ER |
13 | Summary(es.UTF-8): Lenguaje de extensión de la GNU |
14 | Summary(ja.UTF-8): アプリケーションの拡張のための GNU による Scheme の実装 | |
15 | Summary(pl.UTF-8): Język GNU Extension language | |
16 | Summary(pt_BR.UTF-8): Linguagem de extensão da GNU | |
17 | Summary(ru.UTF-8): Язык расширений GNU | |
18 | Summary(uk.UTF-8): Мова розширень GNU | |
6ed4fa86 | 19 | Name: guile |
ff29bf0d | 20 | Version: 3.0.9 |
d85560d0 | 21 | Release: 2 |
1e52da12 | 22 | Epoch: 5 |
30a6ecd9 | 23 | License: LGPL v3+ |
6ed4fa86 | 24 | Group: Development/Languages |
7d1d31d2 | 25 | Source0: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz |
ff29bf0d | 26 | # Source0-md5: 258983e0156c2bc66539dcbcb96f2bd2 |
3c33fb4e | 27 | Patch0: %{name}-info.patch |
1c3a8efd | 28 | Patch1: %{name}-fix_awk_patch.patch |
51527323 | 29 | Patch2: 0006-numbers.test-disable-unresolved-mixed-type-division-.patch |
46d84e2f | 30 | URL: http://www.gnu.org/software/guile/guile.html |
ad1146e0 | 31 | BuildRequires: autoconf >= 2.61 |
78e77f75 | 32 | BuildRequires: automake >= 1:1.12 |
083d7105 | 33 | %{?with_emacs:BuildRequires: emacs} |
34197637 | 34 | BuildRequires: gc-devel >= 7.0 |
5668b1fc | 35 | BuildRequires: gettext-tools |
78e77f75 | 36 | BuildRequires: gmp-devel >= 4.2 |
30a6ecd9 | 37 | BuildRequires: libffi-devel |
a5198a98 | 38 | BuildRequires: libltdl-devel |
46d84e2f | 39 | BuildRequires: libtool >= 1:1.4.2-9 |
aaf22703 | 40 | BuildRequires: libunistring-devel |
0889bccb | 41 | BuildRequires: ncurses-devel >= 5.2 |
aaf22703 | 42 | BuildRequires: pkgconfig(libffi) |
0889bccb | 43 | BuildRequires: readline-devel >= 4.2 |
d7603ee6 | 44 | BuildRequires: tar >= 1:1.22 |
46d84e2f | 45 | BuildRequires: texinfo |
d7603ee6 | 46 | BuildRequires: xz |
8d722aac | 47 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
78e77f75 | 48 | Requires: gmp >= 4.2 |
18b82ed8 | 49 | Requires: umb-scheme |
ff29bf0d | 50 | Obsoletes: libguile9 < 5:2 |
10494b88 | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24717ba3 | 52 | |
1833e73e | 53 | %define _noautostrip .*%{_libdir}/guile/.*\.go |
be659994 | 54 | |
dba6023b | 55 | %description |
62f049eb | 56 | Guile, a portable, embeddable Scheme implementation written in C. |
57 | Guile provides a machine independent execution platform that can be | |
58 | linked in as a library when building extensible programs. | |
6ed4fa86 | 59 | |
e50d8b8b JR |
60 | %description -l es.UTF-8 |
61 | Guile es una implementación de Scheme, que puede ser portátil y | |
62 | empotrada, escrita en C. Guile provee una máquina de ejecución | |
1e52da12 | 63 | independiente de plataforma, que puede ser linkada como una biblioteca |
64 | construyendo programas extensibles. | |
65 | ||
e50d8b8b JR |
66 | %description -l ja.UTF-8 |
67 | GUILE (GNU's Ubiquitous Intelligent Language for Extension) は Scheme | |
68 | プログラミング言語を実装した C で書かれたライブラリです。 GUILE は | |
69 | マシン非依存の実行環境で、プログラムの拡張性を提供します。 | |
70 | ||
71 | %description -l pl.UTF-8 | |
72 | Guile jest przenośną, dającą się wbudować implementacją Scheme | |
73 | napisaną w C. Guile udostępnia platformę wykonywania niezależną od | |
74 | sprzętu, która może być dołączona jako biblioteka przy tworzeniu | |
75 | rozszerzalnych programów. | |
76 | ||
77 | %description -l pt_BR.UTF-8 | |
78 | Guile é um implementação de Scheme portável e embutível escrita em C. | |
79 | Guile provê uma máquina de execução independente de plataforma, que | |
80 | pode ser ligada como uma biblioteca construindo programas extensíveis. | |
81 | ||
82 | %description -l ru.UTF-8 | |
83 | Guile - это переносимая, встраиваемая реализация языка Scheme | |
84 | написанная на C. Guile предоставляет машинонезависимую среду | |
85 | исполнения, которая может быть скомпонована с программой в виде | |
86 | библиотеки. | |
87 | ||
88 | %description -l uk.UTF-8 | |
89 | Guile - це переносима та вбудовувана реалізація мови Scheme написана | |
90 | на C. Guile забезпечує машинонезалежне середовище виконання, яке може | |
91 | бути скомпоноване з програмою у вигляді бібліотеки. | |
1e52da12 | 92 | |
8d722aac | 93 | %package libs |
1833e73e JB |
94 | Summary: Guile shared libraries |
95 | Summary(pl.UTF-8): Biblioteki współdzielone Guile | |
8d722aac | 96 | Group: Libraries |
8d722aac ER |
97 | |
98 | %description libs | |
1833e73e JB |
99 | Guile shared libraries. |
100 | ||
101 | %description libs -l pl.UTF-8 | |
102 | Biblioteki współdzielone Guile. | |
8d722aac | 103 | |
24717ba3 | 104 | %package devel |
4a0c2f81 | 105 | Summary: Guile's header files, etc |
cd997da6 ER |
106 | Summary(es.UTF-8): Bibliotecas de Guile, archivos de inclusión, etc |
107 | Summary(ja.UTF-8): GUILE 拡張性ライブラリ用のライブラリとヘッダファイル | |
108 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja Guile | |
109 | Summary(pt_BR.UTF-8): Bibliotecas da Guile, arquivos de inclusão, etc | |
110 | Summary(ru.UTF-8): Файлы для разработки программ с Guile | |
111 | Summary(uk.UTF-8): Файли для розробки програм з Guile | |
a56b727e | 112 | Group: Development/Libraries |
943ebcc6 | 113 | Requires: %{name} = %{epoch}:%{version}-%{release} |
30a6ecd9 | 114 | Requires: gc-devel |
78e77f75 | 115 | Requires: gmp-devel >= 4.2 |
30a6ecd9 | 116 | Requires: libffi-devel |
771e095e JB |
117 | Requires: libltdl-devel |
118 | Requires: m4 | |
ff29bf0d | 119 | Obsoletes: libguile9-devel < 5:2 |
24717ba3 | 120 | |
121 | %description devel | |
122 | What's needed to develop apps linked w/ guile | |
123 | ||
e50d8b8b | 124 | %description devel -l es.UTF-8 |
1e52da12 | 125 | Este paquete contiene todo lo necesario para desarrollar aplicaciones |
126 | usando Guile. | |
127 | ||
65c8a19e | 128 | %description devel -l ja.UTF-8 |
e50d8b8b JR |
129 | guile-devel パッケージはライブラリやヘッダファイル、その他...あなたが |
130 | GUILE 拡張性ライブラリをリンクしたプログラムを作成するのに必要な | |
131 | ファイルを提供します。 | |
1e52da12 | 132 | |
e50d8b8b JR |
133 | %description devel -l pl.UTF-8 |
134 | Pliki nagłówkowe i dokumentacja Guile. | |
6ed4fa86 | 135 | |
e50d8b8b JR |
136 | %description devel -l pt_BR.UTF-8 |
137 | Este pacote contém o que é necessário para desenvolver aplicações | |
1e52da12 | 138 | usando a Guile. |
139 | ||
e50d8b8b JR |
140 | %description devel -l ru.UTF-8 |
141 | Все, что нужно для разработки приложений, скомпонованых с guile. | |
1e52da12 | 142 | |
e50d8b8b JR |
143 | %description devel -l uk.UTF-8 |
144 | Все, що потрібно для розробки програм, що компонуються з guile. | |
1e52da12 | 145 | |
3242f195 | 146 | %package static |
6ed4fa86 | 147 | Summary: Guile static libraries |
cd997da6 ER |
148 | Summary(pl.UTF-8): Biblioteka statyczna Guile |
149 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com guile | |
150 | Summary(ru.UTF-8): Статические библиотеки Guile | |
151 | Summary(uk.UTF-8): Статичні бібліотеки Guile | |
a56b727e | 152 | Group: Development/Libraries |
943ebcc6 | 153 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
24717ba3 | 154 | |
155 | %description static | |
6ed4fa86 | 156 | Guile static library. |
157 | ||
e50d8b8b | 158 | %description static -l pl.UTF-8 |
62f049eb | 159 | Biblioteka statyczna Guile. |
24717ba3 | 160 | |
e50d8b8b JR |
161 | %description static -l pt_BR.UTF-8 |
162 | Bibliotecas estáticas para desenvolvimento com guile | |
1e52da12 | 163 | |
e50d8b8b JR |
164 | %description static -l ru.UTF-8 |
165 | Статические библиотеки guile. | |
1e52da12 | 166 | |
e50d8b8b JR |
167 | %description static -l uk.UTF-8 |
168 | Статичні бібліотеки guile. | |
1e52da12 | 169 | |
083d7105 AG |
170 | %package -n emacs-guile-mode-pkg |
171 | Summary: emacs guile-mode | |
172 | Summary(pl.UTF-8): Tryb guile dla emacsa | |
173 | Group: Applications/Editors/Emacs | |
174 | Requires: emacs | |
175 | ||
176 | %description -n emacs-guile-mode-pkg | |
177 | Emacs guile-mode. | |
178 | ||
179 | %description -n emacs-guile-mode-pkg -l pl.UTF-8 | |
180 | Tryb edycji guile dla emacsa. | |
181 | ||
24717ba3 | 182 | %prep |
183 | %setup -q | |
3242f195 | 184 | %patch0 -p1 |
61931b2d | 185 | %patch1 -p1 |
d571a5bd | 186 | %ifarch %{ix86} |
51527323 JR |
187 | %patch2 -p1 |
188 | %endif | |
30a6ecd9 JB |
189 | |
190 | # popen test currently fails | |
2203b7b7 JB |
191 | %{__rm} test-suite/tests/popen.test |
192 | # net-db test needs working resolver | |
193 | %{__rm} test-suite/tests/net-db.test | |
6efebfac | 194 | |
24717ba3 | 195 | %build |
6ad3279f | 196 | %{__gettextize} |
a5198a98 | 197 | %{__libtoolize} |
ad1146e0 | 198 | %{__aclocal} -I m4 |
a5198a98 | 199 | %{__autoconf} |
200 | %{__automake} | |
083d7105 | 201 | %configure \ |
13826946 JR |
202 | %ifarch x32 |
203 | --enable-jit=no \ | |
204 | %endif | |
30a6ecd9 | 205 | --disable-silent-rules |
82061f6b | 206 | |
c29e7d20 | 207 | %{__make} |
ec16a992 JB |
208 | |
209 | %{?with_tests:./check-guile} | |
24717ba3 | 210 | |
211 | %install | |
212 | rm -rf $RPM_BUILD_ROOT | |
1833e73e | 213 | install -d $RPM_BUILD_ROOT{%{_datadir}/guile/site/%{mver},%{_libdir}/guile/%{mver}/site-ccache} |
dba6023b | 214 | |
51527323 | 215 | %{__make} install \ |
62f049eb | 216 | DESTDIR=$RPM_BUILD_ROOT \ |
217 | aclocaldir=%{_aclocaldir} | |
6ed4fa86 | 218 | |
1833e73e JB |
219 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
220 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/%{mver}/extensions/*.{la,a} | |
221 | ||
adfe705e | 222 | # not supported yet by gdb; placed here causes ldconfig noise |
1833e73e | 223 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libguile-%{mver}.so*-gdb.scm |
adfe705e | 224 | |
8d722aac ER |
225 | # use rm -f, as it depends on texlive version whether this is created or not |
226 | %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir | |
227 | ||
46d84e2f JB |
228 | %clean |
229 | rm -rf $RPM_BUILD_ROOT | |
82061f6b | 230 | |
8d722aac ER |
231 | %post -p /sbin/ldconfig |
232 | %postun -p /sbin/ldconfig | |
233 | ||
234 | %post libs -p /sbin/ldconfig | |
235 | %postun libs -p /sbin/ldconfig | |
24717ba3 | 236 | |
97c6ae4c | 237 | %post devel -p /sbin/postshell |
2d675e95 | 238 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3242f195 | 239 | |
97c6ae4c | 240 | %postun devel -p /sbin/postshell |
2d675e95 | 241 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3242f195 | 242 | |
24717ba3 | 243 | %files |
67c5c8e0 | 244 | %defattr(644,root,root,755) |
30a6ecd9 | 245 | %doc AUTHORS LICENSE NEWS README THANKS |
098d7026 | 246 | %attr(755,root,root) %{_bindir}/guild |
d1c4b0d3 | 247 | %attr(755,root,root) %{_bindir}/guile |
46d84e2f | 248 | %attr(755,root,root) %{_bindir}/guile-tools |
f4885c6e | 249 | %dir %{_libdir}/guile |
1833e73e JB |
250 | %dir %{_libdir}/guile/%{mver} |
251 | %{_libdir}/guile/%{mver}/ccache | |
252 | %dir %{_libdir}/guile/%{mver}/extensions | |
253 | %attr(755,root,root) %{_libdir}/guile/%{mver}/extensions/guile-readline.so* | |
254 | %{_libdir}/guile/%{mver}/site-ccache | |
6a63ad55 | 255 | %dir %{_datadir}/guile |
1833e73e JB |
256 | %dir %{_datadir}/guile/%{mver} |
257 | %{_datadir}/guile/%{mver}/guile-procedures.txt | |
258 | %{_datadir}/guile/%{mver}/*.scm | |
259 | %{_datadir}/guile/%{mver}/ice-9 | |
260 | %{_datadir}/guile/%{mver}/language | |
261 | %{_datadir}/guile/%{mver}/oop | |
262 | %{_datadir}/guile/%{mver}/rnrs | |
51527323 | 263 | %{_datadir}/guile/%{mver}/scheme |
1833e73e JB |
264 | %{_datadir}/guile/%{mver}/scripts |
265 | %{_datadir}/guile/%{mver}/srfi | |
266 | %{_datadir}/guile/%{mver}/sxml | |
267 | %{_datadir}/guile/%{mver}/system | |
268 | %{_datadir}/guile/%{mver}/texinfo | |
269 | %{_datadir}/guile/%{mver}/web | |
0130a87e | 270 | %dir %{_datadir}/guile/site |
1833e73e | 271 | %dir %{_datadir}/guile/site/%{mver} |
2c718c5a | 272 | %{_mandir}/man1/guile.1* |
24717ba3 | 273 | |
8d722aac ER |
274 | %files libs |
275 | %defattr(644,root,root,755) | |
1833e73e JB |
276 | %attr(755,root,root) %{_libdir}/libguile-%{mver}.so.*.*.* |
277 | %attr(755,root,root) %ghost %{_libdir}/libguile-%{mver}.so.1 | |
8d722aac | 278 | |
24717ba3 | 279 | %files devel |
6ed4fa86 | 280 | %defattr(644,root,root,755) |
46d84e2f | 281 | %doc ChangeLog HACKING |
d1c4b0d3 | 282 | %attr(755,root,root) %{_bindir}/guile-config |
82061f6b | 283 | %attr(755,root,root) %{_bindir}/guile-snarf |
1833e73e | 284 | %attr(755,root,root) %{_libdir}/libguile-%{mver}.so |
97c6ae4c | 285 | %{_infodir}/guile.info* |
97c6ae4c JB |
286 | %{_infodir}/r5rs.info* |
287 | %{_includedir}/guile | |
1833e73e | 288 | %{_pkgconfigdir}/guile-%{mver}.pc |
ac27a5be | 289 | %{_aclocaldir}/guile.m4 |
3242f195 | 290 | |
291 | %files static | |
24717ba3 | 292 | %defattr(644,root,root,755) |
1833e73e | 293 | %{_libdir}/libguile-%{mver}.a |
083d7105 AG |
294 | |
295 | %if %{with emacs} | |
296 | %files -n emacs-guile-mode-pkg | |
297 | %defattr(644,root,root,755) | |
298 | %{_emacs_lispdir}/*.el | |
299 | %endif |