From c7bfc58882b643bc35c5a480655878e76ccdf265 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Tue, 23 Nov 2004 11:36:24 +0000 Subject: [PATCH] - update - new pylib patch - remove destdir patch, swig.m4 is no longer included - remove ldconfig patch, swig now uses *-config to find out linker options --- .cvsignore | 2 +- sources | 2 +- swig-1.3.23-pylib.patch | 29 +++++++++++++++++++++++++++++ swig.spec | 19 ++++++++++--------- 4 files changed, 41 insertions(+), 11 deletions(-) create mode 100644 swig-1.3.23-pylib.patch diff --git a/.cvsignore b/.cvsignore index 0571c95..d862e97 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -swig-1.3.21.tar.gz +swig-1.3.23.tar.gz diff --git a/sources b/sources index 267c836..32746d2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -88ff5b99be3eafebb8a6e20f4f986c04 swig-1.3.21.tar.gz +3f12460b7d0cbb96ea7bf66f86fcea5b swig-1.3.23.tar.gz diff --git a/swig-1.3.23-pylib.patch b/swig-1.3.23-pylib.patch new file mode 100644 index 0000000..85fa1e3 --- /dev/null +++ b/swig-1.3.23-pylib.patch @@ -0,0 +1,29 @@ +--- SWIG-1.3.23/configure.in.pylib 2004-11-02 00:45:57.000000000 +0100 ++++ SWIG-1.3.23/configure.in 2004-11-23 12:20:12.552926982 +0100 +@@ -574,9 +574,11 @@ + + # Set the include directory + ++ PYLIB=`$PYTHON -c "import sys; print sys.path[[1]]"` ++ + AC_MSG_CHECKING(for Python header files) + if test -r $PYPREFIX/include/$PYVERSION/Python.h; then +- PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/$PYLIBDIR/$PYVERSION/config" ++ PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYLIB/config" + fi + if test -z "$PYINCLUDE"; then + if test -r $PYPREFIX/include/Py/Python.h; then +@@ -587,13 +589,6 @@ + + # Set the library directory blindly. This probably won't work with older versions + AC_MSG_CHECKING(for Python library) +- dirs="$PYVERSION/config $PYVERSION/$PYLIBDIR python/$PYLIBDIR" +- for i in $dirs; do +- if test -d $PYEPREFIX/$PYLIBDIR/$i; then +- PYLIB="$PYEPREFIX/$PYLIBDIR/$i" +- break +- fi +- done + if test -z "$PYLIB"; then + AC_MSG_RESULT(Not found) + else diff --git a/swig.spec b/swig.spec index 070a5a9..fd8ec11 100644 --- a/swig.spec +++ b/swig.spec @@ -3,15 +3,13 @@ Summary: Connects C/C++/Objective C to some high-level programming languages. Name: swig -Version: 1.3.21 -Release: 7 +Version: 1.3.23 +Release: 1 License: BSD Group: Development/Tools URL: http://swig.sourceforge.net/ Source: http://download.sourceforge.net/swig/swig-%{version}.tar.gz -Patch1: swig-1.3.19-pylib.patch -Patch2: swig-1.3.21-destdir.patch -Patch3: swig-1.3.21-ldflags.patch +Patch1: swig-1.3.23-pylib.patch BuildRoot: %{_tmppath}/swig-root BuildPrereq: perl, python-devel %if %{tcl} @@ -33,14 +31,12 @@ tool for building user interfaces. %prep %setup -q -n SWIG-%{version} %patch1 -p1 -b .pylib -%patch2 -p1 -b .destdir -%patch3 -p1 -b .ldflags %build ./autogen.sh %configure make -make runtime +#make check %install rm -rf $RPM_BUILD_ROOT @@ -60,9 +56,14 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/* %{_libdir}/lib*.* %{_libdir}/swig1.3 -%{_datadir}/aclocal/swig.m4 %changelog +* Tue Nov 23 2004 Karsten Hopp 1.3.23-1 +- update +- new pylib patch +- remove destdir patch, swig.m4 is no longer included +- remove ldconfig patch, swig now uses *-config to find out linker options + * Mon Nov 8 2004 Jeremy Katz - 1.3.21-7 - rebuild against python 2.4