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