- up to 3.4.1
[packages/opencv.git] / opencv.spec
1 # TODO:
2 # - contrib subpackage(s)
3 # - contrib BRs:
4 #   opencv_contrib-3.1.0/modules/cnn_3dobj/CMakeLists.txt:find_package(Caffe)
5 #   opencv_contrib-3.1.0/modules/cnn_3dobj/CMakeLists.txt:find_package(Protobuf)
6 #   opencv_contrib-3.1.0/modules/cnn_3dobj/CMakeLists.txt:find_package(Glog)
7 #   opencv_contrib-3.1.0/modules/hdf/CMakeLists.txt:find_package(HDF5)
8 #   opencv_contrib-3.1.0/modules/sfm/CMakeLists.txt:find_package(Ceres QUIET)
9 #   opencv_contrib-3.1.0/modules/text/CMakeLists.txt:find_package(Tesseract)
10 # unpackaged (3.4.0)
11 #/usr/share/OpenCV/3rdparty/usr/lib64/libcorrespondence.a
12 #/usr/share/OpenCV/3rdparty/usr/lib64/libmultiview.a
13 #/usr/share/OpenCV/3rdparty/usr/lib64/libnumeric.a
14 #/usr/share/OpenCV/valgrind.supp
15 #/usr/share/OpenCV/valgrind_3rdparty.supp
16
17 #
18 # - Smartek GigEVisionSDK (http://www.smartekvision.com/ but I can't see SDK with Linux library?)
19 # - CUDA, CUFFT, CUBLAS, NVCUVID support (on bcond)
20 # - ipp (libippi): http://software.intel.com/en-us/articles/intel-ipp/ (proprietary)
21 #
22 # Conditional build:
23 # - general options:
24 %bcond_with     tbb             # Threading Building Blocks support (everywhere)
25 %bcond_with     sse             # use SSE instructions
26 %bcond_with     sse2            # use SSE2 instructions
27 %bcond_with     sse3            # use SSE3 instructions
28 %bcond_with     ssse3           # use SSSE3 instructions
29 %bcond_with     sse41           # use SSE4.1 instructions
30 %bcond_with     sse42           # use SSE4.2 instructions
31 %bcond_with     avx             # use AVX instructions
32 %bcond_without  opencl          # OpenCL support
33 %bcond_with     opencl_amdblas  # AMD OpenCL BLAS routines
34 %bcond_with     opencl_amdfft   # AMD OpenCL FFT routines
35 %bcond_without  opengl          # OpenGL support
36 %bcond_without  openmp          # OpenMP support (available when not using tbb)
37 %bcond_without  examples        # Install examples
38 # - bindings
39 %bcond_without  java            # Java binding
40 # - highgui options:
41 %bcond_without  ffmpeg          # FFMpeg support in highgui
42 %bcond_without  gstreamer       # GStreamer support in highgui
43 %bcond_with     openni          # OpenNI (Natural Interaction) support in highgui
44 %bcond_with     pvapi           # PvAPI (AVT GigE cameras) support in highgui (proprietary)
45 %bcond_with     qt              # Qt backend instead of GTK+ in highgui
46 %bcond_with     unicap          # Unicap support in highgui (GPL)
47 %bcond_without  v4l             # Video4Linux in highgui
48 %bcond_with     ximea           # m3API (XIMEA cameras) support in highgui (proprietary)
49 %bcond_with     xine            # XINE support in highgui (GPL)
50 # - other modules
51 %bcond_without  vtk             # VTK library support (opencv_viz module)
52
53 %ifarch pentium3 pentium4 %{x8664} x32
54 %define         with_sse        1
55 %endif
56 %ifarch pentium4 %{x8664} x32
57 %define         with_sse2       1
58 %endif
59 Summary:        A library of programming functions mainly aimed at real time computer vision
60 Summary(pl.UTF-8):      Biblioteka funkcji do grafiki komputerowej w czasie rzeczywistym
61 Name:           opencv
62 Version:        3.4.1
63 Release:        0.1
64 Epoch:          1
65 %if %{with unicap} || %{with xine}
66 License:        GPL (enforced by used libraries), BSD (opencv itself)
67 %else
68 License:        BSD
69 %endif
70 Group:          Libraries
71 Source0:        https://github.com/Itseez/opencv/archive/%{version}/%{name}-%{version}.tar.gz
72 # Source0-md5:  a0b7a47899e67b3490ea31edc4f6e8e6
73 Source1:        https://github.com/Itseez/opencv_contrib/archive/%{version}/%{name}_contrib-%{version}.tar.gz
74 # Source1-md5:  dd0c63f4185ab8a4829d8154ae382266
75 Patch1:         %{name}-ximea.patch
76 Patch3:         cmake-install-path.patch
77 URL:            http://www.opencv.org/
78 %{?with_pvapi:BuildRequires:    AVT_GigE_SDK-devel}
79 %{?with_opencl:BuildRequires:   OpenCL-devel}
80 BuildRequires:  OpenEXR-devel
81 %{?with_opengl:BuildRequires:   OpenGL-GLU-devel}
82 %{?with_opengl:BuildRequires:   OpenGL-devel}
83 # as of OpenCV 2.3.1-2.4.3 there is also check for OpenNI-sensor-PrimeSense, but the result is not used
84 %{?with_openni:BuildRequires:   OpenNI-devel}
85 %{?with_ximea:BuildRequires:    XIMEA-devel >= 4}
86 %{?with_java:BuildRequires:     ant}
87 %{?with_opencl_amdblas:BuildRequires:   clAmdBlas-devel}
88 %{?with_opencl_amdfft:BuildRequires:    clAmdFft-devel}
89 BuildRequires:  cmake >= 2.8
90 BuildRequires:  doxygen
91 BuildRequires:  eigen3 >= 3
92 %{?with_ffmpeg:BuildRequires:   ffmpeg-devel >= 0.7}
93 %{?with_openmp:BuildRequires:   gcc-c++ >= 6:4.2}
94 BuildRequires:  gflags-devel
95 BuildRequires:  gl2ps-devel
96 BuildRequires:  glog-devel
97 %if %{with gstreamer}
98 BuildRequires:  gstreamer-devel >= 1.0
99 BuildRequires:  gstreamer-plugins-base-devel >= 1.0
100 %endif
101 BuildRequires:  jasper-devel
102 %{?with_java:BuildRequires:     jdk}
103 BuildRequires:  libdc1394-devel >= 2
104 %{?with_openmp:BuildRequires:   libgomp-devel}
105 BuildRequires:  libjpeg-devel
106 BuildRequires:  libpng-devel
107 BuildRequires:  libraw1394-devel
108 BuildRequires:  libstdc++-devel
109 BuildRequires:  libtiff-devel
110 BuildRequires:  libtool
111 %if %{with unicap}
112 BuildRequires:  libucil-devel
113 BuildRequires:  libunicap-devel
114 %endif
115 BuildRequires:  libv4l-devel
116 BuildRequires:  pkgconfig
117 BuildRequires:  python >= 2.0
118 BuildRequires:  python-devel >= 2.0
119 BuildRequires:  python-numpy-devel
120 BuildRequires:  python3 >= 1:3.2
121 BuildRequires:  python3-devel >= 1:3.2
122 BuildRequires:  python3-numpy-devel
123 BuildRequires:  rpm-pythonprov
124 BuildRequires:  rpmbuild(macros) >= 1.606
125 BuildRequires:  sed >= 4.0
126 BuildRequires:  sphinx-pdg
127 BuildRequires:  swig-python
128 %{?with_tbb:BuildRequires:      tbb-devel}
129 %if %{with vtk}
130 BuildRequires:  vtk-devel >= 5.8.0
131 BuildRequires:  vtk-java >= 5.8.0
132 BuildRequires:  vtk-tcl >= 5.8.0
133 %endif
134 %{?with_xine:BuildRequires:     xine-lib-devel}
135 BuildRequires:  xorg-lib-libX11-devel
136 BuildRequires:  zlib-devel
137 %if %{with qt}
138 BuildRequires:  QtCore-devel >= 4
139 BuildRequires:  QtGui-devel >= 4
140 %{?with_opengl:BuildRequires:   QtOpenGL-devel >= 4}
141 BuildRequires:  qt4-qmake >= 4
142 %else
143 BuildRequires:  gtk+2-devel >= 2.0
144 %{?with_opengl:BuildRequires:   gtkglext-devel >= 1.0}
145 %endif
146 Requires:       %{name}-core = %{epoch}:%{version}-%{release}
147 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
148
149 %define         jver    %(echo %{version} | cut -d. -f1-3 | tr -d .)
150 %define         sover   %(echo %{version} | cut -d. -f1-2)
151
152 %description
153 OpenCV (Open Source Computer Vision) is a library of programming
154 functions mainly aimed at real time computer vision.
155
156 Example applications of the OpenCV library are:
157 - Human-Computer Interaction (HCI)
158 - Object Identification, Segmentation and Recognition
159 - Face Recognition
160 - Gesture Recognition
161 - Motion Tracking
162 - Ego Motion, Motion Understanding
163 - Structure From Motion (SFM)
164 - Stereo and Multi-Camera Calibration and Depth Computation
165 - Mobile Robotics.
166
167 %description -l pl.UTF-8
168 OpenCV (Open Source Computer Vision) to biblioteka funkcji
169 przeznaczonych głównie do grafiki komputerowej w czasie rzeczywistym.
170
171 Przykładowe zastosowania biblioteki OpenCV to
172 - interakcje człowiek-komputer (HCI)
173 - identyfikacja, segmentacja i rozpoznawanie obiektów
174 - rozpoznawanie twarzy
175 - rozpoznawanie gestów
176 - śledzenie ruchu
177 - rozumienie ruchu
178 - SFM (Structure From Motion)
179 - kalibracja dwu- i wielokamerowa, obliczanie głębi
180 - robotyka ruchu.
181
182 %package core
183 Summary:        OpenCV core libraries
184 Summary(pl.UTF-8):      Podstawowe biblioteki OpenCV
185 Group:          Libraries
186 Conflicts:      opencv < 2.4.6.2-1
187
188 %description core
189 This package contains the OpenCV C/C++ core libraries.
190
191 %description core -l pl.UTF-8
192 Ten pakiet zawiera podstawowe biblioteki C/C++ OpenCV.
193
194 %package viz
195 Summary:        OpenCV viz library (VTK support)
196 Summary(pl.UTF-8):      Biblioteka OpenCV viz (obsługa VTK)
197 Group:          Libraries
198 Requires:       %{name} = %{epoch}:%{version}-%{release}
199
200 %description viz
201 OpenCV viz library (VTK support).
202
203 %description viz -l pl.UTF-8
204 Biblioteka OpenCV viz (obsługa VTK).
205
206 %package devel
207 Summary:        Header files for OpenCV library
208 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki OpenCV
209 Group:          Development/Libraries
210 Requires:       %{name} = %{epoch}:%{version}-%{release}
211 %if %{with vtk}
212 Requires:       %{name}-viz = %{epoch}:%{version}-%{release}
213 %endif
214 Obsoletes:      opencv-static
215
216 %description devel
217 Header files for OpenCV library.
218
219 %description devel -l pl.UTF-8
220 Pliki nagłówkowe biblioteki OpenCV.
221
222 %package doc
223 Summary:        Manual for OpenCV
224 Summary(fr.UTF-8):      Documentation pour OpenCV
225 Summary(it.UTF-8):      Documentazione di OpenCV
226 Summary(pl.UTF-8):      Podręcznik dla OpenCV
227 Group:          Documentation
228 # noarch subpackages only when building with rpm5
229 %if "%{_rpmversion}" >= "5"
230 BuildArch:      noarch
231 %endif
232
233 %description doc
234 Documentation for OpenCV.
235
236 %description doc -l fr.UTF-8
237 Documentation pour OpenCV.
238
239 %description doc -l it.UTF-8
240 Documentazione di OpenCV.
241
242 %description doc -l pl.UTF-8
243 Dokumentacja do OpenCV.
244
245 %package examples
246 Summary:        OpenCV code examples
247 Group:          Documentation
248 %if "%{_rpmversion}" >= "5"
249 BuildArch:      noarch
250 %endif
251
252 %description examples
253 OpenCV code examples.
254
255 %package -n java-opencv
256 Summary:        OpenCV Java bindings
257 Summary(pl.UTF-8):      Wiązania Javy do OpenCV
258 Group:          Libraries/Java
259 Requires:       %{name} = %{epoch}:%{version}-%{release}
260 Requires:       jre
261
262 %description -n java-opencv
263 OpenCV Java bindings.
264
265 %description -n java-opencv -l pl.UTF-8
266 Wiązania Javy do OpenCV.
267
268 %package -n python-opencv
269 Summary:        OpenCV Python 2 bindings
270 Summary(pl.UTF-8):      Wiązania Pythona 2 do OpenCV
271 Group:          Libraries/Python
272 Requires:       %{name} = %{epoch}:%{version}-%{release}
273 Requires:       python-libs
274
275 %description -n python-opencv
276 OpenCV Python 2 bindings.
277
278 %description -n python-opencv -l pl.UTF-8
279 Wiązania Pythona 2 do OpenCV.
280
281 %package -n python3-opencv
282 Summary:        OpenCV Python 3 bindings
283 Summary(pl.UTF-8):      Wiązania Pythona 3 do OpenCV
284 Group:          Libraries/Python
285 Requires:       %{name} = %{epoch}:%{version}-%{release}
286 Requires:       python3-libs
287
288 %description -n python3-opencv
289 OpenCV Python 3 bindings.
290
291 %description -n python3-opencv -l pl.UTF-8
292 Wiązania Pythona 3 do OpenCV.
293
294 %prep
295 %setup -q -a1
296
297 %undos CMakeLists.txt
298
299 %patch1 -p1
300 %patch3 -p1
301
302 %build
303 install -d build
304 cd build
305
306 # handle cmake & ccache
307 # http://stackoverflow.com/questions/1815688/how-to-use-ccache-with-cmakec
308 if [[ "%{__cc}" = *ccache* ]]; then
309         cc="%{__cc}"
310         cxx="%{__cxx}"
311         ccache="
312         -DCMAKE_C_COMPILER="ccache" -DCMAKE_C_COMPILER_ARG1="${cc#ccache }" \
313         -DCMAKE_CXX_COMPILER="ccache" -DCMAKE_CXX_COMPILER_ARG1="${cxx#ccache }" \
314         "
315 fi
316
317 %cmake .. \
318         $ccache \
319         -DENABLE_PRECOMPILED_HEADERS=OFF \
320         -DOPENCV_LIB_INSTALL_PATH=%{_libdir} \
321         -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-%{version}/modules \
322         -DENABLE_AVX=%{?with_avx:ON}%{!?with_avx:OFF} \
323         -DENABLE_SSE=%{?with_sse:ON}%{!?with_sse:OFF} \
324         -DENABLE_SSE2=%{?with_sse2:ON}%{!?with_sse2:OFF} \
325         -DENABLE_SSE3=%{?with_sse3:ON}%{!?with_sse3:OFF} \
326         -DENABLE_SSSE3=%{?with_ssse3:ON}%{!?with_ssse3:OFF} \
327         -DENABLE_SSE41=%{?with_sse41:ON}%{!?with_sse41:OFF} \
328         -DENABLE_SSE42=%{?with_sse42:ON}%{!?with_sse42:OFF} \
329         -DBUILD_NEW_PYTHON_SUPPORT=ON \
330 %if %{with examples}
331         -DINSTALL_C_EXAMPLES=ON \
332         -DINSTALL_PYTHON_EXAMPLES=ON \
333 %endif
334         %{?with_ffmpeg:-DWITH_FFMPEG=ON} \
335         %{!?with_gstreamer:-DWITH_GSTREAMER=OFF} \
336         %{?with_opencl:-DWITH_OPENCL=ON} \
337         %{!?with_opencl_amdblas:-DWITH_OPENCLAMDBLAS=OFF} \
338         %{!?with_opencl_amdfft:-DWITH_OPENCLAMDFFT=OFF} \
339         %{?with_opengl:-DWITH_OPENGL=ON} \
340         %{?with_openmp:-DWITH_OPENMP=ON} \
341         %{?with_openni:-DWITH_OPENNI=ON} \
342         %{?with_pvapi:-DPVAPI_LIBRARY=%{_libdir}/libPvAPI.so}%{!?with_pvapi:-DWITH_PVAPI=OFF} \
343         %{?with_qt:-DWITH_QT=ON %{?with_opengl:-DWITH_QT_OPENGL=ON} -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4} \
344         %{?with_tbb:-DWITH_TBB=ON} \
345         %{?with_unicap:-DWITH_UNICAP=ON} \
346         %{!?with_v4l:-DWITH_V4L=OFF} \
347         %{?with_vtk:-DWITH_VTK=ON} \
348         %{?with_ximea:-DWITH_XIMEA=ON} \
349         %{?with_xine:-DWITH_XINE=ON} \
350         -DWITH_IPP=OFF
351
352 %{__make}
353
354 %install
355 rm -rf $RPM_BUILD_ROOT
356 %{__make} -C build install \
357         DESTDIR=$RPM_BUILD_ROOT
358
359 %if %{with examples}
360 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
361 mv $RPM_BUILD_ROOT%{_datadir}/OpenCV/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
362 %endif
363
364 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
365 cp -p build/unix-install/opencv.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
366
367 # disable completeness check incompatible with split packaging
368 %{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d' $RPM_BUILD_ROOT%{_datadir}/OpenCV/OpenCVModules.cmake
369
370 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
371 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
372 %py_postclean
373
374 %if %{with java}
375 # move to proper directories, create symlink
376 install -d $RPM_BUILD_ROOT%{_javadir}
377 %{__mv} $RPM_BUILD_ROOT%{_datadir}/OpenCV/java/libopencv_java*.so $RPM_BUILD_ROOT%{_libdir}
378 sed -i -e 's#/share/OpenCV/java/libopencv_java%{jver}\.so#/%{_lib}/libopencv_java%{jver}.so#g' \
379         $RPM_BUILD_ROOT%{_datadir}/OpenCV/OpenCVModules-pld.cmake
380 %{__mv} $RPM_BUILD_ROOT%{_datadir}/OpenCV/java/opencv-*.jar $RPM_BUILD_ROOT%{_javadir}
381 rmdir $RPM_BUILD_ROOT%{_datadir}/OpenCV/java
382 ln -sf $(basename $RPM_BUILD_ROOT%{_javadir}/opencv-*.jar) $RPM_BUILD_ROOT%{_javadir}/opencv.jar
383 %endif
384
385 %clean
386 rm -rf $RPM_BUILD_ROOT
387
388 %post   -p /sbin/ldconfig
389 %postun -p /sbin/ldconfig
390
391 %post   core -p /sbin/ldconfig
392 %postun core -p /sbin/ldconfig
393
394 %post   viz -p /sbin/ldconfig
395 %postun viz -p /sbin/ldconfig
396
397 %post   -n java-opencv -p /sbin/ldconfig
398 %postun -n java-opencv -p /sbin/ldconfig
399
400 %files
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/opencv_annotation
403 %attr(755,root,root) %{_bindir}/opencv_createsamples
404 %attr(755,root,root) %{_bindir}/opencv_interactive-calibration
405 %attr(755,root,root) %{_bindir}/opencv_traincascade
406 %attr(755,root,root) %{_bindir}/opencv_version
407 %attr(755,root,root) %{_bindir}/opencv_visualisation
408 %attr(755,root,root) %{_libdir}/libopencv_calib3d.so.*.*.*
409 %attr(755,root,root) %ghost %{_libdir}/libopencv_calib3d.so.%{sover}
410 %attr(755,root,root) %{_libdir}/libopencv_features2d.so.*.*.*
411 %attr(755,root,root) %ghost %{_libdir}/libopencv_features2d.so.%{sover}
412 %attr(755,root,root) %{_libdir}/libopencv_highgui.so.*.*.*
413 %attr(755,root,root) %ghost %{_libdir}/libopencv_highgui.so.%{sover}
414 %attr(755,root,root) %{_libdir}/libopencv_objdetect.so.*.*.*
415 %attr(755,root,root) %ghost %{_libdir}/libopencv_objdetect.so.%{sover}
416 %attr(755,root,root) %{_libdir}/libopencv_stitching.so.*.*.*
417 %attr(755,root,root) %ghost %{_libdir}/libopencv_stitching.so.%{sover}
418 %attr(755,root,root) %{_libdir}/libopencv_superres.so.*.*.*
419 %attr(755,root,root) %ghost %{_libdir}/libopencv_superres.so.%{sover}
420 %attr(755,root,root) %{_libdir}/libopencv_videostab.so.*.*.*
421 %attr(755,root,root) %ghost %{_libdir}/libopencv_videostab.so.%{sover}
422 # contrib modules
423 %attr(755,root,root) %{_bindir}/opencv_waldboost_detector
424 %attr(755,root,root) %ghost %{_libdir}/libopencv_aruco.so.%{sover}
425 %attr(755,root,root) %{_libdir}/libopencv_aruco.so.*.*.*
426 %attr(755,root,root) %ghost %{_libdir}/libopencv_bgsegm.so.%{sover}
427 %attr(755,root,root) %{_libdir}/libopencv_bgsegm.so.*.*.*
428 %attr(755,root,root) %ghost %{_libdir}/libopencv_bioinspired.so.%{sover}
429 %attr(755,root,root) %{_libdir}/libopencv_bioinspired.so.*.*.*
430 %attr(755,root,root) %ghost %{_libdir}/libopencv_ccalib.so.%{sover}
431 %attr(755,root,root) %{_libdir}/libopencv_ccalib.so.*.*.*
432 %attr(755,root,root) %ghost %{_libdir}/libopencv_datasets.so.%{sover}
433 %attr(755,root,root) %{_libdir}/libopencv_datasets.so.*.*.*
434 %attr(755,root,root) %ghost %{_libdir}/libopencv_dnn.so.%{sover}
435 %attr(755,root,root) %{_libdir}/libopencv_dnn.so.*.*.*
436 %attr(755,root,root) %ghost %{_libdir}/libopencv_dpm.so.%{sover}
437 %attr(755,root,root) %{_libdir}/libopencv_dpm.so.*.*.*
438 %attr(755,root,root) %ghost %{_libdir}/libopencv_face.so.%{sover}
439 %attr(755,root,root) %{_libdir}/libopencv_face.so.*.*.*
440 %attr(755,root,root) %ghost %{_libdir}/libopencv_freetype.so.%{sover}
441 %attr(755,root,root) %{_libdir}/libopencv_freetype.so.*.*.*
442 %attr(755,root,root) %ghost %{_libdir}/libopencv_fuzzy.so.%{sover}
443 %attr(755,root,root) %{_libdir}/libopencv_fuzzy.so.*.*.*
444 %attr(755,root,root) %ghost %{_libdir}/libopencv_hdf.so.%{sover}
445 %attr(755,root,root) %{_libdir}/libopencv_hdf.so.*.*.*
446 %attr(755,root,root) %ghost %{_libdir}/libopencv_img_hash.so.%{sover}
447 %attr(755,root,root) %{_libdir}/libopencv_img_hash.so.*.*.*
448 %attr(755,root,root) %ghost %{_libdir}/libopencv_line_descriptor.so.%{sover}
449 %attr(755,root,root) %{_libdir}/libopencv_line_descriptor.so.*.*.*
450 %attr(755,root,root) %ghost %{_libdir}/libopencv_optflow.so.%{sover}
451 %attr(755,root,root) %{_libdir}/libopencv_optflow.so.*.*.*
452 %attr(755,root,root) %ghost %{_libdir}/libopencv_phase_unwrapping.so.%{sover}
453 %attr(755,root,root) %{_libdir}/libopencv_phase_unwrapping.so.*.*.*
454 %attr(755,root,root) %ghost %{_libdir}/libopencv_plot.so.%{sover}
455 %attr(755,root,root) %{_libdir}/libopencv_plot.so.*.*.*
456 %attr(755,root,root) %ghost %{_libdir}/libopencv_reg.so.%{sover}
457 %attr(755,root,root) %{_libdir}/libopencv_reg.so.*.*.*
458 %attr(755,root,root) %ghost %{_libdir}/libopencv_rgbd.so.%{sover}
459 %attr(755,root,root) %{_libdir}/libopencv_rgbd.so.*.*.*
460 %attr(755,root,root) %ghost %{_libdir}/libopencv_saliency.so.%{sover}
461 %attr(755,root,root) %{_libdir}/libopencv_saliency.so.*.*.*
462 %attr(755,root,root) %ghost %{_libdir}/libopencv_sfm.so.%{sover}
463 %attr(755,root,root) %{_libdir}/libopencv_sfm.so.*.*.*
464 %attr(755,root,root) %ghost %{_libdir}/libopencv_stereo.so.%{sover}
465 %attr(755,root,root) %{_libdir}/libopencv_stereo.so.*.*.*
466 %attr(755,root,root) %ghost %{_libdir}/libopencv_structured_light.so.%{sover}
467 %attr(755,root,root) %{_libdir}/libopencv_structured_light.so.*.*.*
468 %attr(755,root,root) %ghost %{_libdir}/libopencv_surface_matching.so.%{sover}
469 %attr(755,root,root) %{_libdir}/libopencv_surface_matching.so.*.*.*
470 %attr(755,root,root) %ghost %{_libdir}/libopencv_text.so.%{sover}
471 %attr(755,root,root) %{_libdir}/libopencv_text.so.*.*.*
472 %attr(755,root,root) %ghost %{_libdir}/libopencv_tracking.so.%{sover}
473 %attr(755,root,root) %{_libdir}/libopencv_tracking.so.*.*.*
474 %attr(755,root,root) %ghost %{_libdir}/libopencv_xfeatures2d.so.%{sover}
475 %attr(755,root,root) %{_libdir}/libopencv_xfeatures2d.so.*.*.*
476 %attr(755,root,root) %ghost %{_libdir}/libopencv_ximgproc.so.%{sover}
477 %attr(755,root,root) %{_libdir}/libopencv_ximgproc.so.*.*.*
478 %attr(755,root,root) %ghost %{_libdir}/libopencv_xobjdetect.so.%{sover}
479 %attr(755,root,root) %{_libdir}/libopencv_xobjdetect.so.*.*.*
480 %attr(755,root,root) %ghost %{_libdir}/libopencv_xphoto.so.%{sover}
481 %attr(755,root,root) %{_libdir}/libopencv_xphoto.so.*.*.*
482
483 %dir %{_datadir}/OpenCV
484 %{_datadir}/OpenCV/haarcascades
485 %{_datadir}/OpenCV/lbpcascades
486
487 %files core
488 %defattr(644,root,root,755)
489 %attr(755,root,root) %{_libdir}/libopencv_core.so.*.*.*
490 %attr(755,root,root) %ghost %{_libdir}/libopencv_core.so.%{sover}
491 %attr(755,root,root) %{_libdir}/libopencv_flann.so.*.*.*
492 %attr(755,root,root) %ghost %{_libdir}/libopencv_flann.so.%{sover}
493 %attr(755,root,root) %{_libdir}/libopencv_imgproc.so.*.*.*
494 %attr(755,root,root) %ghost %{_libdir}/libopencv_imgproc.so.%{sover}
495 %attr(755,root,root) %{_libdir}/libopencv_ml.so.*.*.*
496 %attr(755,root,root) %ghost %{_libdir}/libopencv_ml.so.%{sover}
497 %attr(755,root,root) %{_libdir}/libopencv_photo.so.*.*.*
498 %attr(755,root,root) %ghost %{_libdir}/libopencv_photo.so.%{sover}
499 %attr(755,root,root) %{_libdir}/libopencv_video.so.*.*.*
500 %attr(755,root,root) %ghost %{_libdir}/libopencv_video.so.%{sover}
501 %attr(755,root,root) %{_libdir}/libopencv_imgcodecs.so.*.*.*
502 %attr(755,root,root) %ghost %{_libdir}/libopencv_imgcodecs.so.%{sover}
503 %attr(755,root,root) %{_libdir}/libopencv_shape.so.*.*.*
504 %attr(755,root,root) %ghost %{_libdir}/libopencv_shape.so.%{sover}
505 %attr(755,root,root) %{_libdir}/libopencv_videoio.so.*.*.*
506 %attr(755,root,root) %ghost %{_libdir}/libopencv_videoio.so.%{sover}
507
508 %if %{with vtk}
509 %files viz
510 %defattr(644,root,root,755)
511 %attr(755,root,root) %{_libdir}/libopencv_viz.so.*.*.*
512 %attr(755,root,root) %ghost %{_libdir}/libopencv_viz.so.%{sover}
513 %endif
514
515 %files devel
516 %defattr(644,root,root,755)
517 # core
518 %attr(755,root,root) %{_libdir}/libopencv_core.so
519 %attr(755,root,root) %{_libdir}/libopencv_flann.so
520 %attr(755,root,root) %{_libdir}/libopencv_imgproc.so
521 %attr(755,root,root) %{_libdir}/libopencv_ml.so
522 %attr(755,root,root) %{_libdir}/libopencv_photo.so
523 %attr(755,root,root) %{_libdir}/libopencv_video.so
524 # GUI/extensions (base package)
525 %attr(755,root,root) %{_libdir}/libopencv_calib3d.so
526 %attr(755,root,root) %{_libdir}/libopencv_features2d.so
527 %attr(755,root,root) %{_libdir}/libopencv_highgui.so
528 %attr(755,root,root) %{_libdir}/libopencv_objdetect.so
529 %attr(755,root,root) %{_libdir}/libopencv_stitching.so
530 %attr(755,root,root) %{_libdir}/libopencv_superres.so
531 %attr(755,root,root) %{_libdir}/libopencv_videostab.so
532 %attr(755,root,root) %{_libdir}/libopencv_imgcodecs.so
533 %attr(755,root,root) %{_libdir}/libopencv_shape.so
534 %attr(755,root,root) %{_libdir}/libopencv_videoio.so
535 # contrib
536 %attr(755,root,root) %{_libdir}/libopencv_aruco.so
537 %attr(755,root,root) %{_libdir}/libopencv_bgsegm.so
538 %attr(755,root,root) %{_libdir}/libopencv_bioinspired.so
539 %attr(755,root,root) %{_libdir}/libopencv_ccalib.so
540 %attr(755,root,root) %{_libdir}/libopencv_datasets.so
541 %attr(755,root,root) %{_libdir}/libopencv_dnn.so
542 %attr(755,root,root) %{_libdir}/libopencv_dpm.so
543 %attr(755,root,root) %{_libdir}/libopencv_face.so
544 %attr(755,root,root) %{_libdir}/libopencv_freetype.so
545 %attr(755,root,root) %{_libdir}/libopencv_fuzzy.so
546 %attr(755,root,root) %{_libdir}/libopencv_hdf.so
547 %attr(755,root,root) %{_libdir}/libopencv_img_hash.so
548 %attr(755,root,root) %{_libdir}/libopencv_line_descriptor.so
549 %attr(755,root,root) %{_libdir}/libopencv_optflow.so
550 %attr(755,root,root) %{_libdir}/libopencv_phase_unwrapping.so
551 %attr(755,root,root) %{_libdir}/libopencv_plot.so
552 %attr(755,root,root) %{_libdir}/libopencv_reg.so
553 %attr(755,root,root) %{_libdir}/libopencv_rgbd.so
554 %attr(755,root,root) %{_libdir}/libopencv_saliency.so
555 %attr(755,root,root) %{_libdir}/libopencv_sfm.so
556 %attr(755,root,root) %{_libdir}/libopencv_stereo.so
557 %attr(755,root,root) %{_libdir}/libopencv_structured_light.so
558 %attr(755,root,root) %{_libdir}/libopencv_surface_matching.so
559 %attr(755,root,root) %{_libdir}/libopencv_text.so
560 %attr(755,root,root) %{_libdir}/libopencv_tracking.so
561 %attr(755,root,root) %{_libdir}/libopencv_xfeatures2d.so
562 %attr(755,root,root) %{_libdir}/libopencv_ximgproc.so
563 %attr(755,root,root) %{_libdir}/libopencv_xobjdetect.so
564 %attr(755,root,root) %{_libdir}/libopencv_xphoto.so
565 #%{_libdir}/libopencv_ts.a
566 # viz
567 %if %{with vtk}
568 %attr(755,root,root) %{_libdir}/libopencv_viz.so
569 %endif
570 %{_includedir}/opencv
571 %{_includedir}/opencv2
572 %{_datadir}/OpenCV/OpenCV*.cmake
573 %{_pkgconfigdir}/opencv.pc
574
575 %files doc
576 %defattr(644,root,root,755)
577 # TODO: probably could rebuild them and package via make install
578 %doc doc/*
579
580 %if %{with examples}
581 %files examples
582 %defattr(644,root,root,755)
583 %{_examplesdir}/%{name}-%{version}
584 %endif
585
586 %if %{with java}
587 %files -n java-opencv
588 %defattr(644,root,root,755)
589 %attr(755,root,root) %{_libdir}/libopencv_java%{jver}.so
590 %{_javadir}/opencv-%{jver}.jar
591 %{_javadir}/opencv.jar
592 %endif
593
594 %files -n python-opencv
595 %defattr(644,root,root,755)
596 %attr(755,root,root) %{py_sitedir}/cv2.so
597
598 %files -n python3-opencv
599 %defattr(644,root,root,755)
600 %attr(755,root,root) %{py3_sitedir}/cv2.cpython-*.so
This page took 0.334794 seconds and 3 git commands to generate.