Compare commits

...

5 Commits
master ... f9

Author SHA1 Message Date
Fedora Release Engineering 75d2055ad7 dist-git conversion 2010-07-29 18:01:59 +00:00
Bill Nottingham 28c28f058b Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:46:19 +00:00
Oliver Falk ff810acf22 - Fix arch patch for alpha 2009-02-16 20:57:55 +00:00
Adam Tkac 27cfd22b4f - readded swig-arch.patch, will be kept downstream 2008-05-16 08:28:18 +00:00
Jesse Keating d61cbac8a1 Initialize branch F-9 for swig 2008-04-21 21:32:51 +00:00
4 changed files with 29 additions and 22 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: swig
# $Id: Makefile,v 1.1 2004/09/09 12:47:02 cvsdist Exp $
NAME := swig
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

20
swig-arch.patch Normal file
View File

@ -0,0 +1,20 @@
diff -up swig-1.3.33/Source/Preprocessor/cpp.c.arch swig-1.3.33/Source/Preprocessor/cpp.c
--- swig-1.3.33/Source/Preprocessor/cpp.c.arch 2007-10-08 14:02:56.000000000 +0200
+++ swig-1.3.33/Source/Preprocessor/cpp.c 2009-02-16 09:36:16.000000000 +0100
@@ -187,6 +187,16 @@ void Preprocessor_init(void) {
id_scan = NewScanner();;
+#ifdef __x86_64__
+ Preprocessor_define("__x86_64__", 0);
+#elif defined(__powerpc64__)
+ Preprocessor_define("__powerpc64__", 0);
+#elif defined(__alpha__)
+ Preprocessor_define("__alpha__", 0);
+#else
+ 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.33
Release: 2%{?dist}
Release: 4%{?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 -p1 -b .arch
%build
./autogen.sh
@ -58,6 +60,12 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/swig
%changelog
* Mon Feb 16 2009 Oliver Falk <oliver@linux-kernel.at> 1.3.33-4
- Fix arch patch for alpha
* 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@fedoraproject.org> - 1.3.33-2
- Autorebuild for GCC 4.3