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