swig can now determine architecture correctly (#211095)
This commit is contained in:
parent
af9648246b
commit
d17b772d43
16
swig-arch.patch
Normal file
16
swig-arch.patch
Normal 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) {
|
||||||
|
|
@ -4,12 +4,13 @@
|
|||||||
Summary: Connects C/C++/Objective C to some high-level programming languages.
|
Summary: Connects C/C++/Objective C to some high-level programming languages.
|
||||||
Name: swig
|
Name: swig
|
||||||
Version: 1.3.29
|
Version: 1.3.29
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://swig.sourceforge.net/
|
URL: http://swig.sourceforge.net/
|
||||||
Source: http://download.sourceforge.net/swig/swig-%{version}.tar.gz
|
Source: http://download.sourceforge.net/swig/swig-%{version}.tar.gz
|
||||||
Patch1: swig-1.3.23-pylib.patch
|
Patch1: swig-1.3.23-pylib.patch
|
||||||
|
Patch2: swig-arch.patch
|
||||||
BuildRoot: %{_tmppath}/swig-root
|
BuildRoot: %{_tmppath}/swig-root
|
||||||
BuildPrereq: perl, python-devel
|
BuildPrereq: perl, python-devel
|
||||||
%if %{tcl}
|
%if %{tcl}
|
||||||
@ -32,6 +33,7 @@ tool for building user interfaces.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n swig-%{version}
|
%setup -q -n swig-%{version}
|
||||||
%patch1 -p1 -b .pylib
|
%patch1 -p1 -b .pylib
|
||||||
|
%patch2 -p0 -b .arch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@ -58,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/swig
|
%{_datadir}/swig
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 28 2006 Jitka Kudrnacova <jkudrnac@redhat.com> -1.3.29-1
|
||||||
-rebuilt
|
-rebuilt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user