rpms/swig/F-9 swig-arch.patch,1.2,1.3 swig.spec,1.37,1.38

Adam Tkac (atkac) fedora-extras-commits at redhat.com
Fri May 16 08:29:17 UTC 2008


Author: atkac

Update of /cvs/pkgs/rpms/swig/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17081

Modified Files:
	swig.spec 
Added Files:
	swig-arch.patch 
Log Message:
- readded swig-arch.patch, will be kept downstream


swig-arch.patch:

Index: swig-arch.patch
===================================================================
RCS file: swig-arch.patch
diff -N swig-arch.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ swig-arch.patch	16 May 2008 08:28:18 -0000	1.3
@@ -0,0 +1,18 @@
+diff -up swig-1.3.35/Source/Preprocessor/cpp.c.arch swig-1.3.35/Source/Preprocessor/cpp.c
+--- swig-1.3.35/Source/Preprocessor/cpp.c.arch	2008-05-16 10:10:38.000000000 +0200
++++ swig-1.3.35/Source/Preprocessor/cpp.c	2008-05-16 10:15:40.000000000 +0200
+@@ -187,6 +187,14 @@ void Preprocessor_init(void) {
+ 
+   id_scan = NewScanner();;
+ 
++#ifdef __x86_64__
++  Preprocessor_define("__x86_64__", 0);
++#elif defined(__powerpc64__)
++  Preprocessor_define("__powerpc64__", 0);
++#else
++  Preprocessor_define("__i386__", 0);
++#endif
++
+ }
+ 
+ void Preprocessor_delete(void) {


Index: swig.spec
===================================================================
RCS file: /cvs/pkgs/rpms/swig/F-9/swig.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- swig.spec	18 Feb 2008 20:06:04 -0000	1.37
+++ swig.spec	16 May 2008 08:28:18 -0000	1.38
@@ -4,12 +4,13 @@
 Summary: Connects C/C++/Objective C to some high-level programming languages.
 Name: swig
 Version: 1.3.33
-Release: 2%{?dist}
+Release: 3%{?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 @@
 %prep
 %setup -q -n swig-%{version}
 %patch1 -p1 -b .pylib
+%patch2 -p1 -b .arch
 
 %build
 ./autogen.sh
@@ -58,6 +60,9 @@
 %{_datadir}/swig
 
 %changelog
+* Fri May 16 2008 Adam Tkac <atkac redhat com> 1.3.33-2
+- readded arch patch
+
 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.3.33-2
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list