Lines 1-6
Link Here
|
1 |
Name: swig |
1 |
Name: swig |
2 |
Version: 1.3.24 |
2 |
Version: 1.3.24 |
3 |
Release: alt2 |
3 |
Release: alt2.1 |
4 |
|
4 |
|
5 |
Summary: Simplified Wrapper and Interface Generator (SWIG) |
5 |
Summary: Simplified Wrapper and Interface Generator (SWIG) |
6 |
License: Open Source |
6 |
License: Open Source |
Lines 14-23
Link Here
|
14 |
Patch3: %name-1.3.22-no_ansi.patch |
14 |
Patch3: %name-1.3.22-no_ansi.patch |
15 |
Patch4: %name-1.3.24-deb.patch |
15 |
Patch4: %name-1.3.24-deb.patch |
16 |
|
16 |
|
|
|
17 |
%ifndef __python_version |
17 |
%define __python_version 2.4 |
18 |
%define __python_version 2.4 |
|
|
19 |
%endif |
18 |
|
20 |
|
|
|
21 |
%def_with python |
22 |
%if_with python |
19 |
BuildPreReq: python-devel = %__python_version |
23 |
BuildPreReq: python-devel = %__python_version |
20 |
BuildRequires: XFree86-devel findlib gcc-c++ guile-devel jdkgcj libruby-devel ocaml perl-devel php-devel ruby tcl-devel |
24 |
%define python_conf --with-python=%_bindir/python --with-pyinc=%_includedir/python%__python_version --with-pylib=%_libdir/python%__python_version |
|
|
25 |
%else |
26 |
%define python_conf --without-python |
27 |
%endif |
28 |
|
29 |
%def_with guile |
30 |
%if_with guile |
31 |
BuildPreReq: guile-devel |
32 |
%define guile_conf --with-guile=%_bindir/guile --with-guile-config=%_bindir/guile-config |
33 |
%else |
34 |
%define guile_conf --without-guile |
35 |
%endif |
36 |
|
37 |
%def_with java |
38 |
%define java_bindir %_libexecdir/jdkgcj/bin |
39 |
%if_with java |
40 |
BuildPreReq: jdkgcj |
41 |
%define java_conf --with-java=%java_bindir/java --with-javac=%java_bindir/javac |
42 |
%else |
43 |
%define java_conf --without-java |
44 |
%endif |
45 |
|
46 |
%def_with ruby |
47 |
%if_with ruby |
48 |
BuildPreReq: ruby libruby-devel |
49 |
%define ruby_conf --with-ruby=%_bindir/ruby |
50 |
%else |
51 |
%define ruby_conf --without-ruby |
52 |
%endif |
53 |
|
54 |
%def_with perl5 |
55 |
%if_with perl5 |
56 |
BuildPreReq: perl-devel |
57 |
%define perl5_conf --with-perl5=%_bindir/perl |
58 |
%else |
59 |
%define perl5_conf --without-perl5 |
60 |
%endif |
61 |
|
62 |
%def_with php4 |
63 |
%if_with php4 |
64 |
BuildPreReq: php-devel |
65 |
%define php4_conf --with-php4=%_bindir/php |
66 |
%else |
67 |
%define php4_conf --without-php4 |
68 |
%endif |
69 |
|
70 |
%def_with tcl |
71 |
%if_with tcl |
72 |
BuildPreReq: tcl-devel |
73 |
%define tcl_conf --with-tcl=%_bindir/tclsh --with-tclconfig=/usr/lib |
74 |
%else |
75 |
%define tcl_conf --without-tcl |
76 |
%endif |
77 |
|
78 |
%def_with ocaml |
79 |
%if_with ocaml |
80 |
BuildPreReq: ocaml |
81 |
%define ocaml_conf --with-ocaml=%_bindir/ocaml |
82 |
%else |
83 |
%define ocaml_conf --without-ocaml |
84 |
%endif |
85 |
|
86 |
%def_with x |
87 |
%if_with x |
88 |
BuildPreReq: XFree86-devel |
89 |
%endif |
90 |
|
91 |
BuildPreReq: findlib gcc-c++ |
21 |
#BuildRequires: glibc-devel-static libstdc++-devel ruby-stdlibs |
92 |
#BuildRequires: glibc-devel-static libstdc++-devel ruby-stdlibs |
22 |
|
93 |
|
23 |
Provides: %name-devel = %version |
94 |
Provides: %name-devel = %version |
Lines 115-125
Link Here
|
115 |
|
186 |
|
116 |
%build |
187 |
%build |
117 |
./autogen.sh |
188 |
./autogen.sh |
118 |
%configure \ |
189 |
%configure %tcl_conf %python_conf %perl5_conf %java_conf %guile_conf %ruby_conf %php4_conf %{subst_with x} |
119 |
--with-pyinc=%_includedir/python%__python_version \ |
|
|
120 |
--with-pylib=%_libdir/python%__python_version \ |
121 |
--with-tclconfig=/usr/lib |
122 |
# --with-tcl --with-python --with-perl5 --with-java --with-guile --with-ruby --with-php4 |
123 |
|
190 |
|
124 |
%__subst -p 's,/usr/local/include/Py,%_includedir/python%__python_version,g' Runtime/Makefile |
191 |
%__subst -p 's,/usr/local/include/Py,%_includedir/python%__python_version,g' Runtime/Makefile |
125 |
# SMP incompatible |
192 |
# SMP incompatible |
Lines 181-211
Link Here
|
181 |
%dir %docdir |
248 |
%dir %docdir |
182 |
%docdir/[A-Z][a-z]* |
249 |
%docdir/[A-Z][a-z]* |
183 |
|
250 |
|
|
|
251 |
%if_with guile |
184 |
%files runtime-guile |
252 |
%files runtime-guile |
185 |
%_libdir/libswigguile*.so* |
253 |
%_libdir/libswigguile*.so* |
186 |
%doc CHANGES.current LICENSE |
254 |
%doc CHANGES.current LICENSE |
|
|
255 |
%endif |
187 |
|
256 |
|
|
|
257 |
%if_with php4 |
188 |
%files runtime-php |
258 |
%files runtime-php |
189 |
%_libdir/libswigphp*.so* |
259 |
%_libdir/libswigphp*.so* |
190 |
%doc CHANGES.current LICENSE |
260 |
%doc CHANGES.current LICENSE |
|
|
261 |
%endif |
191 |
|
262 |
|
|
|
263 |
%if_with perl5 |
192 |
%files runtime-perl |
264 |
%files runtime-perl |
193 |
%_libdir/libswigpl*.so* |
265 |
%_libdir/libswigpl*.so* |
194 |
%doc CHANGES.current LICENSE |
266 |
%doc CHANGES.current LICENSE |
|
|
267 |
%endif |
195 |
|
268 |
|
|
|
269 |
%if_with python |
196 |
%files runtime-python |
270 |
%files runtime-python |
197 |
%_libdir/libswigpy*.so* |
271 |
%_libdir/libswigpy*.so* |
198 |
%doc CHANGES.current LICENSE |
272 |
%doc CHANGES.current LICENSE |
|
|
273 |
%endif |
199 |
|
274 |
|
|
|
275 |
%if_with ruby |
200 |
%files runtime-ruby |
276 |
%files runtime-ruby |
201 |
%_libdir/libswigrb*.so* |
277 |
%_libdir/libswigrb*.so* |
202 |
%doc CHANGES.current LICENSE |
278 |
%doc CHANGES.current LICENSE |
|
|
279 |
%endif |
203 |
|
280 |
|
|
|
281 |
%if_with tcl |
204 |
%files runtime-tcl |
282 |
%files runtime-tcl |
205 |
%_libdir/libswigtcl*.so* |
283 |
%_libdir/libswigtcl*.so* |
206 |
%doc CHANGES.current LICENSE |
284 |
%doc CHANGES.current LICENSE |
|
|
285 |
%endif |
207 |
|
286 |
|
208 |
%changelog |
287 |
%changelog |
|
|
288 |
* Fri Jul 8 2005 Ilya Evseev <evseev@altlinux.ru> 1.3.24-alt2.1 |
289 |
- provide modular specfile for conditional building without unneeded languages |
290 |
- conditional support of ALM24 via rpmbuild --define "__python_version 2.3.3" |
291 |
|
209 |
* Wed Mar 30 2005 Gleb Stiblo <ulfr@altlinux.ru> 1.3.24-alt2 |
292 |
* Wed Mar 30 2005 Gleb Stiblo <ulfr@altlinux.ru> 1.3.24-alt2 |
210 |
- gcc3.3 depends fixed |
293 |
- gcc3.3 depends fixed |
211 |
|
294 |
|