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