Summary: Interface generator for Perl, Tcl, Guile and Python Summary(pl): Generator interfejsu do Perl'a, Tcl'a, Guile'a i Python'a Name: swig Version: 1.3a5 Release: 0.2 License: distributable Group: Development/Languages Group(de): Entwicklung/Sprachen Group(pl): Programowanie/Języki Source0: http://prdownloads.sourceforge.net/swig/%{name}%{version}.tar.gz Patch0: %{name}1.1p2-fixed-paths.patch Patch1: %{name}-python.patch Patch2: %{name}-configure.patch URL: http://www.swig.org BuildRequires: python >= 2.1 BuildRequires: ruby >= 1.6.3 BuildRequires: perl-devel >= 5.6.1 BuildRequires: tcl >= 8.3.3 Icon: swig.gif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description SWIG is a compiler that attempts to make it easy to integrate C, C++, or Objective-C code with scripting languages including Perl, Tcl, and Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations and it generates an interface between C and your favorite scripting language. However, this is only scratching the surface of what SWIG can do--some of its more advanced features include automatic documentation generation, module and library management, extensive customization options, and more. SWIG is entirely the product of users who have used the system and suggested new idea. There are far too many people to thank individually, but without this support, SWIG would be not be nearly as powerful or fun to use as it is now. Many thanks! %description -l pl SWIG jesk kompilatorem, który próbuje ulatwic integrowanie kodu napisanego w C, C++ lub Objective-C z językami skryptowymitakimi jak Perl, Tcl i Python. Mówiąc najprościej, jesli dostarczysz mu zestaw zdeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs pomiedzy C a Twoim ulubionym językiem skryptowym. To tylko drobna część tego co SWIG potrafi robić, bardziej zaawansowane zastosowania to automatyczne generowanie dokumentacji, zarzadzanie bibliotekami i modułami i wiele innych. SWIG jest w całości dziłem ludzi, którzy go używali i wprowadzali nowe pomysły. Zbyt wielu ich jest, aby dziękować każdemu z nich osobno, ale bez ich wsparcia, SWIG nie byłby anie tak poteżnym nażedziem, ani tak fajnym w użyciu jak jest teraz. Wiekie dzięki! %prep %setup -q -n SWIG%{version} find Examples/ -type l -exec rm -v {} \; perl -pi -e 's|^\s*BIN_DIR\s*=\s*\@bindir\@|BIN_DIR = $(prefix)/@bindir@/|' Makefile.in %patch1 -p1 %patch2 -p1 %build autoconf (cd Source/DOH && autoconf) (cd Tools && autoconf) %configure %{__make} OPT="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}} %{__make} install \ prefix=$RPM_BUILD_ROOT/%{_prefix} \ BIN_DIR=$RPM_BUILD_ROOT/%{_bindir} cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} gzip -9nf CHANGES NEW README ANNOUNCE TODO LICENSE %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Doc *.gz %{_libdir}/%{name}* %attr(755,root,root) %{_bindir}/swig %{_examplesdir}/%{name}-%{version}