--- /dev/null
+--- OpenCASCADE6.3.0/ros/configure.in~ 2014-06-03 13:19:52.000000000 +0200
++++ OpenCASCADE6.3.0/ros/configure.in 2014-06-03 13:23:59.627135512 +0200
+@@ -24,7 +24,6 @@
+ AM_PROG_LIBTOOL
+ AC_PROG_CXX
+ AC_PROG_CC_C_O
+-AM_C_PROTOTYPES
+
+ AC_PROG_AWK
+ AC_PROG_INSTALL
+--- OpenCASCADE6.3.0/ros/src/OpenGl/OpenGl_degmodel.c~ 2001-09-21 09:57:40.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/OpenGl/OpenGl_degmodel.c 2014-06-03 14:17:23.552574867 +0200
+@@ -101,7 +101,7 @@
+
+ } /* end switch */
+
+- fprintf ( stdout, ptr );
++ fprintf ( stdout, "%s", ptr );
+
+ return TSuccess;
+
+--- OpenCASCADE6.3.0/ros/src/IFSelect/IFSelect_SessionPilot.cxx~ 2007-09-14 15:28:20.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/IFSelect/IFSelect_SessionPilot.cxx 2014-06-03 14:27:40.856874774 +0200
+@@ -222,7 +222,7 @@
+
+ for (;;) {
+ char ligne[100];
+- if (!lefic) printf (theprompt.ToCString());
++ if (!lefic) printf ("%s", theprompt.ToCString());
+ ligne[0] = '\0';
+ fgets(ligne,100,fic);
+ if (feof(fic)) break;
+--- OpenCASCADE6.3.0/ros/src/BOPTest/BOPTest_LowCommands.cxx~ 2008-08-15 15:57:31.000000000 +0200
++++ OpenCASCADE6.3.0/ros/src/BOPTest/BOPTest_LowCommands.cxx 2014-06-03 14:43:20.658784793 +0200
+@@ -716,24 +716,24 @@
+ //
+ switch (aState) {
+ case TopAbs_IN:
+- sprintf(sbf, sIN.ToCString());
++ sprintf(sbf, "%s", sIN.ToCString());
+ break;
+ case TopAbs_OUT:
+- sprintf(sbf, sOUT.ToCString());
++ sprintf(sbf, "%s", sOUT.ToCString());
+ break;
+ case TopAbs_ON:
+- sprintf(sbf, sON.ToCString());
++ sprintf(sbf, "%s", sON.ToCString());
+ break;
+ case TopAbs_UNKNOWN:
+- sprintf(sbf, sUNKNOWN.ToCString());
++ sprintf(sbf, "%s", sUNKNOWN.ToCString());
+ break;
+ default:
+- sprintf(sbf, sUNKNOWN.ToCString());
++ sprintf(sbf, "%s", sUNKNOWN.ToCString());
+ break;
+ }
+ aDI<<sbf;
+ //
+- sprintf(sbf, " shape\n");
++ sprintf(sbf, "%s", " shape\n");
+ aDI<<sbf;
+
+ }
Name: OpenCASCADE
# The 6.3.1 is a maintenance release, only available for OCC customers
Version: 6.3.0
-Release: 42
+Release: 43
License: LGPL-like, see http://www.opencascade.org/occ/license/
Group: Applications/Engineering
Source0: http://files.opencascade.com/OCC_6.3_release/%{name}_src.tgz
Patch15: %{name}6.3.0-udlist.patch
Patch16: %{name}6.3.0-WOKUnix_FDescr.patch
Patch17: fix-tklcaf.patch
+Patch18: %{name}-build.patch
URL: http://www.opencascade.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
%ifnarch i486
-BuildRequires: java-sun-jdk-base
+BuildRequires: jdk
%endif
BuildRequires: libstdc++-devel
BuildRequires: libtool
%patch15 -p1
%patch16 -p1
%patch17 -p1
+%patch18 -p1
cd ros/src/ExprIntrp
bison -d -p ExprIntrp -o ExprIntrp.tab.c ExprIntrp.yacc
flex -L -8 -Cf -Cr -P ExprIntrp -o lex.ExprIntrp.c ExprIntrp.lex
%{__automake}
%ifarch x86_64 ppc64
-export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
-export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing"
+export CFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing -DUSE_INTERP_RESULT"
+export CXXFLAGS="%{rpmcflags} -D_OCC64 -fno-strict-aliasing -DUSE_INTERP_RESULT"
%else
-export CFLAGS="%{rpmcflags} -fno-strict-aliasing"
-export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing"
+export CFLAGS="%{rpmcflags} -fno-strict-aliasing -DUSE_INTERP_RESULT"
+export CXXFLAGS="%{rpmcflags} -fno-strict-aliasing -DUSE_INTERP_RESULT"
%endif
LDFLAGS=-lpthread %configure \
%{?debug:--disable-production --enable-debug} \