commit 718761848dd3d842e170d655eec22db6190cfd06
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Mar 7 20:03:59 2021 +0100

    - fix c/c++ mixed header
    - rel 3

 no-cxx-in-c-header.patch | 18 ++++++++++++++++++
 opencv.spec              |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/opencv.spec b/opencv.spec
index 32261fc..82a532b 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -60,7 +60,7 @@ Summary:      A library of programming functions mainly aimed 
at real time computer v
 Summary(pl.UTF-8):     Biblioteka funkcji do grafiki komputerowej w czasie 
rzeczywistym
 Name:          opencv
 Version:       4.5.1
-Release:       2
+Release:       3
 Epoch:         1
 %if %{with unicap} || %{with xine}
 License:       GPL (enforced by used libraries), BSD (opencv itself)
@@ -105,6 +105,7 @@ Source40:   
https://github.com/opencv/ade/archive/v0.1.1f/v0.1.1f.zip
 Patch0:                %{name}-ximea.patch
 Patch1:                python-install.patch
 Patch2:                pkgconfig-paths.patch
+Patch3:                no-cxx-in-c-header.patch
 URL:           http://www.opencv.org/
 %{?with_pvapi:BuildRequires:   AVT_GigE_SDK-devel}
 %{?with_opencl:BuildRequires:  OpenCL-devel}
@@ -330,6 +331,7 @@ WiÄ…zania Pythona 3 do OpenCV.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 cache_file() {
        f="$1"
diff --git a/no-cxx-in-c-header.patch b/no-cxx-in-c-header.patch
new file mode 100644
index 0000000..930087e
--- /dev/null
+++ b/no-cxx-in-c-header.patch
@@ -0,0 +1,18 @@
+--- opencv-4.5.1/modules/core/include/opencv2/core/cvdef.h~    2020-12-21 
21:01:38.000000000 +0100
++++ opencv-4.5.1/modules/core/include/opencv2/core/cvdef.h     2021-03-07 
19:39:51.440476065 +0100
+@@ -719,6 +719,7 @@
+ 
/****************************************************************************************\
+ *                                    C++ 11                                   
           *
+ 
\****************************************************************************************/
++#ifdef __cplusplus
+ #ifndef CV_CXX11
+ #  if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
+ #    define CV_CXX11 1
+@@ -760,6 +761,7 @@
+ #ifndef CV_CONSTEXPR
+ #  define CV_CONSTEXPR
+ #endif
++#endif
+ 
+ // Integer types portatibility
+ #ifdef OPENCV_STDINT_HEADER
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opencv.git/commitdiff/718761848dd3d842e170d655eec22db6190cfd06

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to