swig can now determine architecture correctly (#211095)

This commit is contained in:
Adam Tkac 2006-11-07 08:11:14 +00:00
parent af9648246b
commit d17b772d43
2 changed files with 23 additions and 1 deletions

16
swig-arch.patch Normal file
View File

@ -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) {

View File

@ -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 <atkac@redhat.com> 1.3.29-2
- swig can determine architecture now (#211095)
* Mon Aug 28 2006 Jitka Kudrnacova <jkudrnac@redhat.com> -1.3.29-1
-rebuilt