2 Summary: Interface generator for Perl, Tcl, Guile and Python
3 Summary(pl): Generator interfejsów do Perla, Tcl-a, Guile'a i Pythona
4 Summary(pt_BR): Gerador de Interfaces e "Wrappers" Simplificado (SWIG)
9 Group: Development/Languages
10 Source0: http://dl.sourceforge.net/swig/%{name}-%{version}.tar.gz
11 # Source0-md5: a733455544426b31868dd87fc162e750
12 Patch0: %{name}-format.patch
13 Patch1: %{name}-php.patch
14 Patch2: %{name}-php-tsrm.patch
15 Patch3: %{name}-php-freearg.patch
16 URL: http://www.swig.org/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: guile-devel
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool
23 BuildRequires: perl-devel >= 5.6.1
24 BuildRequires: php-devel >= 4.1.0
25 BuildRequires: php-cgi
26 BuildRequires: python >= 2.2
27 BuildRequires: ruby >= 1.6.3
28 BuildRequires: tcl-devel >= 8.3.3
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 SWIG is a compiler that attempts to make it easy to integrate C, C++,
34 or Objective-C code with scripting languages including Perl, Tcl, and
35 Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
36 and it generates an interface between C and your favorite scripting
37 language. However, this is only scratching the surface of what SWIG
38 can do--some of its more advanced features include automatic
39 documentation generation, module and library management, extensive
40 customization options, and more.
42 SWIG is entirely the product of users who have used the system and
43 suggested new idea. There are far too many people to thank
44 individually, but without this support, SWIG would be not be nearly as
45 powerful or fun to use as it is now. Many thanks!
48 SWIG jesk kompilatorem, który próbuje u³atwiæ integrowanie kodu
49 napisanego w C, C++ lub Objective-C z jêzykami skryptowymi, takimi jak
50 Perl, Tcl i Python. Mówi±c najpro¶ciej, je¶li dostarczysz mu zestaw
51 zadeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
52 pomiêdzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
53 czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
54 to automatyczne generowanie dokumentacji, zarz±dzanie bibliotekami i
55 modu³ami i wiele innych.
57 SWIG jest w ca³o¶ci dzie³em ludzi, którzy go u¿ywali i wprowadzali
58 nowe pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich
59 osobno, ale bez ich wsparcia SWIG nie by³by ani tak potê¿nym
60 narzêdziem, ani tak fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
63 O SWIG gera interfaces para perl, python e tcl a partir de uma arquivo
64 com uma interface de descrição que consiste de uma combinação de C/C++
65 e diretivas especiais. Permite que linguagens tipo script usem C/C++
66 com um mínimo de esforço.
69 Summary: SWIG library: guile
70 Summary(pl): Biblioteka SWIG: guile
76 %description guile -l pl
77 Biblioteka SWIG: guile.
80 Summary: SWIG library: Perl
81 Summary(pl): Biblioteka SWIG: Perl
87 %description perl -l pl
88 Biblioteka SWIG: perl.
91 Summary: SWIG library: php
92 Summary(pl): Biblioteka SWIG: php
98 %description php -l pl
102 Summary: SWIG library: python
103 Summary(pl): Biblioteka SWIG: python
107 SWIG library: python.
109 %description python -l pl
110 Biblioteka SWIG: python.
113 Summary: SWIG library: ruby
114 Summary(pl): Biblioteka SWIG: ruby
120 %description ruby -l pl
121 Biblioteka SWIG: ruby.
124 Summary: SWIG library: tcl
125 Summary(pl): Biblioteka SWIG: tcl
131 %description tcl -l pl
132 Biblioteka SWIG: tcl.
135 Summary: SWIG library: ocaml
136 Summary(pl): Biblioteka SWIG: ocaml
142 %description ocaml -l pl
143 Biblioteka SWIG: ocaml.
146 %setup -q -n SWIG-%{version}
163 %{__make} OPT="%{rpmcflags}"
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
170 DESTDIR=$RPM_BUILD_ROOT
172 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
175 rm -rf $RPM_BUILD_ROOT
177 %post -p /sbin/ldconfig
178 %postun -p /sbin/ldconfig
181 %defattr(644,root,root,755)
182 %doc Doc CHANGES NEW README ANNOUNCE TODO LICENSE
184 %attr(755,root,root) %{_bindir}/swig
185 %{_examplesdir}/%{name}-%{version}
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_libdir}/lib*guile.so
190 %{_libdir}/lib*guile.la
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/lib*pl.so
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/lib*php4.so
200 %{_libdir}/lib*php4.la
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/lib*py.so
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/lib*rb.so
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_libdir}/lib*tcl*.so
215 %{_libdir}/lib*tcl*.la
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/lib*ocaml*.so*
220 %{_libdir}/lib*ocaml*.la