]>
Commit | Line | Data |
---|---|---|
b238f81f | 1 | # NOTE: cineon plugin is not built (code not updated) |
20734182 JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | %bcond_without tbb # Threading Building Blocks | |
6 | # | |
7 | Summary: Library for reading and writing images | |
8 | Summary(pl.UTF-8): Biblioteka do odczytu i zapisu obrazów | |
9 | Name: OpenImageIO | |
10 | Version: 0.10.3 | |
3af45876 | 11 | Release: 3 |
20734182 JB |
12 | License: BSD |
13 | Group: Libraries | |
14 | Source0: https://github.com/OpenImageIO/oiio/tarball/Release-%{version}#/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 20c0867864ee6b1cfccc45a0460c12bc | |
16 | Patch0: %{name}-soname.patch | |
17 | Patch1: %{name}-python.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 | |
39 | BuildRequires: libjpeg-devel | |
40 | BuildRequires: libpng-devel | |
41 | BuildRequires: libtiff-devel | |
d46df4d1 | 42 | BuildRequires: ptex-devel >= 2 |
20734182 | 43 | BuildRequires: python-devel >= 1:2.6 |
fc6d7d67 | 44 | BuildRequires: squish-devel >= 1.10 |
20734182 JB |
45 | %{?with_tbb:BuildRequires: tbb-devel} |
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 | ||
fc6d7d67 JB |
84 | %package plugin-dds |
85 | Summary: DDS plugin for OpenImageIO library | |
86 | Summary(pl.UTF-8): Wtyczka DDS dla biblioteki OpenImageIO | |
87 | Group: Libraries | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | Requires: squish >= 1.10 | |
90 | ||
91 | %description plugin-dds | |
d46df4d1 | 92 | OpenImageIO plugin to read DDS files. |
fc6d7d67 JB |
93 | |
94 | %description plugin-dds -l pl.UTF-8 | |
d46df4d1 | 95 | Wtyczka biblioteki OpenImageIO czytająca pliki DDS. |
fc6d7d67 | 96 | |
b238f81f JB |
97 | %package plugin-dpx |
98 | Summary: DPX plugin for OpenImageIO library | |
99 | Summary(pl.UTF-8): Wtyczka DPX dla biblioteki OpenImageIO | |
100 | Group: Libraries | |
101 | Requires: %{name} = %{version}-%{release} | |
102 | ||
103 | %description plugin-dpx | |
104 | OpenImageIO plugin to read and write DPX files. | |
105 | ||
106 | %description plugin-dpx -l pl.UTF-8 | |
107 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki DPX. | |
108 | ||
8a5e279e JB |
109 | %package plugin-field3d |
110 | Summary: Field3D plugin for OpenImageIO library | |
111 | Summary(pl.UTF-8): Wtyczka Field3D dla biblioteki OpenImageIO | |
112 | Group: Libraries | |
113 | Requires: %{name} = %{version}-%{release} | |
114 | ||
115 | %description plugin-field3d | |
d46df4d1 | 116 | OpenImageIO plugin to read Field3D files. |
8a5e279e JB |
117 | |
118 | %description plugin-field3d -l pl.UTF-8 | |
d46df4d1 | 119 | Wtyczka biblioteki OpenImageIO czytająca pliki Field3D. |
8a5e279e | 120 | |
20734182 JB |
121 | %package plugin-ico |
122 | Summary: ICO plugin for OpenImageIO library | |
123 | Summary(pl.UTF-8): Wtyczka ICO dla biblioteki OpenImageIO | |
124 | Group: Libraries | |
125 | Requires: %{name} = %{version}-%{release} | |
126 | ||
127 | %description plugin-ico | |
128 | OpenImageIO plugin to read and write ICO files. | |
129 | ||
130 | %description plugin-ico -l pl.UTF-8 | |
131 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki ICO. | |
132 | ||
133 | %package plugin-jpeg | |
134 | Summary: JPEG plugin for OpenImageIO library | |
135 | Summary(pl.UTF-8): Wtyczka JPEG dla biblioteki OpenImageIO | |
136 | Group: Libraries | |
137 | Requires: %{name} = %{version}-%{release} | |
138 | ||
139 | %description plugin-jpeg | |
140 | OpenImageIO plugin to read and write JPEG files (with TIFF/EXIF | |
141 | information). | |
142 | ||
143 | %description plugin-jpeg -l pl.UTF-8 | |
144 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG | |
145 | (wraz z informacjami TIFF/EXIF). | |
146 | ||
147 | %package plugin-jpeg2000 | |
148 | Summary: JPEG2000 plugin for OpenImageIO library | |
149 | Summary(pl.UTF-8): Wtyczka JPEG2000 dla biblioteki OpenImageIO | |
150 | Group: Libraries | |
151 | Requires: %{name} = %{version}-%{release} | |
152 | ||
153 | %description plugin-jpeg2000 | |
154 | OpenImageIO plugin to read and write JPEG2000 files. | |
155 | ||
156 | %description plugin-jpeg2000 -l pl.UTF-8 | |
157 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG2000. | |
158 | ||
159 | %package plugin-openexr | |
160 | Summary: OpenEXR plugin for OpenImageIO library | |
161 | Summary(pl.UTF-8): Wtyczka OpenEXR dla biblioteki OpenImageIO | |
162 | Group: Libraries | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | Requires: OpenEXR >= 1.6.1 | |
165 | ||
166 | %description plugin-openexr | |
167 | OpenImageIO plugin to read and write OpenEXR files. | |
168 | ||
169 | %description plugin-openexr -l pl.UTF-8 | |
170 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki OpenEXR. | |
171 | ||
172 | %package plugin-png | |
173 | Summary: PNG plugin for OpenImageIO library | |
174 | Summary(pl.UTF-8): Wtyczka PNG dla biblioteki OpenImageIO | |
175 | Group: Libraries | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | ||
178 | %description plugin-png | |
179 | OpenImageIO plugin to read and write PNG files. | |
180 | ||
181 | %description plugin-png -l pl.UTF-8 | |
182 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PNG. | |
183 | ||
d46df4d1 JB |
184 | %package plugin-ptex |
185 | Summary: Ptex plugin for OpenImageIO library | |
186 | Summary(pl.UTF-8): Wtyczka Ptex dla biblioteki OpenImageIO | |
187 | Group: Libraries | |
188 | Requires: %{name} = %{version}-%{release} | |
189 | Requires: ptex >= 2 | |
190 | ||
191 | %description plugin-ptex | |
192 | OpenImageIO plugin to read Ptex files. | |
193 | ||
194 | %description plugin-ptex -l pl.UTF-8 | |
195 | Wtyczka biblioteki OpenImageIO czytająca pliki Ptex. | |
196 | ||
20734182 JB |
197 | %package plugin-tiff |
198 | Summary: TIFF plugin for OpenImageIO library | |
199 | Summary(pl.UTF-8): Wtyczka TIFF dla biblioteki OpenImageIO | |
200 | Group: Libraries | |
201 | Requires: %{name} = %{version}-%{release} | |
202 | ||
203 | %description plugin-tiff | |
204 | OpenImageIO plugin to read and write TIFF files. | |
205 | ||
206 | %description plugin-tiff -l pl.UTF-8 | |
207 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki TIFF. | |
208 | ||
209 | %package apidocs | |
210 | Summary: Programmer documentation for OpenImageIO library | |
211 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki OpenImageIO | |
212 | Group: Documentation | |
213 | ||
214 | %description apidocs | |
215 | Programmer documentation for OpenImageIO library. | |
216 | ||
217 | %description apidocs -l pl.UTF-8 | |
218 | Dokumentacja programisty do biblioteki OpenImageIO. | |
219 | ||
220 | %package iv | |
221 | Summary: Qt/OpenImageIO-based Image Viewer | |
222 | Summary(pl.UTF-8): Przeglądarka obrazków (IV) oparta o Qt i OpenImageIO | |
223 | Group: X11/Applications/Graphics | |
224 | Requires: %{name} = %{version}-%{release} | |
225 | Requires: glew >= 1.5.1 | |
226 | ||
227 | %description iv | |
228 | IV is an image viewer based on ImageIO plugins; therefore it can read | |
229 | images of any format for which an appropriate plugin may be found. | |
230 | ||
231 | %description iv -l pl.UTF-8 | |
232 | IV to przeglądarka obrazków oparta na wtyczkach ImageIO; dzięki temu | |
233 | jest w stanie odczytać obrazy w dowolnym formacie, dla którego | |
234 | istnieje właściwa wtyczka. | |
235 | ||
236 | %package -n python-OpenImageIO | |
237 | Summary: Python binding for OpenImageIO library | |
238 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenImageIO | |
239 | Group: Libraries/Python | |
240 | Requires: %{name} = %{version}-%{release} | |
241 | ||
242 | %description -n python-OpenImageIO | |
243 | Python binding for OpenImageIO library. | |
244 | ||
245 | %description -n python-OpenImageIO -l pl.UTF-8 | |
246 | Wiązanie Pythona do biblioteki OpenImageIO. | |
247 | ||
248 | %prep | |
249 | %setup -q -n OpenImageIO-oiio-7d98ca6 | |
250 | %patch0 -p1 | |
251 | %patch1 -p1 | |
8a5e279e | 252 | %patch2 -p1 |
fc6d7d67 | 253 | %patch3 -p1 |
d46df4d1 | 254 | %patch4 -p1 |
b238f81f JB |
255 | %patch5 -p1 |
256 | %patch6 -p1 | |
fc6d7d67 | 257 | |
d46df4d1 | 258 | %{__rm} -r src/dds.imageio/squish src/ptex.imageio/ptex |
20734182 JB |
259 | |
260 | %build | |
261 | install -d build | |
262 | cd build | |
263 | %cmake ../src \ | |
264 | -DEMBEDPLUGINS=OFF \ | |
20734182 JB |
265 | -DPYLIBDIR=%{py_sitedir} \ |
266 | -DPYTHON_VERSION=%{py_ver} \ | |
20734182 | 267 | %{!?with_tbb:-DUSE_TBB=OFF} \ |
20734182 JB |
268 | |
269 | %{__make} | |
270 | ||
271 | %install | |
272 | rm -rf $RPM_BUILD_ROOT | |
273 | ||
274 | %{__make} -C build install \ | |
275 | DESTDIR=$RPM_BUILD_ROOT | |
276 | ||
277 | # name clash with iv | |
278 | mv -f $RPM_BUILD_ROOT%{_bindir}/{iv,oiiv} | |
279 | ||
280 | %{__rm} $RPM_BUILD_ROOT%{_prefix}/{CHANGES,INSTALL,LICENSE} | |
281 | %{__rm} $RPM_BUILD_ROOT%{_prefix}/doc/{CLA-*,openimageio.pdf} | |
282 | ||
283 | %clean | |
284 | rm -rf $RPM_BUILD_ROOT | |
285 | ||
286 | %post -p /sbin/ldconfig | |
287 | %postun -p /sbin/ldconfig | |
288 | ||
289 | %files | |
290 | %defattr(644,root,root,755) | |
291 | %doc CHANGES CREDITS LICENSE README | |
292 | %attr(755,root,root) %{_bindir}/iconvert | |
293 | %attr(755,root,root) %{_bindir}/idiff | |
294 | %attr(755,root,root) %{_bindir}/igrep | |
295 | %attr(755,root,root) %{_bindir}/iinfo | |
296 | %attr(755,root,root) %{_bindir}/iprocess | |
297 | %attr(755,root,root) %{_bindir}/maketx | |
298 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so.*.*.* | |
299 | %attr(755,root,root) %ghost %{_libdir}/libOpenImageIO.so.0 | |
300 | %attr(755,root,root) %{_libdir}/bmp.imageio.so | |
20734182 JB |
301 | %attr(755,root,root) %{_libdir}/fits.imageio.so |
302 | %attr(755,root,root) %{_libdir}/hdr.imageio.so | |
303 | %attr(755,root,root) %{_libdir}/pnm.imageio.so | |
20734182 JB |
304 | %attr(755,root,root) %{_libdir}/sgi.imageio.so |
305 | %attr(755,root,root) %{_libdir}/socket.imageio.so | |
306 | %attr(755,root,root) %{_libdir}/softimage.imageio.so | |
307 | %attr(755,root,root) %{_libdir}/targa.imageio.so | |
308 | %attr(755,root,root) %{_libdir}/zfile.imageio.so | |
309 | ||
310 | %files devel | |
311 | %defattr(644,root,root,755) | |
312 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so | |
313 | %{_includedir}/OpenImageIO | |
314 | ||
fc6d7d67 JB |
315 | %files plugin-dds |
316 | %defattr(644,root,root,755) | |
317 | %attr(755,root,root) %{_libdir}/dds.imageio.so | |
318 | ||
b238f81f JB |
319 | %files plugin-dpx |
320 | %defattr(644,root,root,755) | |
321 | %attr(755,root,root) %{_libdir}/dpx.imageio.so | |
322 | ||
8a5e279e JB |
323 | %files plugin-field3d |
324 | %defattr(644,root,root,755) | |
325 | %attr(755,root,root) %{_libdir}/field3d.imageio.so | |
326 | ||
20734182 JB |
327 | %files plugin-ico |
328 | %defattr(644,root,root,755) | |
329 | %attr(755,root,root) %{_libdir}/ico.imageio.so | |
330 | ||
331 | %files plugin-jpeg | |
332 | %defattr(644,root,root,755) | |
333 | %attr(755,root,root) %{_libdir}/jpeg.imageio.so | |
334 | ||
335 | %files plugin-jpeg2000 | |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/jpeg2000.imageio.so | |
338 | ||
339 | %files plugin-openexr | |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_libdir}/openexr.imageio.so | |
342 | ||
343 | %files plugin-png | |
344 | %defattr(644,root,root,755) | |
345 | %attr(755,root,root) %{_libdir}/png.imageio.so | |
346 | ||
d46df4d1 JB |
347 | %files plugin-ptex |
348 | %defattr(644,root,root,755) | |
349 | %attr(755,root,root) %{_libdir}/ptex.imageio.so | |
350 | ||
20734182 JB |
351 | %files plugin-tiff |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/tiff.imageio.so | |
354 | ||
355 | %files apidocs | |
356 | %defattr(644,root,root,755) | |
357 | %doc src/doc/openimageio.pdf | |
358 | ||
359 | %files iv | |
360 | %defattr(644,root,root,755) | |
361 | %attr(755,root,root) %{_bindir}/oiiv | |
362 | ||
363 | %files -n python-OpenImageIO | |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{py_sitedir}/OpenImageIO.so |