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 Patch4: %{name}-php-vdecl.patch
17 URL: http://www.swig.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: guile-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: libtool
24 BuildRequires: perl-devel >= 5.6.1
25 BuildRequires: php-devel >= 4.1.0
26 BuildRequires: php-cgi
27 BuildRequires: python-devel >= 2.2
28 BuildRequires: ruby >= 1.6.3
29 BuildRequires: tcl-devel >= 8.3.3
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 SWIG is a compiler that attempts to make it easy to integrate C, C++,
35 or Objective-C code with scripting languages including Perl, Tcl, and
36 Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
37 and it generates an interface between C and your favorite scripting
38 language. However, this is only scratching the surface of what SWIG
39 can do--some of its more advanced features include automatic
40 documentation generation, module and library management, extensive
41 customization options, and more.
43 SWIG is entirely the product of users who have used the system and
44 suggested new idea. There are far too many people to thank
45 individually, but without this support, SWIG would be not be nearly as
46 powerful or fun to use as it is now. Many thanks!
49 SWIG jesk kompilatorem, który próbuje u³atwiæ integrowanie kodu
50 napisanego w C, C++ lub Objective-C z jêzykami skryptowymi, takimi jak
51 Perl, Tcl i Python. Mówi±c najpro¶ciej, je¶li dostarczysz mu zestaw
52 zadeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
53 pomiêdzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
54 czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
55 to automatyczne generowanie dokumentacji, zarz±dzanie bibliotekami i
56 modu³ami i wiele innych.
58 SWIG jest w ca³o¶ci dzie³em ludzi, którzy go u¿ywali i wprowadzali
59 nowe pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich
60 osobno, ale bez ich wsparcia SWIG nie by³by ani tak potê¿nym
61 narzêdziem, ani tak fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
64 O SWIG gera interfaces para perl, python e tcl a partir de uma arquivo
65 com uma interface de descrição que consiste de uma combinação de C/C++
66 e diretivas especiais. Permite que linguagens tipo script usem C/C++
67 com um mínimo de esforço.
70 Summary: SWIG library: guile
71 Summary(pl): Biblioteka SWIG: guile
77 %description guile -l pl
78 Biblioteka SWIG: guile.
81 Summary: SWIG library: Perl
82 Summary(pl): Biblioteka SWIG: Perl
88 %description perl -l pl
89 Biblioteka SWIG: perl.
92 Summary: SWIG library: php
93 Summary(pl): Biblioteka SWIG: php
99 %description php -l pl
100 Biblioteka SWIG: php.
103 Summary: SWIG library: python
104 Summary(pl): Biblioteka SWIG: python
108 SWIG library: python.
110 %description python -l pl
111 Biblioteka SWIG: python.
114 Summary: SWIG library: ruby
115 Summary(pl): Biblioteka SWIG: ruby
121 %description ruby -l pl
122 Biblioteka SWIG: ruby.
125 Summary: SWIG library: tcl
126 Summary(pl): Biblioteka SWIG: tcl
132 %description tcl -l pl
133 Biblioteka SWIG: tcl.
136 Summary: SWIG library: ocaml
137 Summary(pl): Biblioteka SWIG: ocaml
143 %description ocaml -l pl
144 Biblioteka SWIG: ocaml.
147 %setup -q -n SWIG-%{version}
165 %{__make} OPT="%{rpmcflags}"
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
172 DESTDIR=$RPM_BUILD_ROOT
174 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
177 rm -rf $RPM_BUILD_ROOT
179 %post -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
183 %defattr(644,root,root,755)
184 %doc Doc CHANGES NEW README ANNOUNCE TODO LICENSE
186 %attr(755,root,root) %{_bindir}/swig
187 %{_examplesdir}/%{name}-%{version}
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/lib*guile.so
192 %{_libdir}/lib*guile.la
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/lib*pl.so
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_libdir}/lib*php4.so
202 %{_libdir}/lib*php4.la
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_libdir}/lib*py.so
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_libdir}/lib*rb.so
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/lib*tcl*.so
217 %{_libdir}/lib*tcl*.la
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/lib*ocaml*.so*
222 %{_libdir}/lib*ocaml*.la