#
Summary: OpenCASCADE Community Edition
Name: OCE
-Version: 0.16.1
+Version: 0.18.2
Release: 1
License: LGPLv2 with exception
Group: Applications/Engineering
URL: https://github.com/tpaviot/oce
Source0: https://github.com/tpaviot/oce/archive/%{name}-%{version}.tar.gz
-# Source0-md5: 4d591b240c9293e879f50d86a0cb2bb3
+# Source0-md5: 6dfd68e459e2c62387579888a867281f
+Patch0: oce-build.patch
Source1: DRAWEXE.1
Source2: opencascade-draw.desktop
Source3: oce-256.png
%prep
%setup -q -n oce-%{name}-%{version}
+%patch0 -p1
%build
install -d build
%files foundation
%defattr(644,root,root,755)
-%doc AUTHORS LICENSE_LGPL_21.txt NEWS OCCT_LGPL_EXCEPTION.txt
+%doc AUTHORS.md LICENSE_LGPL_21.txt NEWS.md OCCT_LGPL_EXCEPTION.txt
# Foundation
%attr(755,root,root) %{_libdir}/libTKernel.so.*
%attr(755,root,root) %{_libdir}/libTKMath.so.*
-%attr(755,root,root) %{_libdir}/libTKAdvTools.so.*
%{_datadir}/oce-*.*/
%files modeling
--- /dev/null
+--- oce-OCE-0.18.2/src/Standard/Standard_CLocaleSentry.hxx~ 2017-08-11 07:51:11.000000000 +0200
++++ oce-OCE-0.18.2/src/Standard/Standard_CLocaleSentry.hxx 2017-08-15 21:40:16.105343307 +0200
+@@ -28,11 +28,6 @@
+ #if defined(__APPLE__)
+ #define HAVE_XLOCALE_H
+ #endif
+-
+- //! We check _GNU_SOURCE for glibc extensions here and it is always defined by g++ compiler.
+- #if defined(_GNU_SOURCE) && !defined(__ANDROID__)
+- #define HAVE_XLOCALE_H
+- #endif
+ #endif // ifndef HAVE_LOCALE_H
+
+ #ifdef HAVE_XLOCALE_H