[packages/ming] continue using swig 3

atler atler at pld-linux.org
Fri Jul 7 11:42:02 CEST 2023


commit a82db06d15cf7bf52273bf416783c94ee66ac65b
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jul 7 10:35:35 2023 +0200

    continue using swig 3

 ming.spec  |  7 +++++--
 swig.patch | 11 +++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/ming.spec b/ming.spec
index 920e46c..d756fd6 100644
--- a/ming.spec
+++ b/ming.spec
@@ -19,6 +19,7 @@ Patch0:		%{name}-perl-shared.patch
 Patch1:		am.patch
 Patch2:		flex.patch
 Patch3:		tcl-libx32.patch
+Patch4:		swig.patch
 URL:		http://www.libming.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -35,8 +36,8 @@ BuildRequires:	rpm-perlprov >= 4.0.2-24
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.344
 %{?with_ruby:BuildRequires:	ruby-devel}
-BuildRequires:	swig
-BuildRequires:	swig-tcl
+BuildRequires:	swig3
+BuildRequires:	swig3-tcl
 BuildRequires:	tcl
 BuildRequires:	tcl-devel
 BuildRequires:	zlib-devel
@@ -171,6 +172,7 @@ Interfejs Tcl do biblioteki Ming generującej pliki SWF.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__libtoolize}
@@ -179,6 +181,7 @@ Interfejs Tcl do biblioteki Ming generującej pliki SWF.
 %{__autoheader}
 %{__automake}
 %configure \
+	SWIG=/usr/bin/swig-3 \
 	--enable-perl \
 	%{?with_php:--enable-php} \
 	--enable-python \
diff --git a/swig.patch b/swig.patch
new file mode 100644
index 0000000..782b12f
--- /dev/null
+++ b/swig.patch
@@ -0,0 +1,11 @@
+--- libming-ming-0_4_8/configure.in.orig	2023-07-07 10:32:34.180798498 +0200
++++ libming-ming-0_4_8/configure.in	2023-07-07 10:33:17.083250494 +0200
+@@ -217,6 +217,8 @@
+ AC_SUBST(TCL_LIB_DIR)
+ AC_SUBST(TCL_INC_DIR)
+ 
++AC_PATH_PROG(SWIG, swig)
++
+ dnl --------------------------------------------
+ dnl Check for required programs
+ dnl --------------------------------------------
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ming.git/commitdiff/a82db06d15cf7bf52273bf416783c94ee66ac65b



More information about the pld-cvs-commit mailing list