diff --git a/swig-arch.patch b/swig-arch.patch new file mode 100644 index 0000000..37e6a35 --- /dev/null +++ b/swig-arch.patch @@ -0,0 +1,16 @@ +--- Source/Preprocessor/cpp.c.arch 2006-03-06 23:50:59.000000000 +0100 ++++ Source/Preprocessor/cpp.c 2006-11-07 08:26:56.000000000 +0100 +@@ -184,7 +184,11 @@ + included_files = NewHash(); + + id_scan = NewSwigScanner();; +- ++ #ifdef __x86_64__ ++ Preprocessor_define("__x86_64__", 0); ++ #elif defined __i386__ ++ Preprocessor_define("__i386__", 0); ++ #endif + } + + void Preprocessor_delete(void) { + diff --git a/swig.spec b/swig.spec index 76ff054..9137a02 100644 --- a/swig.spec +++ b/swig.spec @@ -4,12 +4,13 @@ Summary: Connects C/C++/Objective C to some high-level programming languages. Name: swig Version: 1.3.29 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Development/Tools URL: http://swig.sourceforge.net/ Source: http://download.sourceforge.net/swig/swig-%{version}.tar.gz Patch1: swig-1.3.23-pylib.patch +Patch2: swig-arch.patch BuildRoot: %{_tmppath}/swig-root BuildPrereq: perl, python-devel %if %{tcl} @@ -32,6 +33,7 @@ tool for building user interfaces. %prep %setup -q -n swig-%{version} %patch1 -p1 -b .pylib +%patch2 -p0 -b .arch %build ./autogen.sh @@ -58,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/swig %changelog +* Tue Nov 07 2006 Adam Tkac 1.3.29-2 +- swig can determine architecture now (#211095) + + * Mon Aug 28 2006 Jitka Kudrnacova -1.3.29-1 -rebuilt