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