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