-%bcond_with php
-
Summary: Interface generator for Perl, Tcl, Guile and Python
Summary(pl): Generator interfejsów do Perla, Tcl-a, Guile'a i Pythona
Summary(pt_BR): Gerador de Interfaces e "Wrappers" Simplificado (SWIG)
Name: swig
Version: 1.3.19
-Release: 3
+Release: 4
License: distributable
Group: Development/Languages
Source0: http://dl.sourceforge.net/swig/%{name}-%{version}.tar.gz
# Source0-md5: a733455544426b31868dd87fc162e750
Patch0: %{name}-format.patch
Patch1: %{name}-php.patch
+Patch2: %{name}-php-tsrm.patch
URL: http://www.swig.org/
Icon: swig.gif
BuildRequires: autoconf
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: perl-devel >= 5.6.1
-%if %{with php}
BuildRequires: php-devel >= 4.1.0
BuildRequires: php-cgi
-%endif
BuildRequires: python >= 2.2
BuildRequires: ruby >= 1.6.3
BuildRequires: tcl-devel >= 8.3.3
%description perl -l pl
Biblioteka SWIG: perl.
-%if %{with php}
%package php
Summary: SWIG library: php
Summary(pl): Biblioteka SWIG: php
%description php -l pl
Biblioteka SWIG: php.
-%endif
%package python
Summary: SWIG library: python
%setup -q -n SWIG-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
oldpwd=$PWD
%attr(755,root,root) %{_libdir}/lib*pl.so
%{_libdir}/lib*pl.la
-%if %{with php}
%files php
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*php4.so
%{_libdir}/lib*php4.la
-%endif
%files python
%defattr(644,root,root,755)