From: Arkadiusz Miśkiewicz Date: Fri, 6 Jul 2018 17:49:02 +0000 (+0200) Subject: - rel 6 X-Git-Tag: auto/th/opencv-3.4.1-6 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopencv.git;a=commitdiff_plain;h=5157319 - rel 6 --- diff --git a/build.patch b/build.patch new file mode 100644 index 0000000..6d0098e --- /dev/null +++ b/build.patch @@ -0,0 +1,11 @@ +--- opencv-3.4.1/modules/python/src2/cv2.cpp~ 2018-02-23 09:38:33.000000000 +0100 ++++ opencv-3.4.1/modules/python/src2/cv2.cpp 2018-07-06 19:10:56.563061072 +0200 +@@ -886,7 +886,7 @@ bool pyopencv_to(PyObject* obj, String& + (void)name; + if(!obj || obj == Py_None) + return true; +- char* str = PyString_AsString(obj); ++ char* str = (char *)PyString_AsString(obj); + if(!str) + return false; + value = String(str); diff --git a/opencv.spec b/opencv.spec index e99d742..814c69a 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: 3.4.1 -Release: 5 +Release: 6 Epoch: 1 %if %{with unicap} || %{with xine} License: GPL (enforced by used libraries), BSD (opencv itself) @@ -103,6 +103,7 @@ Patch0: ix86-pause.patch Patch1: %{name}-ximea.patch Patch2: cplusplus.patch Patch3: cmake-install-path.patch +Patch4: build.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. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build install -d build/{share/OpenCV/testdata/cv/face,downloads/xfeatures2d}