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