1 Summary: Interface generator for Perl, Tcl, Guile and Python
2 Summary(pl): Generator interfejsu do Perl'a, Tcl'a, Guile'a i Python'a
7 Group: Development/Languages
8 Source0: http://prdownloads.sourceforge.net/swig/%{name}-%{version}.tar.gz
9 Patch0: %{name}-configure.patch
10 URL: http://www.swig.org/
11 BuildRequires: autoconf
12 BuildRequires: guile-devel
13 BuildRequires: libstdc++-devel
14 BuildRequires: perl-devel >= 5.6.1
15 BuildRequires: php-devel >= 4.1.0
16 BuildRequires: python >= 2.2
17 BuildRequires: ruby >= 1.6.3
18 BuildRequires: tcl >= 8.3.3
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 SWIG is a compiler that attempts to make it easy to integrate C, C++,
24 or Objective-C code with scripting languages including Perl, Tcl, and
25 Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
26 and it generates an interface between C and your favorite scripting
27 language. However, this is only scratching the surface of what SWIG
28 can do--some of its more advanced features include automatic
29 documentation generation, module and library management, extensive
30 customization options, and more.
32 SWIG is entirely the product of users who have used the system and
33 suggested new idea. There are far too many people to thank
34 individually, but without this support, SWIG would be not be nearly as
35 powerful or fun to use as it is now. Many thanks!
38 SWIG jesk kompilatorem, który próbuje ulatwic integrowanie kodu
39 napisanego w C, C++ lub Objective-C z jêzykami skryptowymitakimi jak
40 Perl, Tcl i Python. Mówi±c najpro¶ciej, jesli dostarczysz mu zestaw
41 zdeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
42 pomiedzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
43 czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
44 to automatyczne generowanie dokumentacji, zarzadzanie bibliotekami i
45 modu³ami i wiele innych.
47 SWIG jest w ca³o¶ci dzi³em ludzi, którzy go u¿ywali i wprowadzali nowe
48 pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich osobno, ale
49 bez ich wsparcia, SWIG nie by³by anie tak pote¿nym na¿edziem, ani tak
50 fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
53 Summary: SWIG library: guile
54 Summary(pl): Biblioteka SWIG: guile
60 %description guile -l pl
61 Biblioteka SWIG: guile
64 Summary: SWIG library: Perl
65 Summary(pl): Biblioteka SWIG: Perl
71 %description perl -l pl
75 Summary: SWIG library: python
76 Summary(pl): Biblioteka SWIG: python
82 %description python -l pl
83 Biblioteka SWIG: python
86 Summary: SWIG library: ruby
87 Summary(pl): Biblioteka SWIG: ruby
93 %description ruby -l pl
97 Summary: SWIG library: tcl
98 Summary(pl): Biblioteka SWIG: tcl
104 %description tcl -l pl
108 %setup -q -n SWIG-%{version}
113 for i in . Source/DOH Tools Examples/GIFPlot; do
120 %{__make} OPT="%{rpmcflags}"
124 rm -rf $RPM_BUILD_ROOT
125 install -d $RPM_BUILD_ROOT/{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
128 DESTDIR=$RPM_BUILD_ROOT
130 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
132 gzip -9nf CHANGES NEW README ANNOUNCE TODO LICENSE
134 %post -p /sbin/ldconfig
135 %postun -p /sbin/ldconfig
138 rm -rf $RPM_BUILD_ROOT
141 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/swig
145 %{_examplesdir}/%{name}-%{version}
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/lib*guile.so
150 %attr(755,root,root) %{_libdir}/lib*guile.la
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/lib*pl.so
155 %attr(755,root,root) %{_libdir}/lib*pl.la
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_libdir}/lib*py.so
160 %attr(755,root,root) %{_libdir}/lib*py.la
163 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_libdir}/lib*rb.so
165 %attr(755,root,root) %{_libdir}/lib*rb.la
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_libdir}/lib*tcl*.so
170 %attr(755,root,root) %{_libdir}/lib*tcl*.la