]>
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 | |
da5d1e09 | 20 | %bcond_without gomp # OpenMP support |
b07433c6 JB |
21 | # - bindings |
22 | %bcond_without java # Java binding | |
a55ba198 | 23 | # - highgui options: |
b3920a9d | 24 | %bcond_without ffmpeg # FFMpeg support in highgui |
1c9fe580 JB |
25 | %bcond_without gstreamer # GStreamer support in highgui |
26 | %bcond_with openni # OpenNI (Natural Interaction) support in highgui | |
a55ba198 | 27 | %bcond_with pvapi # PvAPI (AVT GigE cameras) support in highgui (proprietary) |
1c9fe580 | 28 | %bcond_with qt # Qt backend instead of GTK+ in highgui |
1c9fe580 | 29 | %bcond_with unicap # Unicap support in highgui (GPL) |
da5d1e09 | 30 | %bcond_without v4l # Video4Linux in highgui |
a55ba198 | 31 | %bcond_with ximea # m3API (XIMEA cameras) support in highgui (proprietary) |
1c9fe580 | 32 | %bcond_with xine # XINE support in highgui (GPL) |
a4737151 | 33 | |
1c9fe580 JB |
34 | %ifarch pentium3 pentium4 %{x8664} |
35 | %define with_sse 1 | |
36 | %endif | |
37 | %ifarch pentium4 %{x8664} | |
38 | %define with_sse2 1 | |
39 | %endif | |
901927d3 | 40 | Summary: A library of programming functions mainly aimed at real time computer vision |
0c2d6b7d | 41 | Summary(pl.UTF-8): Biblioteka funkcji do grafiki komputerowej w czasie rzeczywistym |
901927d3 | 42 | Name: opencv |
da5d1e09 | 43 | Version: 2.4.8 |
106dfc1e | 44 | Release: 4 |
901927d3 | 45 | Epoch: 1 |
d5e56e66 JB |
46 | %if %{with unicap} || %{with xine} |
47 | License: GPL (enforced by used libraries), BSD (opencv itself) | |
48 | %else | |
901927d3 | 49 | License: BSD |
d5e56e66 | 50 | %endif |
901927d3 | 51 | Group: Libraries |
9f0b035c | 52 | Source0: https://github.com/Itseez/opencv/archive/%{version}.tar.gz |
da5d1e09 | 53 | # Source0-md5: 9b8f1426bc01a1ae1e8b3bce11dc1e1c |
452b38e1 | 54 | Patch0: %{name}-cflags.patch |
55 | Patch1: %{name}-link.patch | |
56 | Patch2: %{name}-unicap-c++.patch | |
57 | Patch3: %{name}-c.patch | |
58 | Patch4: %{name}-gcc.patch | |
809ce413 | 59 | Patch5: %{name}-ximea.patch |
6994c4f7 | 60 | Patch6: %{name}-ocl-fft.patch |
a4737151 | 61 | Patch7: java-ant-sourcelevel.patch |
da5d1e09 | 62 | Patch8: %{name}-shared.patch |
0c2d6b7d | 63 | URL: http://opencv.willowgarage.com/ |
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} |
da5d1e09 | 79 | %{?with_gomp:BuildRequires: gcc-c++ >= 6:4.2} |
0c2d6b7d JB |
80 | %if %{with gstreamer} |
81 | BuildRequires: gstreamer-devel >= 0.10 | |
82 | BuildRequires: gstreamer-plugins-base-devel >= 0.10 | |
83 | %endif | |
901927d3 | 84 | BuildRequires: jasper-devel |
b07433c6 | 85 | %{?with_java:BuildRequires: jdk} |
901927d3 | 86 | BuildRequires: libdc1394-devel |
da5d1e09 | 87 | %{?with_gomp:BuildRequires: libgomp-devel} |
901927d3 AM |
88 | BuildRequires: libjpeg-devel |
89 | BuildRequires: libpng-devel | |
90 | BuildRequires: libraw1394-devel | |
0c2d6b7d | 91 | BuildRequires: libstdc++-devel |
901927d3 | 92 | BuildRequires: libtiff-devel |
148338c5 | 93 | BuildRequires: libtool |
d5e56e66 JB |
94 | %if %{with unicap} |
95 | BuildRequires: libucil-devel | |
96 | BuildRequires: libunicap-devel | |
97 | %endif | |
0c2d6b7d | 98 | BuildRequires: libv4l-devel |
af6d2888 | 99 | BuildRequires: pkgconfig |
b07433c6 | 100 | BuildRequires: python |
901927d3 | 101 | BuildRequires: python-devel |
0c2d6b7d | 102 | BuildRequires: python-numpy-devel |
901927d3 | 103 | BuildRequires: rpm-pythonprov |
8d499a62 | 104 | BuildRequires: rpmbuild(macros) >= 1.606 |
1376dffe | 105 | BuildRequires: sed >= 4.0 |
996927aa | 106 | BuildRequires: swig-python |
f8e040cc | 107 | %{?with_tbb:BuildRequires: tbb-devel} |
901927d3 | 108 | %{?with_xine:BuildRequires: xine-lib-devel} |
452b38e1 | 109 | BuildRequires: zlib-devel |
4afb606b | 110 | %if %{with qt} |
4afb606b JB |
111 | BuildRequires: QtCore-devel >= 4 |
112 | BuildRequires: QtGui-devel >= 4 | |
5df3cf1b | 113 | %{?with_opengl:BuildRequires: QtOpenGL-devel >= 4} |
4afb606b JB |
114 | BuildRequires: qt4-qmake >= 4 |
115 | %else | |
116 | BuildRequires: gtk+2-devel >= 2.0 | |
5df3cf1b | 117 | %{?with_opengl:BuildRequires: gtkglext-devel >= 1.0} |
4afb606b | 118 | %endif |
da5d1e09 | 119 | Requires: %{name}-core = %{epoch}:%{version}-%{release} |
901927d3 AM |
120 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
121 | ||
933de752 ER |
122 | %define sover %(v=%{version}; k=${v#?.?.?}; echo ${v%$k}) |
123 | ||
97310fd5 ER |
124 | # build broken, can't find g++ |
125 | %undefine with_ccache | |
126 | ||
901927d3 AM |
127 | %description |
128 | OpenCV (Open Source Computer Vision) is a library of programming | |
129 | functions mainly aimed at real time computer vision. | |
130 | ||
0c2d6b7d JB |
131 | Example applications of the OpenCV library are: |
132 | - Human-Computer Interaction (HCI) | |
133 | - Object Identification, Segmentation and Recognition | |
134 | - Face Recognition | |
135 | - Gesture Recognition | |
136 | - Motion Tracking | |
137 | - Ego Motion, Motion Understanding | |
138 | - Structure From Motion (SFM) | |
139 | - Stereo and Multi-Camera Calibration and Depth Computation | |
140 | - Mobile Robotics. | |
141 | ||
142 | %description -l pl.UTF-8 | |
143 | OpenCV (Open Source Computer Vision) to biblioteka funkcji | |
144 | przeznaczonych głównie do grafiki komputerowej w czasie rzeczywistym. | |
145 | ||
146 | Przykładowe zastosowania biblioteki OpenCV to | |
147 | - interakcje człowiek-komputer (HCI) | |
148 | - identyfikacja, segmentacja i rozpoznawanie obiektów | |
149 | - rozpoznawanie twarzy | |
150 | - rozpoznawanie gestów | |
151 | - śledzenie ruchu | |
152 | - rozumienie ruchu | |
153 | - SFM (Structure From Motion) | |
154 | - kalibracja dwu- i wielokamerowa, obliczanie głębi | |
155 | - robotyka ruchu. | |
901927d3 | 156 | |
933de752 ER |
157 | %package core |
158 | Summary: OpenCV core libraries | |
da5d1e09 | 159 | Summary(pl.UTF-8): Podstawowe biblioteki OpenCV |
933de752 | 160 | Group: Libraries |
da5d1e09 | 161 | Conflicts: opencv < 2.4.6.2-1 |
933de752 ER |
162 | |
163 | %description core | |
164 | This package contains the OpenCV C/C++ core libraries. | |
165 | ||
da5d1e09 JB |
166 | %description core -l pl.UTF-8 |
167 | Ten pakiet zawiera podstawowe biblioteki C/C++ OpenCV. | |
168 | ||
901927d3 | 169 | %package devel |
0c2d6b7d JB |
170 | Summary: Header files for OpenCV library |
171 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenCV | |
901927d3 AM |
172 | Group: Development/Libraries |
173 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
0c2d6b7d | 174 | Obsoletes: opencv-static |
901927d3 AM |
175 | |
176 | %description devel | |
0c2d6b7d | 177 | Header files for OpenCV library. |
901927d3 | 178 | |
0c2d6b7d JB |
179 | %description devel -l pl.UTF-8 |
180 | Pliki nagłówkowe biblioteki OpenCV. | |
901927d3 | 181 | |
9141b1e2 ER |
182 | %package doc |
183 | Summary: Manual for OpenCV | |
184 | Summary(fr.UTF-8): Documentation pour OpenCV | |
185 | Summary(it.UTF-8): Documentazione di OpenCV | |
186 | Summary(pl.UTF-8): Podręcznik dla OpenCV | |
187 | Group: Documentation | |
188 | # noarch subpackages only when building with rpm5 | |
189 | %if "%{_rpmversion}" >= "5" | |
190 | BuildArch: noarch | |
191 | %endif | |
192 | ||
193 | %description doc | |
194 | Documentation for OpenCV. | |
195 | ||
196 | %description doc -l fr.UTF-8 | |
197 | Documentation pour OpenCV. | |
198 | ||
199 | %description doc -l it.UTF-8 | |
200 | Documentazione di OpenCV. | |
201 | ||
202 | %description doc -l pl.UTF-8 | |
203 | Dokumentacja do OpenCV. | |
204 | ||
b07433c6 JB |
205 | %package -n java-opencv |
206 | Summary: OpenCV Java bindings | |
207 | Summary(pl.UTF-8): Wiązania Javy do OpenCV | |
208 | Group: Libraries/Java | |
209 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
210 | Requires: jre | |
211 | ||
212 | %description -n java-opencv | |
213 | OpenCV Java bindings. | |
214 | ||
215 | %description -n java-opencv -l pl.UTF-8 | |
216 | Wiązania Javy do OpenCV. | |
217 | ||
901927d3 AM |
218 | %package -n python-opencv |
219 | Summary: OpenCV Python bindings | |
0c2d6b7d JB |
220 | Summary(pl.UTF-8): Wiązania Pythona do OpenCV |
221 | Group: Libraries/Python | |
cd1f0136 | 222 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9f0b035c | 223 | Requires: python-libs |
901927d3 AM |
224 | |
225 | %description -n python-opencv | |
226 | OpenCV Python bindings. | |
227 | ||
0c2d6b7d JB |
228 | %description -n python-opencv -l pl.UTF-8 |
229 | Wiązania Pythona do OpenCV. | |
230 | ||
901927d3 | 231 | %prep |
25269a76 | 232 | %setup -q |
54551f29 | 233 | |
da67222a | 234 | %undos CMakeLists.txt |
1376dffe | 235 | %undos modules/gpu/CMakeLists.txt |
54551f29 | 236 | |
1376dffe | 237 | %patch0 -p1 |
238 | %patch1 -p1 | |
29d82ddf | 239 | %patch2 -p1 |
f8e040cc | 240 | %patch3 -p1 |
75b912e9 | 241 | %patch4 -p1 |
809ce413 | 242 | %patch5 -p1 |
6994c4f7 | 243 | %patch6 -p1 |
a4737151 | 244 | %patch7 -p1 |
da5d1e09 | 245 | %patch8 -p1 |
148338c5 | 246 | |
901927d3 | 247 | %build |
95daeb66 AM |
248 | install -d build |
249 | cd build | |
0c2d6b7d | 250 | %cmake .. \ |
da5d1e09 | 251 | -DENABLE_AVX=%{?with_avx:ON}%{!?with_avx:OFF} \ |
1c9fe580 JB |
252 | -DENABLE_SSE=%{?with_sse:ON}%{!?with_sse:OFF} \ |
253 | -DENABLE_SSE2=%{?with_sse2:ON}%{!?with_sse2:OFF} \ | |
da5d1e09 JB |
254 | -DENABLE_SSE3=%{?with_sse3:ON}%{!?with_sse3:OFF} \ |
255 | -DENABLE_SSSE3=%{?with_ssse3:ON}%{!?with_ssse3:OFF} \ | |
256 | -DENABLE_SSE41=%{?with_sse41:ON}%{!?with_sse41:OFF} \ | |
257 | -DENABLE_SSE42=%{?with_sse42:ON}%{!?with_sse42:OFF} \ | |
95daeb66 | 258 | -DBUILD_NEW_PYTHON_SUPPORT=ON \ |
b3920a9d | 259 | %{?with_ffmpeg:-DWITH_FFMPEG=ON} \ |
d5e56e66 | 260 | %{!?with_gstreamer:-DWITH_GSTREAMER=OFF} \ |
8d5385eb | 261 | %{?with_opencl:-DWITH_OPENCL=ON} \ |
faf80a1c JB |
262 | %{!?with_opencl_amdblas:-DWITH_OPENCLAMDBLAS=OFF} \ |
263 | %{!?with_opencl_amdfft:-DWITH_OPENCLAMDFFT=OFF} \ | |
5df3cf1b | 264 | %{?with_opengl:-DWITH_OPENGL=ON} \ |
da5d1e09 | 265 | %{?with_gomp:-DWITH_OPENMP=ON} \ |
1c9fe580 | 266 | %{?with_openni:-DWITH_OPENNI=ON} \ |
809ce413 | 267 | %{?with_pvapi:-DPVAPI_LIBRARY=%{_libdir}/libPvAPI.so}%{!?with_pvapi:-DWITH_PVAPI=OFF} \ |
5df3cf1b | 268 | %{?with_qt:-DWITH_QT=ON %{?with_opengl:-DWITH_QT_OPENGL=ON} -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4} \ |
f8e040cc | 269 | %{?with_tbb:-DWITH_TBB=ON} \ |
d5e56e66 | 270 | %{?with_unicap:-DWITH_UNICAP=ON} \ |
ed358224 | 271 | %{!?with_v4l:-DWITH_V4L=OFF} \ |
a55ba198 | 272 | %{?with_ximea:-DWITH_XIMEA=ON} \ |
d5e56e66 | 273 | %{?with_xine:-DWITH_XINE=ON} |
54551f29 | 274 | |
8b9f61f7 | 275 | %{__make} |
901927d3 AM |
276 | |
277 | %install | |
278 | rm -rf $RPM_BUILD_ROOT | |
95daeb66 | 279 | %{__make} -C build install \ |
901927d3 AM |
280 | DESTDIR=$RPM_BUILD_ROOT |
281 | ||
9141b1e2 ER |
282 | # see -doc package |
283 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/OpenCV/doc | |
284 | ||
4bd2eae7 | 285 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
a4737151 | 286 | cp -p build/unix-install/opencv.pc $RPM_BUILD_ROOT%{_pkgconfigdir} |
4bd2eae7 | 287 | |
8d499a62 JB |
288 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
289 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
290 | %py_postclean | |
291 | ||
b07433c6 JB |
292 | %if %{with java} |
293 | # move to proper directories, create symlink | |
294 | install -d $RPM_BUILD_ROOT%{_javadir} | |
295 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/OpenCV/java/libopencv_java*.so $RPM_BUILD_ROOT%{_libdir} | |
296 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/OpenCV/java/opencv-*.jar $RPM_BUILD_ROOT%{_javadir} | |
297 | rmdir $RPM_BUILD_ROOT%{_datadir}/OpenCV/java | |
298 | ln -sf $(basename $RPM_BUILD_ROOT%{_javadir}/opencv-*.jar) $RPM_BUILD_ROOT%{_javadir}/opencv.jar | |
299 | %endif | |
300 | ||
901927d3 AM |
301 | %clean |
302 | rm -rf $RPM_BUILD_ROOT | |
303 | ||
304 | %post -p /sbin/ldconfig | |
305 | %postun -p /sbin/ldconfig | |
306 | ||
933de752 ER |
307 | %post core -p /sbin/ldconfig |
308 | %postun core -p /sbin/ldconfig | |
309 | ||
b07433c6 JB |
310 | %post -n java-opencv -p /sbin/ldconfig |
311 | %postun -n java-opencv -p /sbin/ldconfig | |
312 | ||
901927d3 AM |
313 | %files |
314 | %defattr(644,root,root,755) | |
933de752 ER |
315 | %attr(755,root,root) %{_bindir}/opencv_createsamples |
316 | %attr(755,root,root) %{_bindir}/opencv_haartraining | |
317 | %attr(755,root,root) %{_bindir}/opencv_performance | |
318 | %attr(755,root,root) %{_bindir}/opencv_traincascade | |
319 | %attr(755,root,root) %{_libdir}/libopencv_calib3d.so.%{sover} | |
da5d1e09 | 320 | %attr(755,root,root) %ghost %{_libdir}/libopencv_calib3d.so.2.4 |
933de752 | 321 | %attr(755,root,root) %{_libdir}/libopencv_contrib.so.%{sover} |
da5d1e09 | 322 | %attr(755,root,root) %ghost %{_libdir}/libopencv_contrib.so.2.4 |
933de752 | 323 | %attr(755,root,root) %{_libdir}/libopencv_features2d.so.%{sover} |
da5d1e09 | 324 | %attr(755,root,root) %ghost %{_libdir}/libopencv_features2d.so.2.4 |
933de752 | 325 | %attr(755,root,root) %{_libdir}/libopencv_highgui.so.%{sover} |
da5d1e09 | 326 | %attr(755,root,root) %ghost %{_libdir}/libopencv_highgui.so.2.4 |
933de752 | 327 | %attr(755,root,root) %{_libdir}/libopencv_legacy.so.%{sover} |
da5d1e09 | 328 | %attr(755,root,root) %ghost %{_libdir}/libopencv_legacy.so.2.4 |
933de752 | 329 | %attr(755,root,root) %{_libdir}/libopencv_objdetect.so.%{sover} |
da5d1e09 JB |
330 | %attr(755,root,root) %ghost %{_libdir}/libopencv_objdetect.so.2.4 |
331 | %if %{with opencl} | |
332 | %attr(755,root,root) %{_libdir}/libopencv_ocl.so.%{sover} | |
333 | %attr(755,root,root) %ghost %{_libdir}/libopencv_ocl.so.2.4 | |
334 | %endif | |
933de752 | 335 | %attr(755,root,root) %{_libdir}/libopencv_stitching.so.%{sover} |
da5d1e09 | 336 | %attr(755,root,root) %ghost %{_libdir}/libopencv_stitching.so.2.4 |
933de752 | 337 | %attr(755,root,root) %{_libdir}/libopencv_ts.so.%{sover} |
da5d1e09 | 338 | %attr(755,root,root) %ghost %{_libdir}/libopencv_ts.so.2.4 |
933de752 | 339 | %attr(755,root,root) %{_libdir}/libopencv_superres.so.%{sover} |
da5d1e09 | 340 | %attr(755,root,root) %ghost %{_libdir}/libopencv_superres.so.2.4 |
933de752 | 341 | %attr(755,root,root) %{_libdir}/libopencv_videostab.so.%{sover} |
da5d1e09 | 342 | %attr(755,root,root) %ghost %{_libdir}/libopencv_videostab.so.2.4 |
933de752 | 343 | %attr(755,root,root) %{_libdir}/libopencv_gpu.so.%{sover} |
da5d1e09 | 344 | %attr(755,root,root) %ghost %{_libdir}/libopencv_gpu.so.2.4 |
933de752 | 345 | %attr(755,root,root) %{_libdir}/libopencv_nonfree.so.%{sover} |
da5d1e09 | 346 | %attr(755,root,root) %ghost %{_libdir}/libopencv_nonfree.so.2.4 |
452b38e1 | 347 | %dir %{_datadir}/OpenCV |
452b38e1 | 348 | %{_datadir}/OpenCV/haarcascades |
349 | %{_datadir}/OpenCV/lbpcascades | |
901927d3 | 350 | |
933de752 ER |
351 | %files core |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/libopencv_core.so.%{sover} | |
354 | %ghost %{_libdir}/libopencv_core.so.2.4 | |
355 | %attr(755,root,root) %{_libdir}/libopencv_flann.so.%{sover} | |
356 | %ghost %{_libdir}/libopencv_flann.so.2.4 | |
357 | %attr(755,root,root) %{_libdir}/libopencv_imgproc.so.%{sover} | |
358 | %ghost %{_libdir}/libopencv_imgproc.so.2.4 | |
359 | %attr(755,root,root) %{_libdir}/libopencv_ml.so.%{sover} | |
360 | %ghost %{_libdir}/libopencv_ml.so.2.4 | |
361 | %attr(755,root,root) %{_libdir}/libopencv_photo.so.%{sover} | |
362 | %ghost %{_libdir}/libopencv_photo.so.2.4 | |
363 | %attr(755,root,root) %{_libdir}/libopencv_video.so.%{sover} | |
364 | %ghost %{_libdir}/libopencv_video.so.2.4 | |
365 | ||
901927d3 AM |
366 | %files devel |
367 | %defattr(644,root,root,755) | |
0c2d6b7d | 368 | %attr(755,root,root) %{_libdir}/libopencv_*.so |
0e077f8d | 369 | %if %{with java} |
da5d1e09 | 370 | %exclude %{_libdir}/libopencv_java248.so |
0e077f8d | 371 | %endif |
901927d3 | 372 | %{_includedir}/opencv |
509c07dc | 373 | %{_includedir}/opencv2 |
da5d1e09 | 374 | %{_datadir}/OpenCV/OpenCV*.cmake |
0c2d6b7d | 375 | %{_pkgconfigdir}/opencv.pc |
901927d3 | 376 | |
9141b1e2 ER |
377 | %files doc |
378 | %defattr(644,root,root,755) | |
379 | # TODO: probably could rebuild them and package via make install | |
380 | %doc doc/* | |
381 | ||
b07433c6 JB |
382 | %if %{with java} |
383 | %files -n java-opencv | |
384 | %defattr(644,root,root,755) | |
da5d1e09 JB |
385 | %attr(755,root,root) %{_libdir}/libopencv_java248.so |
386 | %{_javadir}/opencv-248.jar | |
b07433c6 JB |
387 | %{_javadir}/opencv.jar |
388 | %endif | |
389 | ||
901927d3 AM |
390 | %files -n python-opencv |
391 | %defattr(644,root,root,755) | |
452b38e1 | 392 | %attr(755,root,root) %{py_sitedir}/cv2.so |
8d499a62 | 393 | %{py_sitedir}/cv.py[co] |