--- swig 2005-08-10 17:29:26 +0400 +++ swig.spec 2005-11-15 01:50:24 +0300 @@ -18,6 +18,7 @@ %define __python_version 2.4 BuildPreReq: python-devel = %__python_version +BuildPreReq: sed BuildRequires: XFree86-devel findlib gcc-c++ guile-devel jdkgcj libruby-devel ocaml perl-devel php-devel ruby tcl-devel #BuildRequires: glibc-devel-static libstdc++-devel ruby-stdlibs @@ -114,10 +115,13 @@ %build ./autogen.sh + +%__subst 's/PYLIBDIR="lib"/PYLIBDIR="%_lib"/' configure + %configure \ --with-pyinc=%_includedir/python%__python_version \ --with-pylib=%_libdir/python%__python_version \ - --with-tclconfig=/usr/lib + --with-tclconfig=%_libdir # --with-tcl --with-python --with-perl5 --with-java --with-guile --with-ruby --with-php4 %__subst -p 's,/usr/local/include/Py,%_includedir/python%__python_version,g' Runtime/Makefile