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