]>
Commit | Line | Data |
---|---|---|
ec16a992 JB |
1 | # |
2 | # Conditional build: | |
1833e73e JB |
3 | %bcond_without tests # running ./check-guile |
4 | %bcond_with emacs # emacs mode subpackage | |
8d722aac | 5 | |
1833e73e JB |
6 | %ifarch sparc sparc64 |
7 | %undefine with_tests | |
8 | %endif | |
9 | ||
51527323 | 10 | %define mver 3.0 |
6ed4fa86 | 11 | Summary: GNU Extension language |
cd997da6 ER |
12 | Summary(es.UTF-8): Lenguaje de extensión de la GNU |
13 | Summary(ja.UTF-8): アプリケーションの拡張のための GNU による Scheme の実装 | |
14 | Summary(pl.UTF-8): Język GNU Extension language | |
15 | Summary(pt_BR.UTF-8): Linguagem de extensão da GNU | |
16 | Summary(ru.UTF-8): Язык расширений GNU | |
17 | Summary(uk.UTF-8): Мова розширень GNU | |
6ed4fa86 | 18 | Name: guile |
51527323 JR |
19 | Version: 3.0.8 |
20 | Release: 1 | |
1e52da12 | 21 | Epoch: 5 |
30a6ecd9 | 22 | License: LGPL v3+ |
6ed4fa86 | 23 | Group: Development/Languages |
7d1d31d2 | 24 | Source0: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz |
51527323 | 25 | # Source0-md5: 260ebdd35110a1ce79852ebf0270d309 |
3c33fb4e | 26 | Patch0: %{name}-info.patch |
1c3a8efd | 27 | Patch1: %{name}-fix_awk_patch.patch |
51527323 JR |
28 | Patch2: 0006-numbers.test-disable-unresolved-mixed-type-division-.patch |
29 | Patch3: 0007-Fix-non-revealed-port-is-closed-ports.test.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 |
73082f46 | 50 | Obsoletes: libguile9 |
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 | |
73082f46 | 119 | Obsoletes: libguile9-devel |
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 |
51527323 JR |
186 | %ifarch %{ix86} |
187 | %patch2 -p1 | |
188 | %endif | |
189 | %patch3 -p1 | |
30a6ecd9 JB |
190 | |
191 | # popen test currently fails | |
2203b7b7 JB |
192 | %{__rm} test-suite/tests/popen.test |
193 | # net-db test needs working resolver | |
194 | %{__rm} test-suite/tests/net-db.test | |
6efebfac | 195 | |
24717ba3 | 196 | %build |
6ad3279f | 197 | %{__gettextize} |
a5198a98 | 198 | %{__libtoolize} |
ad1146e0 | 199 | %{__aclocal} -I m4 |
a5198a98 | 200 | %{__autoconf} |
201 | %{__automake} | |
083d7105 | 202 | %configure \ |
30a6ecd9 | 203 | --disable-silent-rules |
82061f6b | 204 | |
c29e7d20 | 205 | %{__make} |
ec16a992 JB |
206 | |
207 | %{?with_tests:./check-guile} | |
24717ba3 | 208 | |
209 | %install | |
210 | rm -rf $RPM_BUILD_ROOT | |
1833e73e | 211 | install -d $RPM_BUILD_ROOT{%{_datadir}/guile/site/%{mver},%{_libdir}/guile/%{mver}/site-ccache} |
dba6023b | 212 | |
51527323 | 213 | %{__make} install \ |
62f049eb | 214 | DESTDIR=$RPM_BUILD_ROOT \ |
215 | aclocaldir=%{_aclocaldir} | |
6ed4fa86 | 216 | |
1833e73e JB |
217 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
218 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/%{mver}/extensions/*.{la,a} | |
219 | ||
adfe705e | 220 | # not supported yet by gdb; placed here causes ldconfig noise |
1833e73e | 221 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libguile-%{mver}.so*-gdb.scm |
adfe705e | 222 | |
8d722aac ER |
223 | # use rm -f, as it depends on texlive version whether this is created or not |
224 | %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir | |
225 | ||
46d84e2f JB |
226 | %clean |
227 | rm -rf $RPM_BUILD_ROOT | |
82061f6b | 228 | |
8d722aac ER |
229 | %post -p /sbin/ldconfig |
230 | %postun -p /sbin/ldconfig | |
231 | ||
232 | %post libs -p /sbin/ldconfig | |
233 | %postun libs -p /sbin/ldconfig | |
24717ba3 | 234 | |
97c6ae4c | 235 | %post devel -p /sbin/postshell |
2d675e95 | 236 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3242f195 | 237 | |
97c6ae4c | 238 | %postun devel -p /sbin/postshell |
2d675e95 | 239 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3242f195 | 240 | |
24717ba3 | 241 | %files |
67c5c8e0 | 242 | %defattr(644,root,root,755) |
30a6ecd9 | 243 | %doc AUTHORS LICENSE NEWS README THANKS |
098d7026 | 244 | %attr(755,root,root) %{_bindir}/guild |
d1c4b0d3 | 245 | %attr(755,root,root) %{_bindir}/guile |
46d84e2f | 246 | %attr(755,root,root) %{_bindir}/guile-tools |
f4885c6e | 247 | %dir %{_libdir}/guile |
1833e73e JB |
248 | %dir %{_libdir}/guile/%{mver} |
249 | %{_libdir}/guile/%{mver}/ccache | |
250 | %dir %{_libdir}/guile/%{mver}/extensions | |
251 | %attr(755,root,root) %{_libdir}/guile/%{mver}/extensions/guile-readline.so* | |
252 | %{_libdir}/guile/%{mver}/site-ccache | |
6a63ad55 | 253 | %dir %{_datadir}/guile |
1833e73e JB |
254 | %dir %{_datadir}/guile/%{mver} |
255 | %{_datadir}/guile/%{mver}/guile-procedures.txt | |
256 | %{_datadir}/guile/%{mver}/*.scm | |
257 | %{_datadir}/guile/%{mver}/ice-9 | |
258 | %{_datadir}/guile/%{mver}/language | |
259 | %{_datadir}/guile/%{mver}/oop | |
260 | %{_datadir}/guile/%{mver}/rnrs | |
51527323 | 261 | %{_datadir}/guile/%{mver}/scheme |
1833e73e JB |
262 | %{_datadir}/guile/%{mver}/scripts |
263 | %{_datadir}/guile/%{mver}/srfi | |
264 | %{_datadir}/guile/%{mver}/sxml | |
265 | %{_datadir}/guile/%{mver}/system | |
266 | %{_datadir}/guile/%{mver}/texinfo | |
267 | %{_datadir}/guile/%{mver}/web | |
0130a87e | 268 | %dir %{_datadir}/guile/site |
1833e73e | 269 | %dir %{_datadir}/guile/site/%{mver} |
2c718c5a | 270 | %{_mandir}/man1/guile.1* |
24717ba3 | 271 | |
8d722aac ER |
272 | %files libs |
273 | %defattr(644,root,root,755) | |
1833e73e JB |
274 | %attr(755,root,root) %{_libdir}/libguile-%{mver}.so.*.*.* |
275 | %attr(755,root,root) %ghost %{_libdir}/libguile-%{mver}.so.1 | |
8d722aac | 276 | |
24717ba3 | 277 | %files devel |
6ed4fa86 | 278 | %defattr(644,root,root,755) |
46d84e2f | 279 | %doc ChangeLog HACKING |
d1c4b0d3 | 280 | %attr(755,root,root) %{_bindir}/guile-config |
82061f6b | 281 | %attr(755,root,root) %{_bindir}/guile-snarf |
1833e73e | 282 | %attr(755,root,root) %{_libdir}/libguile-%{mver}.so |
97c6ae4c | 283 | %{_infodir}/guile.info* |
97c6ae4c JB |
284 | %{_infodir}/r5rs.info* |
285 | %{_includedir}/guile | |
1833e73e | 286 | %{_pkgconfigdir}/guile-%{mver}.pc |
ac27a5be | 287 | %{_aclocaldir}/guile.m4 |
3242f195 | 288 | |
289 | %files static | |
24717ba3 | 290 | %defattr(644,root,root,755) |
1833e73e | 291 | %{_libdir}/libguile-%{mver}.a |
083d7105 AG |
292 | |
293 | %if %{with emacs} | |
294 | %files -n emacs-guile-mode-pkg | |
295 | %defattr(644,root,root,755) | |
296 | %{_emacs_lispdir}/*.el | |
297 | %endif |