]>
Commit | Line | Data |
---|---|---|
20734182 JB |
1 | # Conditional build: |
2 | %bcond_without static_libs # don't build static libraries | |
3 | %bcond_without tbb # Threading Building Blocks | |
4 | # | |
5 | Summary: Library for reading and writing images | |
6 | Summary(pl.UTF-8): Biblioteka do odczytu i zapisu obrazów | |
7 | Name: OpenImageIO | |
907ca7e3 | 8 | Version: 1.0.7 |
725e24e0 | 9 | Release: 3 |
20734182 JB |
10 | License: BSD |
11 | Group: Libraries | |
12 | Source0: https://github.com/OpenImageIO/oiio/tarball/Release-%{version}#/%{name}-%{version}.tar.gz | |
5fbc5d86 | 13 | # Source0-md5: e939f97db2b0cac813c9e166f2353fe6 |
40b0de7c | 14 | Patch0: %{name}-link.patch |
8a5e279e | 15 | Patch2: %{name}-hdf.patch |
fc6d7d67 | 16 | Patch3: %{name}-system-squish.patch |
d46df4d1 | 17 | Patch4: %{name}-system-ptex.patch |
b238f81f JB |
18 | Patch5: %{name}-system-dpx.patch |
19 | Patch6: %{name}-system-libcineon.patch | |
725e24e0 | 20 | Patch7: no-gcc-atomics.patch |
20734182 | 21 | URL: https://sites.google.com/site/openimageio/home |
8a5e279e | 22 | BuildRequires: Field3D-devel |
20734182 JB |
23 | BuildRequires: OpenEXR-devel >= 1.6.1 |
24 | BuildRequires: OpenGL-devel | |
25 | BuildRequires: QtCore-devel | |
26 | BuildRequires: QtGui-devel | |
27 | BuildRequires: QtOpenGL-devel | |
28 | # filesystem, regex, system, thread | |
29 | BuildRequires: boost-devel >= 1.35 | |
30 | BuildRequires: boost-python-devel >= 1.35 | |
31 | BuildRequires: cmake >= 2.6 | |
b238f81f | 32 | BuildRequires: dpx-devel |
20734182 | 33 | BuildRequires: glew-devel >= 1.5.1 |
8a5e279e | 34 | BuildRequires: hdf5-devel |
20734182 JB |
35 | BuildRequires: ilmbase-devel >= 1.0.1 |
36 | BuildRequires: jasper-devel | |
e83a6d4b | 37 | BuildRequires: libcineon-devel |
20734182 JB |
38 | BuildRequires: libjpeg-devel |
39 | BuildRequires: libpng-devel | |
40 | BuildRequires: libtiff-devel | |
cf6fcddf | 41 | BuildRequires: libwebp-devel |
d46df4d1 | 42 | BuildRequires: ptex-devel >= 2 |
20734182 | 43 | BuildRequires: python-devel >= 1:2.6 |
fc6d7d67 | 44 | BuildRequires: squish-devel >= 1.10 |
20734182 | 45 | %{?with_tbb:BuildRequires: tbb-devel} |
5bef7fef | 46 | BuildRequires: txt2man |
20734182 JB |
47 | BuildRequires: zlib-devel |
48 | Requires: ilmbase >= 1.0.1 | |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | %description | |
52 | OpenImageIO is a library for reading and writing images, and a bunch | |
53 | of related classes, utilities, and applications. It has extremely | |
54 | simple but powerful ImageInput and ImageOutput APIs for reading and | |
55 | writing 2D images that is format agnostic; specific formats are | |
56 | implemented by DLL/DSO plugins. | |
57 | ||
58 | Currently there are format plugins for: TIFF, JPEG/JFIF, OpenEXR, PNG, | |
59 | HDR/RGBE, Targa, JPEG-2000, DPX, Cineon, FITS, BMP, ICO, RMan Zfile, | |
60 | Softimage PIC, DDS, SGI, PNM/PPM/PGM/PBM, Field3d, WebP. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | OpenImageIO to biblioteka do odczytu i zapisu obrazów oraz wiele | |
64 | powiązanych klas, narzędzi i aplikacji. Ma bardzo proste, ale mające | |
65 | wiele możliwości API ImageInput i ImageOutput służące do odczytu i | |
66 | zapisu obrazów 2D, które jest niezależne od formatu; konkretne formaty | |
67 | są implementowane przez wtyczki DLL/DSO. | |
68 | ||
69 | Obecnie istnieją wtyczki obsługujące formaty: TIFF, JPEG/JFIF, | |
70 | OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000, DPX, Cineon, FITS, BMP, ICO, | |
71 | RMan Zfile, Softimage PIC, DDS, SGI, PNM/PPM/PGM/PBM, Field3d, WebP. | |
72 | ||
73 | %package devel | |
74 | Summary: Header files for OpenImageIO library | |
75 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenImageIO | |
76 | Group: Development/Libraries | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description devel | |
80 | Header files for OpenImageIO library. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Pliki nagłówkowe biblioteki OpenImageIO. | |
84 | ||
52005a92 JR |
85 | %package plugin-cineon |
86 | Summary: Cineon plugin for OpenImageIO library | |
87 | Summary(pl.UTF-8): Wtyczka Cineon dla biblioteki OpenImageIO | |
88 | Group: Libraries | |
89 | Requires: %{name} = %{version}-%{release} | |
90 | ||
91 | %description plugin-cineon | |
92 | OpenImageIO plugin to read Cineon files. | |
93 | ||
94 | %description plugin-cineon -l pl.UTF-8 | |
95 | Wtyczka biblioteki OpenImageIO czytająca pliki Cineon. | |
96 | ||
fc6d7d67 JB |
97 | %package plugin-dds |
98 | Summary: DDS plugin for OpenImageIO library | |
99 | Summary(pl.UTF-8): Wtyczka DDS dla biblioteki OpenImageIO | |
100 | Group: Libraries | |
101 | Requires: %{name} = %{version}-%{release} | |
102 | Requires: squish >= 1.10 | |
103 | ||
104 | %description plugin-dds | |
d46df4d1 | 105 | OpenImageIO plugin to read DDS files. |
fc6d7d67 JB |
106 | |
107 | %description plugin-dds -l pl.UTF-8 | |
d46df4d1 | 108 | Wtyczka biblioteki OpenImageIO czytająca pliki DDS. |
fc6d7d67 | 109 | |
b238f81f JB |
110 | %package plugin-dpx |
111 | Summary: DPX plugin for OpenImageIO library | |
112 | Summary(pl.UTF-8): Wtyczka DPX dla biblioteki OpenImageIO | |
113 | Group: Libraries | |
114 | Requires: %{name} = %{version}-%{release} | |
115 | ||
116 | %description plugin-dpx | |
117 | OpenImageIO plugin to read and write DPX files. | |
118 | ||
119 | %description plugin-dpx -l pl.UTF-8 | |
120 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki DPX. | |
121 | ||
8a5e279e JB |
122 | %package plugin-field3d |
123 | Summary: Field3D plugin for OpenImageIO library | |
124 | Summary(pl.UTF-8): Wtyczka Field3D dla biblioteki OpenImageIO | |
125 | Group: Libraries | |
126 | Requires: %{name} = %{version}-%{release} | |
127 | ||
128 | %description plugin-field3d | |
d46df4d1 | 129 | OpenImageIO plugin to read Field3D files. |
8a5e279e JB |
130 | |
131 | %description plugin-field3d -l pl.UTF-8 | |
d46df4d1 | 132 | Wtyczka biblioteki OpenImageIO czytająca pliki Field3D. |
8a5e279e | 133 | |
20734182 JB |
134 | %package plugin-ico |
135 | Summary: ICO plugin for OpenImageIO library | |
136 | Summary(pl.UTF-8): Wtyczka ICO dla biblioteki OpenImageIO | |
137 | Group: Libraries | |
138 | Requires: %{name} = %{version}-%{release} | |
139 | ||
140 | %description plugin-ico | |
141 | OpenImageIO plugin to read and write ICO files. | |
142 | ||
143 | %description plugin-ico -l pl.UTF-8 | |
144 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki ICO. | |
145 | ||
146 | %package plugin-jpeg | |
147 | Summary: JPEG plugin for OpenImageIO library | |
148 | Summary(pl.UTF-8): Wtyczka JPEG dla biblioteki OpenImageIO | |
149 | Group: Libraries | |
150 | Requires: %{name} = %{version}-%{release} | |
151 | ||
152 | %description plugin-jpeg | |
153 | OpenImageIO plugin to read and write JPEG files (with TIFF/EXIF | |
154 | information). | |
155 | ||
156 | %description plugin-jpeg -l pl.UTF-8 | |
157 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG | |
158 | (wraz z informacjami TIFF/EXIF). | |
159 | ||
160 | %package plugin-jpeg2000 | |
161 | Summary: JPEG2000 plugin for OpenImageIO library | |
162 | Summary(pl.UTF-8): Wtyczka JPEG2000 dla biblioteki OpenImageIO | |
163 | Group: Libraries | |
164 | Requires: %{name} = %{version}-%{release} | |
165 | ||
166 | %description plugin-jpeg2000 | |
167 | OpenImageIO plugin to read and write JPEG2000 files. | |
168 | ||
169 | %description plugin-jpeg2000 -l pl.UTF-8 | |
170 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG2000. | |
171 | ||
172 | %package plugin-openexr | |
173 | Summary: OpenEXR plugin for OpenImageIO library | |
174 | Summary(pl.UTF-8): Wtyczka OpenEXR dla biblioteki OpenImageIO | |
175 | Group: Libraries | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | Requires: OpenEXR >= 1.6.1 | |
178 | ||
179 | %description plugin-openexr | |
180 | OpenImageIO plugin to read and write OpenEXR files. | |
181 | ||
182 | %description plugin-openexr -l pl.UTF-8 | |
183 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki OpenEXR. | |
184 | ||
185 | %package plugin-png | |
186 | Summary: PNG plugin for OpenImageIO library | |
187 | Summary(pl.UTF-8): Wtyczka PNG dla biblioteki OpenImageIO | |
188 | Group: Libraries | |
189 | Requires: %{name} = %{version}-%{release} | |
190 | ||
191 | %description plugin-png | |
192 | OpenImageIO plugin to read and write PNG files. | |
193 | ||
194 | %description plugin-png -l pl.UTF-8 | |
195 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PNG. | |
196 | ||
52005a92 JR |
197 | %package plugin-psd |
198 | Summary: PSD plugin for OpenImageIO library | |
199 | Summary(pl.UTF-8): Wtyczka PSD dla biblioteki OpenImageIO | |
200 | Group: Libraries | |
201 | Requires: %{name} = %{version}-%{release} | |
202 | ||
203 | %description plugin-psd | |
204 | OpenImageIO plugin to read and write PSD files. | |
205 | ||
206 | %description plugin-psd -l pl.UTF-8 | |
207 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PSD. | |
208 | ||
d46df4d1 JB |
209 | %package plugin-ptex |
210 | Summary: Ptex plugin for OpenImageIO library | |
211 | Summary(pl.UTF-8): Wtyczka Ptex dla biblioteki OpenImageIO | |
212 | Group: Libraries | |
213 | Requires: %{name} = %{version}-%{release} | |
214 | Requires: ptex >= 2 | |
215 | ||
216 | %description plugin-ptex | |
217 | OpenImageIO plugin to read Ptex files. | |
218 | ||
219 | %description plugin-ptex -l pl.UTF-8 | |
220 | Wtyczka biblioteki OpenImageIO czytająca pliki Ptex. | |
221 | ||
cf6fcddf JR |
222 | %package plugin-webp |
223 | Summary: WebP plugin for OpenImageIO library | |
224 | Summary(pl.UTF-8): Wtyczka WebP dla biblioteki OpenImageIO | |
225 | Group: Libraries | |
226 | Requires: %{name} = %{version}-%{release} | |
227 | ||
228 | %description plugin-webp | |
229 | OpenImageIO plugin to read and write WebP files. | |
230 | ||
231 | %description plugin-webp -l pl.UTF-8 | |
232 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki WebP. | |
233 | ||
20734182 JB |
234 | %package plugin-tiff |
235 | Summary: TIFF plugin for OpenImageIO library | |
236 | Summary(pl.UTF-8): Wtyczka TIFF dla biblioteki OpenImageIO | |
237 | Group: Libraries | |
238 | Requires: %{name} = %{version}-%{release} | |
239 | ||
240 | %description plugin-tiff | |
241 | OpenImageIO plugin to read and write TIFF files. | |
242 | ||
243 | %description plugin-tiff -l pl.UTF-8 | |
244 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki TIFF. | |
245 | ||
246 | %package apidocs | |
247 | Summary: Programmer documentation for OpenImageIO library | |
248 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki OpenImageIO | |
249 | Group: Documentation | |
250 | ||
251 | %description apidocs | |
252 | Programmer documentation for OpenImageIO library. | |
253 | ||
254 | %description apidocs -l pl.UTF-8 | |
255 | Dokumentacja programisty do biblioteki OpenImageIO. | |
256 | ||
257 | %package iv | |
258 | Summary: Qt/OpenImageIO-based Image Viewer | |
259 | Summary(pl.UTF-8): Przeglądarka obrazków (IV) oparta o Qt i OpenImageIO | |
260 | Group: X11/Applications/Graphics | |
261 | Requires: %{name} = %{version}-%{release} | |
262 | Requires: glew >= 1.5.1 | |
263 | ||
264 | %description iv | |
265 | IV is an image viewer based on ImageIO plugins; therefore it can read | |
266 | images of any format for which an appropriate plugin may be found. | |
267 | ||
268 | %description iv -l pl.UTF-8 | |
269 | IV to przeglądarka obrazków oparta na wtyczkach ImageIO; dzięki temu | |
270 | jest w stanie odczytać obrazy w dowolnym formacie, dla którego | |
271 | istnieje właściwa wtyczka. | |
272 | ||
273 | %package -n python-OpenImageIO | |
274 | Summary: Python binding for OpenImageIO library | |
275 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenImageIO | |
276 | Group: Libraries/Python | |
277 | Requires: %{name} = %{version}-%{release} | |
278 | ||
279 | %description -n python-OpenImageIO | |
280 | Python binding for OpenImageIO library. | |
281 | ||
282 | %description -n python-OpenImageIO -l pl.UTF-8 | |
283 | Wiązanie Pythona do biblioteki OpenImageIO. | |
284 | ||
285 | %prep | |
9fcb7f94 | 286 | %setup -q -n OpenImageIO-oiio-e9fa4c7 |
40b0de7c | 287 | %patch0 -p1 |
8a5e279e | 288 | %patch2 -p1 |
fc6d7d67 | 289 | %patch3 -p1 |
d46df4d1 | 290 | %patch4 -p1 |
b238f81f JB |
291 | %patch5 -p1 |
292 | %patch6 -p1 | |
725e24e0 JR |
293 | %ifarch i486 |
294 | %patch7 -p1 | |
295 | %endif | |
fc6d7d67 | 296 | |
d46df4d1 | 297 | %{__rm} -r src/dds.imageio/squish src/ptex.imageio/ptex |
20734182 JB |
298 | |
299 | %build | |
300 | install -d build | |
301 | cd build | |
302 | %cmake ../src \ | |
303 | -DEMBEDPLUGINS=OFF \ | |
52005a92 JR |
304 | -DPYLIB_INSTALL_DIR=%{py_sitedir} \ |
305 | -DINCLUDE_INSTALL_DIR=%{_includedir}/%{name} \ | |
20734182 | 306 | -DPYTHON_VERSION=%{py_ver} \ |
20734182 | 307 | %{!?with_tbb:-DUSE_TBB=OFF} \ |
20734182 JB |
308 | |
309 | %{__make} | |
310 | ||
311 | %install | |
312 | rm -rf $RPM_BUILD_ROOT | |
313 | ||
314 | %{__make} -C build install \ | |
315 | DESTDIR=$RPM_BUILD_ROOT | |
316 | ||
317 | # name clash with iv | |
40b0de7c | 318 | %{__mv} -f $RPM_BUILD_ROOT%{_bindir}/{iv,oiiv} |
5bef7fef | 319 | %{__mv} -f $RPM_BUILD_ROOT%{_mandir}/man1/{iv,oiiv}.1 |
20734182 | 320 | |
52005a92 JR |
321 | # installed as %doc |
322 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/openimageio | |
323 | ||
20734182 JB |
324 | %clean |
325 | rm -rf $RPM_BUILD_ROOT | |
326 | ||
327 | %post -p /sbin/ldconfig | |
328 | %postun -p /sbin/ldconfig | |
329 | ||
330 | %files | |
331 | %defattr(644,root,root,755) | |
332 | %doc CHANGES CREDITS LICENSE README | |
333 | %attr(755,root,root) %{_bindir}/iconvert | |
334 | %attr(755,root,root) %{_bindir}/idiff | |
335 | %attr(755,root,root) %{_bindir}/igrep | |
336 | %attr(755,root,root) %{_bindir}/iinfo | |
337 | %attr(755,root,root) %{_bindir}/iprocess | |
338 | %attr(755,root,root) %{_bindir}/maketx | |
52005a92 | 339 | %attr(755,root,root) %{_bindir}/oiiotool |
20734182 | 340 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so.*.*.* |
40b0de7c | 341 | %attr(755,root,root) %ghost %{_libdir}/libOpenImageIO.so.1.0 |
20734182 | 342 | %attr(755,root,root) %{_libdir}/bmp.imageio.so |
20734182 JB |
343 | %attr(755,root,root) %{_libdir}/fits.imageio.so |
344 | %attr(755,root,root) %{_libdir}/hdr.imageio.so | |
52005a92 | 345 | %attr(755,root,root) %{_libdir}/iff.imageio.so |
20734182 | 346 | %attr(755,root,root) %{_libdir}/pnm.imageio.so |
52005a92 | 347 | %attr(755,root,root) %{_libdir}/rla.imageio.so |
20734182 JB |
348 | %attr(755,root,root) %{_libdir}/sgi.imageio.so |
349 | %attr(755,root,root) %{_libdir}/socket.imageio.so | |
350 | %attr(755,root,root) %{_libdir}/softimage.imageio.so | |
351 | %attr(755,root,root) %{_libdir}/targa.imageio.so | |
352 | %attr(755,root,root) %{_libdir}/zfile.imageio.so | |
5bef7fef JR |
353 | %{_mandir}/man1/iconvert.1* |
354 | %{_mandir}/man1/idiff.1* | |
355 | %{_mandir}/man1/igrep.1* | |
356 | %{_mandir}/man1/iinfo.1* | |
357 | %{_mandir}/man1/iprocess.1* | |
358 | %{_mandir}/man1/maketx.1* | |
359 | %{_mandir}/man1/oiiotool.1* | |
20734182 JB |
360 | |
361 | %files devel | |
362 | %defattr(644,root,root,755) | |
363 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so | |
364 | %{_includedir}/OpenImageIO | |
365 | ||
52005a92 JR |
366 | %files plugin-cineon |
367 | %defattr(644,root,root,755) | |
368 | %attr(755,root,root) %{_libdir}/cineon.imageio.so | |
369 | ||
fc6d7d67 JB |
370 | %files plugin-dds |
371 | %defattr(644,root,root,755) | |
372 | %attr(755,root,root) %{_libdir}/dds.imageio.so | |
373 | ||
b238f81f JB |
374 | %files plugin-dpx |
375 | %defattr(644,root,root,755) | |
376 | %attr(755,root,root) %{_libdir}/dpx.imageio.so | |
377 | ||
8a5e279e JB |
378 | %files plugin-field3d |
379 | %defattr(644,root,root,755) | |
380 | %attr(755,root,root) %{_libdir}/field3d.imageio.so | |
381 | ||
20734182 JB |
382 | %files plugin-ico |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{_libdir}/ico.imageio.so | |
385 | ||
386 | %files plugin-jpeg | |
387 | %defattr(644,root,root,755) | |
388 | %attr(755,root,root) %{_libdir}/jpeg.imageio.so | |
389 | ||
390 | %files plugin-jpeg2000 | |
391 | %defattr(644,root,root,755) | |
392 | %attr(755,root,root) %{_libdir}/jpeg2000.imageio.so | |
393 | ||
394 | %files plugin-openexr | |
395 | %defattr(644,root,root,755) | |
396 | %attr(755,root,root) %{_libdir}/openexr.imageio.so | |
397 | ||
398 | %files plugin-png | |
399 | %defattr(644,root,root,755) | |
400 | %attr(755,root,root) %{_libdir}/png.imageio.so | |
401 | ||
52005a92 JR |
402 | %files plugin-psd |
403 | %defattr(644,root,root,755) | |
404 | %attr(755,root,root) %{_libdir}/psd.imageio.so | |
405 | ||
d46df4d1 JB |
406 | %files plugin-ptex |
407 | %defattr(644,root,root,755) | |
408 | %attr(755,root,root) %{_libdir}/ptex.imageio.so | |
409 | ||
20734182 JB |
410 | %files plugin-tiff |
411 | %defattr(644,root,root,755) | |
412 | %attr(755,root,root) %{_libdir}/tiff.imageio.so | |
413 | ||
cf6fcddf JR |
414 | %files plugin-webp |
415 | %defattr(644,root,root,755) | |
416 | %attr(755,root,root) %{_libdir}/webp.imageio.so | |
417 | ||
20734182 JB |
418 | %files apidocs |
419 | %defattr(644,root,root,755) | |
420 | %doc src/doc/openimageio.pdf | |
421 | ||
422 | %files iv | |
423 | %defattr(644,root,root,755) | |
424 | %attr(755,root,root) %{_bindir}/oiiv | |
5bef7fef | 425 | %{_mandir}/man1/oiiv.1* |
20734182 JB |
426 | |
427 | %files -n python-OpenImageIO | |
428 | %defattr(644,root,root,755) | |
429 | %attr(755,root,root) %{py_sitedir}/OpenImageIO.so |