]> git.pld-linux.org Git - packages/guile1.git/blob - guile.spec
- pass --enable-error-on-warning=on (avoids -Werror)
[packages/guile1.git] / guile.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform ./check-guile
4 %bcond_without  emacs   # don't build emacs subpackage
5 #
6 %define         ver     1.8
7 Summary:        GNU Extension language
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
14 Name:           guile
15 Version:        1.8.5
16 Release:        4
17 Epoch:          5
18 License:        GPL v2+/LGPL v2.1+
19 Group:          Development/Languages
20 Source0:        http://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.gz
21 # Source0-md5:  a3f8216544509a74a4441f689a0410d2
22 Patch0:         %{name}-info.patch
23 Patch1:         %{name}-fix_awk_patch.patch
24 Patch2:         %{name}-SCM_SITE_DIR_path.patch
25 Patch3:         %{name}-unknown_arch.patch
26 Patch4:         %{name}-test-hacks.patch
27 Patch5:         %{name}-as-needed.patch
28 URL:            http://www.gnu.org/software/guile/guile.html
29 BuildRequires:  autoconf >= 2.53
30 BuildRequires:  automake >= 1.6
31 %{?with_emacs:BuildRequires:    emacs}
32 BuildRequires:  gettext-devel
33 BuildRequires:  gmp-devel >= 4.1
34 BuildRequires:  libltdl-devel
35 BuildRequires:  libtool >= 1:1.4.2-9
36 BuildRequires:  ncurses-devel >= 5.2
37 BuildRequires:  readline-devel >= 4.2
38 BuildRequires:  texinfo
39 Requires:       umb-scheme
40 Obsoletes:      libguile9
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %ifarch sparc sparc64
44 %undefine       with_tests
45 %endif
46
47 %description
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.
51
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
55 independiente de plataforma, que puede ser linkada como una biblioteca
56 construyendo programas extensibles.
57
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 бути скомпоноване з програмою у вигляді бібліотеки.
84
85 %package devel
86 Summary:        Guile's header files, etc
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
93 Group:          Development/Libraries
94 Requires:       %{name} = %{epoch}:%{version}-%{release}
95 Requires:       gmp-devel >= 4.1
96 Requires:       libltdl-devel
97 Requires:       m4
98 Obsoletes:      libguile9-devel
99
100 %description devel
101 What's needed to develop apps linked w/ guile
102
103 %description devel -l es.UTF-8
104 Este paquete contiene todo lo necesario para desarrollar aplicaciones
105 usando Guile.
106
107 %description -l ja.UTF-8
108 guile-devel パッケージはライブラリやヘッダファイル、その他...あなたが
109 GUILE 拡張性ライブラリをリンクしたプログラムを作成するのに必要な
110 ファイルを提供します。
111
112 %description devel -l pl.UTF-8
113 Pliki nagłówkowe i dokumentacja Guile.
114
115 %description devel -l pt_BR.UTF-8
116 Este pacote contém o que é necessário para desenvolver aplicações
117 usando a Guile.
118
119 %description devel -l ru.UTF-8
120 Все, что нужно для разработки приложений, скомпонованых с guile.
121
122 %description devel -l uk.UTF-8
123 Все, що потрібно для розробки програм, що компонуються з guile.
124
125 %package static
126 Summary:        Guile static libraries
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
131 Group:          Development/Libraries
132 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
133
134 %description static
135 Guile static library.
136
137 %description static -l pl.UTF-8
138 Biblioteka statyczna Guile.
139
140 %description static -l pt_BR.UTF-8
141 Bibliotecas estáticas para desenvolvimento com guile
142
143 %description static -l ru.UTF-8
144 Статические библиотеки guile.
145
146 %description static -l uk.UTF-8
147 Статичні бібліотеки guile.
148
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
161 %prep
162 %setup -q
163 %patch0 -p1
164 %patch1 -p1
165 %patch3 -p1
166 %patch4 -p1
167 %patch5 -p1
168 sed -i 's/AC_CONFIG_MACRO_DIR(\[m4\])/AC_CONFIG_MACRO_DIR(\[guile-config\])/' configure.in
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)
172 # patch2 -p1
173
174 %build
175 %{__gettextize}
176 %{__libtoolize}
177 %{__aclocal}
178 %{__autoconf}
179 %{__automake}
180 cd guile-readline
181 %{__libtoolize}
182 %{__aclocal} -I ../guile-config
183 %{__autoconf}
184 # DON'T USE --force HERE - it would break build
185 automake -a -c --foreign
186 cd ..
187 %configure \
188         --enable-error-on-warning=no
189
190 %{__make}
191
192 %{?with_tests:./check-guile}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT{%{_datadir}/guile/site,%{_libdir}/guile}
197
198 %{__make} install \
199         DESTDIR=$RPM_BUILD_ROOT \
200         aclocaldir=%{_aclocaldir}
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post   -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
207
208 %post   devel -p /sbin/postshell
209 -/usr/sbin/fix-info-dir -c %{_infodir}
210
211 %postun devel -p /sbin/postshell
212 -/usr/sbin/fix-info-dir -c %{_infodir}
213
214 %files
215 %defattr(644,root,root,755)
216 %doc AUTHORS NEWS README THANKS
217 %attr(755,root,root) %{_bindir}/guile
218 %attr(755,root,root) %{_bindir}/guile-tools
219 %attr(755,root,root) %{_libdir}/libguile.so.*.*.*
220 %attr(755,root,root) %ghost %{_libdir}/libguile.so.17
221 # shared libraries dlopened by interpreter (.so or .la needed)
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
224 %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-1-v-3.so
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
227 %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-4-v-3.so
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
230 %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-13-14-v-3.so
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
233 %attr(755,root,root) %{_libdir}/libguile-srfi-srfi-60-v-2.so
234 %attr(755,root,root) %{_libdir}/libguilereadline-v-17.so.*.*.*
235 %attr(755,root,root) %ghost %{_libdir}/libguilereadline-v-17.so.17
236 %attr(755,root,root) %{_libdir}/libguilereadline-v-17.so
237 %{_libdir}/guile
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
247 %dir %{_datadir}/guile/site
248
249 %files devel
250 %defattr(644,root,root,755)
251 %doc ChangeLog HACKING
252 %attr(755,root,root) %{_bindir}/guile-config
253 %attr(755,root,root) %{_bindir}/guile-snarf
254 %attr(755,root,root) %{_libdir}/libguile.so
255 %{_libdir}/libguile.la
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
268 %{_pkgconfigdir}/guile-1.8.pc
269 %{_aclocaldir}/guile.m4
270
271 %files static
272 %defattr(644,root,root,755)
273 %{_libdir}/libguile.a
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
279
280 %if %{with emacs}
281 %files -n emacs-guile-mode-pkg
282 %defattr(644,root,root,755)
283 %{_emacs_lispdir}/*.el
284 %endif
This page took 0.084789 seconds and 3 git commands to generate.