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