Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
aa065894d5 | ||
|
7c045db198 | ||
|
c4d2816a1a | ||
|
6aaad679e0 | ||
|
63e161d252 | ||
|
1be529017a | ||
|
78d57ce90e | ||
|
9918b0877f |
@ -1 +0,0 @@
|
||||
swig-1.3.35.tar.gz
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
swig-1.3.39.tar.gz
|
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)
|
2
sources
2
sources
@ -1 +1 @@
|
||||
9c2ca2332ebcdab55aa98518111d7cc9 swig-1.3.35.tar.gz
|
||||
ac201d1b87f8659584534f9540d7ad24 swig-1.3.39.tar.gz
|
||||
|
@ -1,7 +1,7 @@
|
||||
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) {
|
||||
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();;
|
||||
|
||||
@ -9,6 +9,8 @@ diff -up swig-1.3.35/Source/Preprocessor/cpp.c.arch swig-1.3.35/Source/Preproces
|
||||
+ 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
|
||||
|
37
swig.spec
37
swig.spec
@ -3,8 +3,8 @@
|
||||
|
||||
Summary: Connects C/C++/Objective C to some high-level programming languages.
|
||||
Name: swig
|
||||
Version: 1.3.35
|
||||
Release: 2%{?dist}
|
||||
Version: 1.3.39
|
||||
Release: 3%{?dist}
|
||||
License: BSD
|
||||
Group: Development/Tools
|
||||
URL: http://swig.sourceforge.net/
|
||||
@ -40,6 +40,29 @@ tool for building user interfaces.
|
||||
%patch1 -p1 -b .pylib
|
||||
%patch2 -p1 -b .arch
|
||||
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/bash
|
||||
%{__perl_provides} | sed \
|
||||
-e '/perl(Particle)/d' \
|
||||
-e '/perl(example::Vector)/d'
|
||||
EOF
|
||||
|
||||
%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
cat << \EOF > %{name}-req
|
||||
#!/bin/bash
|
||||
%{__perl_requires} | sed \
|
||||
-e '/perl(ExtUtils::MakeMaker)/d' \
|
||||
-e '/perl(argv)/d' \
|
||||
-e '/perl(example)/d' \
|
||||
-e '/perl(it)/d' \
|
||||
-e '/perl(the)/d'
|
||||
EOF
|
||||
|
||||
%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure
|
||||
@ -63,8 +86,18 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc Doc/*
|
||||
%{_bindir}/*
|
||||
%{_datadir}/swig
|
||||
%{_mandir}/man1/ccache-swig.1*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 03 2009 Adam Tkac <atkac redhat com> 1.3.39-3
|
||||
- improve fix for perl requires/provides (#514983)
|
||||
|
||||
* Mon Aug 03 2009 Adam Tkac <atkac redhat com> 1.3.39-2
|
||||
- fix perl requires/provides (#514983)
|
||||
|
||||
* Tue Jul 28 2009 Adam Tkac <atkac redhat com> 1.3.39-1
|
||||
- update to 1.3.39 (#513744)
|
||||
|
||||
* Fri May 16 2008 Adam Tkac <atkac redhat com> 1.3.35-2
|
||||
- readded swig-arch.patch, will be kept downstream
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user