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 URL: http://www.swig.org/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: guile-devel
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtool
22 BuildRequires: perl-devel >= 5.6.1
23 BuildRequires: php-devel >= 4.1.0
24 BuildRequires: php-cgi
25 BuildRequires: python >= 2.2
26 BuildRequires: ruby >= 1.6.3
27 BuildRequires: tcl-devel >= 8.3.3
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 SWIG is a compiler that attempts to make it easy to integrate C, C++,
33 or Objective-C code with scripting languages including Perl, Tcl, and
34 Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
35 and it generates an interface between C and your favorite scripting
36 language. However, this is only scratching the surface of what SWIG
37 can do--some of its more advanced features include automatic
38 documentation generation, module and library management, extensive
39 customization options, and more.
41 SWIG is entirely the product of users who have used the system and
42 suggested new idea. There are far too many people to thank
43 individually, but without this support, SWIG would be not be nearly as
44 powerful or fun to use as it is now. Many thanks!
47 SWIG jesk kompilatorem, który próbuje u³atwiæ integrowanie kodu
48 napisanego w C, C++ lub Objective-C z jêzykami skryptowymi, takimi jak
49 Perl, Tcl i Python. Mówi±c najpro¶ciej, je¶li dostarczysz mu zestaw
50 zadeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
51 pomiêdzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
52 czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
53 to automatyczne generowanie dokumentacji, zarz±dzanie bibliotekami i
54 modu³ami i wiele innych.
56 SWIG jest w ca³o¶ci dzie³em ludzi, którzy go u¿ywali i wprowadzali
57 nowe pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich
58 osobno, ale bez ich wsparcia SWIG nie by³by ani tak potê¿nym
59 narzêdziem, ani tak fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
62 O SWIG gera interfaces para perl, python e tcl a partir de uma arquivo
63 com uma interface de descrição que consiste de uma combinação de C/C++
64 e diretivas especiais. Permite que linguagens tipo script usem C/C++
65 com um mínimo de esforço.
68 Summary: SWIG library: guile
69 Summary(pl): Biblioteka SWIG: guile
75 %description guile -l pl
76 Biblioteka SWIG: guile.
79 Summary: SWIG library: Perl
80 Summary(pl): Biblioteka SWIG: Perl
86 %description perl -l pl
87 Biblioteka SWIG: perl.
90 Summary: SWIG library: php
91 Summary(pl): Biblioteka SWIG: php
97 %description php -l pl
101 Summary: SWIG library: python
102 Summary(pl): Biblioteka SWIG: python
106 SWIG library: python.
108 %description python -l pl
109 Biblioteka SWIG: python.
112 Summary: SWIG library: ruby
113 Summary(pl): Biblioteka SWIG: ruby
119 %description ruby -l pl
120 Biblioteka SWIG: ruby.
123 Summary: SWIG library: tcl
124 Summary(pl): Biblioteka SWIG: tcl
130 %description tcl -l pl
131 Biblioteka SWIG: tcl.
134 Summary: SWIG library: ocaml
135 Summary(pl): Biblioteka SWIG: ocaml
141 %description ocaml -l pl
142 Biblioteka SWIG: ocaml.
145 %setup -q -n SWIG-%{version}
161 %{__make} OPT="%{rpmcflags}"
164 rm -rf $RPM_BUILD_ROOT
165 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
168 DESTDIR=$RPM_BUILD_ROOT
170 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
173 rm -rf $RPM_BUILD_ROOT
175 %post -p /sbin/ldconfig
176 %postun -p /sbin/ldconfig
179 %defattr(644,root,root,755)
180 %doc Doc CHANGES NEW README ANNOUNCE TODO LICENSE
182 %attr(755,root,root) %{_bindir}/swig
183 %{_examplesdir}/%{name}-%{version}
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_libdir}/lib*guile.so
188 %{_libdir}/lib*guile.la
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/lib*pl.so
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_libdir}/lib*php4.so
198 %{_libdir}/lib*php4.la
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/lib*py.so
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_libdir}/lib*rb.so
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/lib*tcl*.so
213 %{_libdir}/lib*tcl*.la
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/lib*ocaml*.so*
218 %{_libdir}/lib*ocaml*.la