Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
Fedora Release Engineering | 75d2055ad7 | |
Bill Nottingham | 28c28f058b | |
Oliver Falk | ff810acf22 | |
Adam Tkac | 27cfd22b4f | |
Jesse Keating | d61cbac8a1 |
21
Makefile
21
Makefile
|
@ -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)
|
|
@ -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) {
|
10
swig.spec
10
swig.spec
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue