1 Summary: Interface generator for Perl, Tcl, Guile and Python
2 Summary(pl): Generator interfejsów do Perla, Tcl-a, Guile'a i Pythona
3 Summary(pt_BR): Gerador de Interfaces e "Wrappers" Simplificado (SWIG)
8 Group: Development/Languages
9 Source0: http://prdownloads.sourceforge.net/swig/%{name}-%{version}.tar.gz
10 Patch0: %{name}-configure.patch
11 URL: http://www.swig.org/
13 BuildRequires: autoconf
14 BuildRequires: guile-devel
15 BuildRequires: libstdc++-devel
16 BuildRequires: perl-devel >= 5.6.1
17 BuildRequires: php-devel >= 4.1.0
18 BuildRequires: python >= 2.2
19 BuildRequires: ruby >= 1.6.3
20 BuildRequires: tcl >= 8.3.3
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 SWIG is a compiler that attempts to make it easy to integrate C, C++,
25 or Objective-C code with scripting languages including Perl, Tcl, and
26 Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
27 and it generates an interface between C and your favorite scripting
28 language. However, this is only scratching the surface of what SWIG
29 can do--some of its more advanced features include automatic
30 documentation generation, module and library management, extensive
31 customization options, and more.
33 SWIG is entirely the product of users who have used the system and
34 suggested new idea. There are far too many people to thank
35 individually, but without this support, SWIG would be not be nearly as
36 powerful or fun to use as it is now. Many thanks!
39 SWIG jesk kompilatorem, który próbuje u³atwiæ integrowanie kodu
40 napisanego w C, C++ lub Objective-C z jêzykami skryptowymi, takimi jak
41 Perl, Tcl i Python. Mówi±c najpro¶ciej, je¶li dostarczysz mu zestaw
42 zadeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
43 pomiêdzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
44 czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
45 to automatyczne generowanie dokumentacji, zarz±dzanie bibliotekami i
46 modu³ami i wiele innych.
48 SWIG jest w ca³o¶ci dzie³em ludzi, którzy go u¿ywali i wprowadzali
49 nowe pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich
50 osobno, ale bez ich wsparcia SWIG nie by³by ani tak potê¿nym
51 narzêdziem, ani tak fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
54 O SWIG gera interfaces para perl, python e tcl a partir de uma arquivo
55 com uma interface de descrição que consiste de uma combinação de C/C++
56 e diretivas especiais. Permite que linguagens tipo script usem C/C++
57 com um mínimo de esforço.
60 Summary: SWIG library: guile
61 Summary(pl): Biblioteka SWIG: guile
67 %description guile -l pl
68 Biblioteka SWIG: guile.
71 Summary: SWIG library: Perl
72 Summary(pl): Biblioteka SWIG: Perl
78 %description perl -l pl
79 Biblioteka SWIG: perl.
82 Summary: SWIG library: python
83 Summary(pl): Biblioteka SWIG: python
89 %description python -l pl
90 Biblioteka SWIG: python.
93 Summary: SWIG library: ruby
94 Summary(pl): Biblioteka SWIG: ruby
100 %description ruby -l pl
101 Biblioteka SWIG: ruby.
104 Summary: SWIG library: tcl
105 Summary(pl): Biblioteka SWIG: tcl
111 %description tcl -l pl
112 Biblioteka SWIG: tcl.
115 %setup -q -n SWIG-%{version}
120 for i in . Source/DOH Tools Examples/GIFPlot; do
127 %{__make} OPT="%{rpmcflags}"
131 rm -rf $RPM_BUILD_ROOT
132 install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
135 DESTDIR=$RPM_BUILD_ROOT
137 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
139 gzip -9nf CHANGES NEW README ANNOUNCE TODO LICENSE
142 rm -rf $RPM_BUILD_ROOT
144 %post -p /sbin/ldconfig
145 %postun -p /sbin/ldconfig
148 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_bindir}/swig
152 %{_examplesdir}/%{name}-%{version}
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/lib*guile.so
157 %attr(755,root,root) %{_libdir}/lib*guile.la
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/lib*pl.so
162 %attr(755,root,root) %{_libdir}/lib*pl.la
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_libdir}/lib*py.so
167 %attr(755,root,root) %{_libdir}/lib*py.la
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/lib*rb.so
172 %attr(755,root,root) %{_libdir}/lib*rb.la
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/lib*tcl*.so
177 %attr(755,root,root) %{_libdir}/lib*tcl*.la