]>
Commit | Line | Data |
---|---|---|
94eab2d4 | 1 | # TODO: |
88c1376f JB |
2 | # - OpenVDB >= 5.0 https://www.openvdb.org/ |
3 | # - Nuke >= 7.0? https://www.foundry.com/products/nuke/ (proprietary) | |
94eab2d4 JB |
4 | # - package fonts? |
5 | # /usr/share/fonts/OpenImageIO/DroidSans-Bold.ttf | |
6 | # /usr/share/fonts/OpenImageIO/DroidSans.ttf | |
7 | # /usr/share/fonts/OpenImageIO/DroidSansMono.ttf | |
8 | # /usr/share/fonts/OpenImageIO/DroidSerif-Bold.ttf | |
9 | # /usr/share/fonts/OpenImageIO/DroidSerif-BoldItalic.ttf | |
10 | # /usr/share/fonts/OpenImageIO/DroidSerif-Italic.ttf | |
11 | # /usr/share/fonts/OpenImageIO/DroidSerif.ttf | |
12 | # | |
4f07e9d7 JB |
13 | # to bootstrap: build OpenColorIO --without oiio, build OpenImageIO, rebuild OpenColorIO |
14 | # | |
20734182 | 15 | # Conditional build: |
4f07e9d7 | 16 | %bcond_without ocio # OpenColorIO support in library |
94eab2d4 | 17 | %bcond_without opencv # OpenCV support in library |
1bdab4db | 18 | %bcond_with tbb # Threading Building Blocks |
20734182 | 19 | # |
9293af1a | 20 | %ifarch i386 i486 |
bfa62346 AM |
21 | # https://github.com/OpenImageIO/oiio/issues/583 |
22 | %undefine with_tbb | |
23 | %endif | |
9293af1a JB |
24 | %ifnarch %{ix86} %{x8664} %{arm} ia64 ppc ppc64 |
25 | %undefine with_tbb | |
26 | %endif | |
bfa62346 | 27 | # |
20734182 JB |
28 | Summary: Library for reading and writing images |
29 | Summary(pl.UTF-8): Biblioteka do odczytu i zapisu obrazów | |
30 | Name: OpenImageIO | |
94eab2d4 | 31 | Version: 2.0.13 |
4eef0e17 | 32 | Release: 6 |
20734182 JB |
33 | License: BSD |
34 | Group: Libraries | |
94eab2d4 JB |
35 | #Source0Download: https://github.com/OpenImageIO/oiio/releases |
36 | Source0: https://github.com/OpenImageIO/oiio/archive/Release-%{version}/%{name}-%{version}.tar.gz | |
37 | # Source0-md5: 76ce4d246409de331ad04453423479bf | |
40b0de7c | 38 | Patch0: %{name}-link.patch |
37fe49bc | 39 | Patch1: %{name}-system-squish.patch |
32c56ab5 JR |
40 | Patch2: %{name}-system-libcineon.patch |
41 | Patch3: no-clang-format.patch | |
32cb9bc6 | 42 | Patch4: tiff_defines.patch |
94eab2d4 | 43 | URL: https://github.com/OpenImageIO/oiio |
8a5e279e | 44 | BuildRequires: Field3D-devel |
4f07e9d7 | 45 | %{?with_ocio:BuildRequires: OpenColorIO-devel} |
94eab2d4 | 46 | BuildRequires: OpenEXR-devel >= 2.0 |
20734182 | 47 | BuildRequires: OpenGL-devel |
88c1376f JB |
48 | BuildRequires: Qt5Core-devel >= 5.6 |
49 | BuildRequires: Qt5Gui-devel >= 5.6 | |
50 | BuildRequires: Qt5OpenGL-devel >= 5.6 | |
51 | BuildRequires: Qt5Widgets-devel >= 5.6 | |
20734182 | 52 | # filesystem, regex, system, thread |
94eab2d4 JB |
53 | BuildRequires: boost-devel >= 1.53 |
54 | BuildRequires: boost-python-devel >= 1.53 | |
55 | BuildRequires: bzip2-devel | |
56 | BuildRequires: cmake >= 3.2.2 | |
57 | BuildRequires: dcmtk-devel >= 3.6.1 | |
58 | BuildRequires: ffmpeg-devel >= 2.6 | |
59 | BuildRequires: freetype-devel >= 2.0 | |
f1d9cbc1 | 60 | BuildRequires: giflib-devel |
20734182 | 61 | BuildRequires: glew-devel >= 1.5.1 |
8a5e279e | 62 | BuildRequires: hdf5-devel |
20734182 JB |
63 | BuildRequires: ilmbase-devel >= 1.0.1 |
64 | BuildRequires: jasper-devel | |
e83a6d4b | 65 | BuildRequires: libcineon-devel |
20734182 JB |
66 | BuildRequires: libjpeg-devel |
67 | BuildRequires: libpng-devel | |
88c1376f | 68 | BuildRequires: libraw-devel >= 0.18 |
94eab2d4 JB |
69 | BuildRequires: libstdc++-devel >= 6:4.7 |
70 | BuildRequires: libtiff-devel >= 3.9 | |
cf6fcddf | 71 | BuildRequires: libwebp-devel |
88c1376f | 72 | %{?with_opencv:BuildRequires: opencv-devel >= 2.0} |
f13815ec | 73 | BuildRequires: openjpeg2-devel >= 2.4 |
ae460afe | 74 | BuildRequires: ptex-devel >= 2.1 |
73eae24f | 75 | BuildRequires: pugixml-devel |
94eab2d4 JB |
76 | BuildRequires: python-devel >= 1:2.7 |
77 | BuildRequires: python-pybind11 >= 2.2.0 | |
32c56ab5 | 78 | BuildRequires: robin-map-devel |
90556a73 | 79 | BuildRequires: rpm-build >= 4.6 |
2026a03f | 80 | BuildRequires: rpmbuild(macros) >= 1.605 |
fc6d7d67 | 81 | BuildRequires: squish-devel >= 1.10 |
88c1376f | 82 | %{?with_tbb:BuildRequires: tbb-devel >= 2018} |
5bef7fef | 83 | BuildRequires: txt2man |
20734182 JB |
84 | BuildRequires: zlib-devel |
85 | Requires: ilmbase >= 1.0.1 | |
86 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
87 | ||
88 | %description | |
89 | OpenImageIO is a library for reading and writing images, and a bunch | |
90 | of related classes, utilities, and applications. It has extremely | |
91 | simple but powerful ImageInput and ImageOutput APIs for reading and | |
92 | writing 2D images that is format agnostic; specific formats are | |
93 | implemented by DLL/DSO plugins. | |
94 | ||
95 | Currently there are format plugins for: TIFF, JPEG/JFIF, OpenEXR, PNG, | |
96 | HDR/RGBE, Targa, JPEG-2000, DPX, Cineon, FITS, BMP, ICO, RMan Zfile, | |
97 | Softimage PIC, DDS, SGI, PNM/PPM/PGM/PBM, Field3d, WebP. | |
98 | ||
99 | %description -l pl.UTF-8 | |
100 | OpenImageIO to biblioteka do odczytu i zapisu obrazów oraz wiele | |
101 | powiązanych klas, narzędzi i aplikacji. Ma bardzo proste, ale mające | |
102 | wiele możliwości API ImageInput i ImageOutput służące do odczytu i | |
103 | zapisu obrazów 2D, które jest niezależne od formatu; konkretne formaty | |
104 | są implementowane przez wtyczki DLL/DSO. | |
105 | ||
106 | Obecnie istnieją wtyczki obsługujące formaty: TIFF, JPEG/JFIF, | |
107 | OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000, DPX, Cineon, FITS, BMP, ICO, | |
108 | RMan Zfile, Softimage PIC, DDS, SGI, PNM/PPM/PGM/PBM, Field3d, WebP. | |
109 | ||
110 | %package devel | |
111 | Summary: Header files for OpenImageIO library | |
112 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenImageIO | |
113 | Group: Development/Libraries | |
114 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 115 | Requires: libstdc++-devel >= 6:4.7 |
20734182 JB |
116 | |
117 | %description devel | |
118 | Header files for OpenImageIO library. | |
119 | ||
120 | %description devel -l pl.UTF-8 | |
121 | Pliki nagłówkowe biblioteki OpenImageIO. | |
122 | ||
52005a92 JR |
123 | %package plugin-cineon |
124 | Summary: Cineon plugin for OpenImageIO library | |
125 | Summary(pl.UTF-8): Wtyczka Cineon dla biblioteki OpenImageIO | |
126 | Group: Libraries | |
127 | Requires: %{name} = %{version}-%{release} | |
128 | ||
129 | %description plugin-cineon | |
130 | OpenImageIO plugin to read Cineon files. | |
131 | ||
132 | %description plugin-cineon -l pl.UTF-8 | |
133 | Wtyczka biblioteki OpenImageIO czytająca pliki Cineon. | |
134 | ||
bce3ea8b JR |
135 | %package plugin-dicom |
136 | Summary: DICOM plugin for OpenImageIO library | |
137 | Summary(pl.UTF-8): Wtyczka DICOM dla biblioteki OpenImageIO | |
138 | Group: Libraries | |
139 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 140 | Requires: dcmtk >= 3.6.1 |
bce3ea8b JR |
141 | Requires: squish >= 1.10 |
142 | ||
143 | %description plugin-dicom | |
144 | OpenImageIO plugin to read DICOM files. | |
145 | ||
146 | %description plugin-dicom -l pl.UTF-8 | |
147 | Wtyczka biblioteki OpenImageIO czytająca pliki DICOM. | |
148 | ||
fc6d7d67 JB |
149 | %package plugin-dds |
150 | Summary: DDS plugin for OpenImageIO library | |
151 | Summary(pl.UTF-8): Wtyczka DDS dla biblioteki OpenImageIO | |
152 | Group: Libraries | |
153 | Requires: %{name} = %{version}-%{release} | |
154 | Requires: squish >= 1.10 | |
155 | ||
156 | %description plugin-dds | |
d46df4d1 | 157 | OpenImageIO plugin to read DDS files. |
fc6d7d67 JB |
158 | |
159 | %description plugin-dds -l pl.UTF-8 | |
d46df4d1 | 160 | Wtyczka biblioteki OpenImageIO czytająca pliki DDS. |
fc6d7d67 | 161 | |
b238f81f JB |
162 | %package plugin-dpx |
163 | Summary: DPX plugin for OpenImageIO library | |
164 | Summary(pl.UTF-8): Wtyczka DPX dla biblioteki OpenImageIO | |
165 | Group: Libraries | |
166 | Requires: %{name} = %{version}-%{release} | |
167 | ||
168 | %description plugin-dpx | |
169 | OpenImageIO plugin to read and write DPX files. | |
170 | ||
171 | %description plugin-dpx -l pl.UTF-8 | |
172 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki DPX. | |
173 | ||
f1d9cbc1 JR |
174 | %package plugin-ffmpeg |
175 | Summary: FFmpeg plugin for OpenImageIO library | |
176 | Summary(pl.UTF-8): Wtyczka FFmpeg dla biblioteki OpenImageIO | |
177 | Group: Libraries | |
178 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 179 | Requires: ffmpeg-libs >= 2.6 |
f1d9cbc1 JR |
180 | |
181 | %description plugin-ffmpeg | |
182 | OpenImageIO plugin to read FFmpeg files. | |
183 | ||
184 | %description plugin-ffmpeg -l pl.UTF-8 | |
185 | Wtyczka biblioteki OpenImageIO czytająca pliki FFmpeg. | |
186 | ||
8a5e279e JB |
187 | %package plugin-field3d |
188 | Summary: Field3D plugin for OpenImageIO library | |
189 | Summary(pl.UTF-8): Wtyczka Field3D dla biblioteki OpenImageIO | |
190 | Group: Libraries | |
191 | Requires: %{name} = %{version}-%{release} | |
192 | ||
193 | %description plugin-field3d | |
d46df4d1 | 194 | OpenImageIO plugin to read Field3D files. |
8a5e279e JB |
195 | |
196 | %description plugin-field3d -l pl.UTF-8 | |
d46df4d1 | 197 | Wtyczka biblioteki OpenImageIO czytająca pliki Field3D. |
8a5e279e | 198 | |
f1d9cbc1 JR |
199 | %package plugin-gif |
200 | Summary: Gif plugin for OpenImageIO library | |
201 | Summary(pl.UTF-8): Wtyczka Gif dla biblioteki OpenImageIO | |
202 | Group: Libraries | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | ||
205 | %description plugin-gif | |
206 | OpenImageIO plugin to read GIF files. | |
207 | ||
208 | %description plugin-gif -l pl.UTF-8 | |
209 | Wtyczka biblioteki OpenImageIO czytająca pliki GIF. | |
210 | ||
20734182 JB |
211 | %package plugin-ico |
212 | Summary: ICO plugin for OpenImageIO library | |
213 | Summary(pl.UTF-8): Wtyczka ICO dla biblioteki OpenImageIO | |
214 | Group: Libraries | |
215 | Requires: %{name} = %{version}-%{release} | |
216 | ||
217 | %description plugin-ico | |
218 | OpenImageIO plugin to read and write ICO files. | |
219 | ||
220 | %description plugin-ico -l pl.UTF-8 | |
221 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki ICO. | |
222 | ||
223 | %package plugin-jpeg | |
224 | Summary: JPEG plugin for OpenImageIO library | |
225 | Summary(pl.UTF-8): Wtyczka JPEG dla biblioteki OpenImageIO | |
226 | Group: Libraries | |
227 | Requires: %{name} = %{version}-%{release} | |
228 | ||
229 | %description plugin-jpeg | |
230 | OpenImageIO plugin to read and write JPEG files (with TIFF/EXIF | |
231 | information). | |
232 | ||
233 | %description plugin-jpeg -l pl.UTF-8 | |
73eae24f ER |
234 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG (wraz |
235 | z informacjami TIFF/EXIF). | |
20734182 JB |
236 | |
237 | %package plugin-jpeg2000 | |
238 | Summary: JPEG2000 plugin for OpenImageIO library | |
239 | Summary(pl.UTF-8): Wtyczka JPEG2000 dla biblioteki OpenImageIO | |
240 | Group: Libraries | |
241 | Requires: %{name} = %{version}-%{release} | |
242 | ||
243 | %description plugin-jpeg2000 | |
244 | OpenImageIO plugin to read and write JPEG2000 files. | |
245 | ||
246 | %description plugin-jpeg2000 -l pl.UTF-8 | |
247 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG2000. | |
248 | ||
249 | %package plugin-openexr | |
250 | Summary: OpenEXR plugin for OpenImageIO library | |
251 | Summary(pl.UTF-8): Wtyczka OpenEXR dla biblioteki OpenImageIO | |
252 | Group: Libraries | |
253 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 254 | Requires: OpenEXR >= 2.0 |
20734182 JB |
255 | |
256 | %description plugin-openexr | |
257 | OpenImageIO plugin to read and write OpenEXR files. | |
258 | ||
259 | %description plugin-openexr -l pl.UTF-8 | |
260 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki OpenEXR. | |
261 | ||
262 | %package plugin-png | |
263 | Summary: PNG plugin for OpenImageIO library | |
264 | Summary(pl.UTF-8): Wtyczka PNG dla biblioteki OpenImageIO | |
265 | Group: Libraries | |
266 | Requires: %{name} = %{version}-%{release} | |
267 | ||
268 | %description plugin-png | |
269 | OpenImageIO plugin to read and write PNG files. | |
270 | ||
271 | %description plugin-png -l pl.UTF-8 | |
272 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PNG. | |
273 | ||
52005a92 JR |
274 | %package plugin-psd |
275 | Summary: PSD plugin for OpenImageIO library | |
276 | Summary(pl.UTF-8): Wtyczka PSD dla biblioteki OpenImageIO | |
277 | Group: Libraries | |
278 | Requires: %{name} = %{version}-%{release} | |
279 | ||
280 | %description plugin-psd | |
281 | OpenImageIO plugin to read and write PSD files. | |
282 | ||
283 | %description plugin-psd -l pl.UTF-8 | |
284 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PSD. | |
285 | ||
d46df4d1 JB |
286 | %package plugin-ptex |
287 | Summary: Ptex plugin for OpenImageIO library | |
288 | Summary(pl.UTF-8): Wtyczka Ptex dla biblioteki OpenImageIO | |
289 | Group: Libraries | |
290 | Requires: %{name} = %{version}-%{release} | |
291 | Requires: ptex >= 2 | |
292 | ||
293 | %description plugin-ptex | |
294 | OpenImageIO plugin to read Ptex files. | |
295 | ||
296 | %description plugin-ptex -l pl.UTF-8 | |
297 | Wtyczka biblioteki OpenImageIO czytająca pliki Ptex. | |
298 | ||
70aab748 JR |
299 | %package plugin-raw |
300 | Summary: RAW plugin for OpenImageIO library | |
301 | Summary(pl.UTF-8): Wtyczka RAW dla biblioteki OpenImageIO | |
302 | Group: Libraries | |
303 | Requires: %{name} = %{version}-%{release} | |
88c1376f | 304 | Requires: libraw >= 0.18 |
70aab748 JR |
305 | |
306 | %description plugin-raw | |
307 | OpenImageIO plugin to readTRAW files. | |
308 | ||
309 | %description plugin-raw -l pl.UTF-8 | |
310 | Wtyczka biblioteki OpenImageIO czytająca pliki RAW. | |
311 | ||
cf6fcddf JR |
312 | %package plugin-webp |
313 | Summary: WebP plugin for OpenImageIO library | |
314 | Summary(pl.UTF-8): Wtyczka WebP dla biblioteki OpenImageIO | |
315 | Group: Libraries | |
316 | Requires: %{name} = %{version}-%{release} | |
317 | ||
318 | %description plugin-webp | |
319 | OpenImageIO plugin to read and write WebP files. | |
320 | ||
321 | %description plugin-webp -l pl.UTF-8 | |
322 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki WebP. | |
323 | ||
20734182 JB |
324 | %package plugin-tiff |
325 | Summary: TIFF plugin for OpenImageIO library | |
326 | Summary(pl.UTF-8): Wtyczka TIFF dla biblioteki OpenImageIO | |
327 | Group: Libraries | |
328 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 329 | Requires: libtiff >= 3.9 |
20734182 JB |
330 | |
331 | %description plugin-tiff | |
332 | OpenImageIO plugin to read and write TIFF files. | |
333 | ||
334 | %description plugin-tiff -l pl.UTF-8 | |
335 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki TIFF. | |
336 | ||
337 | %package apidocs | |
338 | Summary: Programmer documentation for OpenImageIO library | |
339 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki OpenImageIO | |
340 | Group: Documentation | |
73eae24f | 341 | BuildArch: noarch |
20734182 JB |
342 | |
343 | %description apidocs | |
344 | Programmer documentation for OpenImageIO library. | |
345 | ||
346 | %description apidocs -l pl.UTF-8 | |
347 | Dokumentacja programisty do biblioteki OpenImageIO. | |
348 | ||
349 | %package iv | |
350 | Summary: Qt/OpenImageIO-based Image Viewer | |
351 | Summary(pl.UTF-8): Przeglądarka obrazków (IV) oparta o Qt i OpenImageIO | |
352 | Group: X11/Applications/Graphics | |
353 | Requires: %{name} = %{version}-%{release} | |
88c1376f JB |
354 | Requires: Qt5Core >= 5.6 |
355 | Requires: Qt5Gui >= 5.6 | |
356 | Requires: Qt5OpenGL >= 5.6 | |
357 | Requires: Qt5Widgets >= 5.6 | |
20734182 JB |
358 | Requires: glew >= 1.5.1 |
359 | ||
360 | %description iv | |
361 | IV is an image viewer based on ImageIO plugins; therefore it can read | |
362 | images of any format for which an appropriate plugin may be found. | |
363 | ||
364 | %description iv -l pl.UTF-8 | |
365 | IV to przeglądarka obrazków oparta na wtyczkach ImageIO; dzięki temu | |
366 | jest w stanie odczytać obrazy w dowolnym formacie, dla którego | |
367 | istnieje właściwa wtyczka. | |
368 | ||
369 | %package -n python-OpenImageIO | |
370 | Summary: Python binding for OpenImageIO library | |
371 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenImageIO | |
372 | Group: Libraries/Python | |
373 | Requires: %{name} = %{version}-%{release} | |
374 | ||
375 | %description -n python-OpenImageIO | |
376 | Python binding for OpenImageIO library. | |
377 | ||
378 | %description -n python-OpenImageIO -l pl.UTF-8 | |
379 | Wiązanie Pythona do biblioteki OpenImageIO. | |
380 | ||
381 | %prep | |
94eab2d4 | 382 | %setup -q -n oiio-Release-%{version} |
40b0de7c | 383 | %patch0 -p1 |
37fe49bc JR |
384 | %patch1 -p1 |
385 | %patch2 -p1 | |
fc6d7d67 | 386 | %patch3 -p1 |
32cb9bc6 | 387 | %patch4 -p1 |
ae460afe JR |
388 | |
389 | %{__rm} -r src/dds.imageio/squish | |
4f07e9d7 | 390 | # when using system pugixml, don't use hacked headers |
497529b6 | 391 | %{__rm} src/include/OpenImageIO/pugi*.{c,h}pp |
20734182 JB |
392 | |
393 | %build | |
394 | install -d build | |
395 | cd build | |
94eab2d4 JB |
396 | %cmake .. \ |
397 | -DCMAKE_INSTALL_MANDIR=%{_mandir}/man1 \ | |
20734182 | 398 | -DEMBEDPLUGINS=OFF \ |
f13815ec | 399 | -DOPENJPEG_INCLUDE_DIR=%{_includedir}/openjpeg-2.4 \ |
52005a92 | 400 | -DINCLUDE_INSTALL_DIR=%{_includedir}/%{name} \ |
3d853326 | 401 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
94eab2d4 JB |
402 | %ifarch i386 i486 |
403 | -DNOTHREADS=1 \ | |
404 | %endif | |
405 | -DPYBIND11_HOME:PATH=%{py_incdir} \ | |
4f07e9d7 | 406 | -DPYLIB_INSTALL_DIR=%{py_sitedir} \ |
20734182 | 407 | -DPYTHON_VERSION=%{py_ver} \ |
4f07e9d7 | 408 | -DUSE_EXTERNAL_PUGIXML=ON \ |
cb420b0d | 409 | -DSTOP_ON_WARNING=OFF \ |
4f07e9d7 | 410 | %{!?with_ocio:-DUSE_OCIO=OFF} \ |
94eab2d4 | 411 | %{!?with_opencv:-DUSE_OPENCV=OFF} \ |
4f07e9d7 | 412 | %{!?with_tbb:-DUSE_TBB=OFF} |
20734182 JB |
413 | |
414 | %{__make} | |
415 | ||
416 | %install | |
417 | rm -rf $RPM_BUILD_ROOT | |
418 | ||
419 | %{__make} -C build install \ | |
420 | DESTDIR=$RPM_BUILD_ROOT | |
421 | ||
422 | # name clash with iv | |
ae460afe | 423 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{iv,oiiv} |
32c56ab5 | 424 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/{iv,oiiv}.1 |
20734182 | 425 | |
52005a92 | 426 | # installed as %doc |
32c56ab5 | 427 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
52005a92 | 428 | |
20734182 JB |
429 | %clean |
430 | rm -rf $RPM_BUILD_ROOT | |
431 | ||
432 | %post -p /sbin/ldconfig | |
433 | %postun -p /sbin/ldconfig | |
434 | ||
435 | %files | |
436 | %defattr(644,root,root,755) | |
32c56ab5 | 437 | %doc CHANGES.md CREDITS.md LICENSE.md README.md |
20734182 JB |
438 | %attr(755,root,root) %{_bindir}/iconvert |
439 | %attr(755,root,root) %{_bindir}/idiff | |
440 | %attr(755,root,root) %{_bindir}/igrep | |
441 | %attr(755,root,root) %{_bindir}/iinfo | |
20734182 | 442 | %attr(755,root,root) %{_bindir}/maketx |
52005a92 | 443 | %attr(755,root,root) %{_bindir}/oiiotool |
20734182 | 444 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so.*.*.* |
32c56ab5 | 445 | %attr(755,root,root) %ghost %{_libdir}/libOpenImageIO.so.2.0 |
70aab748 | 446 | %attr(755,root,root) %{_libdir}/libOpenImageIO_Util.so.*.*.* |
32c56ab5 | 447 | %attr(755,root,root) %ghost %{_libdir}/libOpenImageIO_Util.so.2.0 |
20734182 | 448 | %attr(755,root,root) %{_libdir}/bmp.imageio.so |
20734182 JB |
449 | %attr(755,root,root) %{_libdir}/fits.imageio.so |
450 | %attr(755,root,root) %{_libdir}/hdr.imageio.so | |
52005a92 | 451 | %attr(755,root,root) %{_libdir}/iff.imageio.so |
20734182 | 452 | %attr(755,root,root) %{_libdir}/pnm.imageio.so |
52005a92 | 453 | %attr(755,root,root) %{_libdir}/rla.imageio.so |
20734182 JB |
454 | %attr(755,root,root) %{_libdir}/sgi.imageio.so |
455 | %attr(755,root,root) %{_libdir}/socket.imageio.so | |
456 | %attr(755,root,root) %{_libdir}/softimage.imageio.so | |
457 | %attr(755,root,root) %{_libdir}/targa.imageio.so | |
458 | %attr(755,root,root) %{_libdir}/zfile.imageio.so | |
32c56ab5 | 459 | %attr(755,root,root) %{_libdir}/null.imageio.so |
5bef7fef JR |
460 | %{_mandir}/man1/iconvert.1* |
461 | %{_mandir}/man1/idiff.1* | |
462 | %{_mandir}/man1/igrep.1* | |
463 | %{_mandir}/man1/iinfo.1* | |
5bef7fef JR |
464 | %{_mandir}/man1/maketx.1* |
465 | %{_mandir}/man1/oiiotool.1* | |
20734182 JB |
466 | |
467 | %files devel | |
468 | %defattr(644,root,root,755) | |
469 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so | |
f1d9cbc1 | 470 | %attr(755,root,root) %{_libdir}/libOpenImageIO_Util.so |
20734182 | 471 | %{_includedir}/OpenImageIO |
32c56ab5 JR |
472 | %{_pkgconfigdir}/OpenImageIO.pc |
473 | %{_datadir}/cmake/Modules/FindOpenImageIO.cmake | |
20734182 | 474 | |
52005a92 JR |
475 | %files plugin-cineon |
476 | %defattr(644,root,root,755) | |
477 | %attr(755,root,root) %{_libdir}/cineon.imageio.so | |
478 | ||
bce3ea8b JR |
479 | %files plugin-dicom |
480 | %defattr(644,root,root,755) | |
481 | %attr(755,root,root) %{_libdir}/dicom.imageio.so | |
482 | ||
fc6d7d67 JB |
483 | %files plugin-dds |
484 | %defattr(644,root,root,755) | |
485 | %attr(755,root,root) %{_libdir}/dds.imageio.so | |
486 | ||
b238f81f JB |
487 | %files plugin-dpx |
488 | %defattr(644,root,root,755) | |
489 | %attr(755,root,root) %{_libdir}/dpx.imageio.so | |
490 | ||
70aab748 JR |
491 | %files plugin-ffmpeg |
492 | %defattr(644,root,root,755) | |
493 | %attr(755,root,root) %{_libdir}/ffmpeg.imageio.so | |
494 | ||
8a5e279e JB |
495 | %files plugin-field3d |
496 | %defattr(644,root,root,755) | |
497 | %attr(755,root,root) %{_libdir}/field3d.imageio.so | |
498 | ||
70aab748 JR |
499 | %files plugin-gif |
500 | %defattr(644,root,root,755) | |
501 | %attr(755,root,root) %{_libdir}/gif.imageio.so | |
502 | ||
20734182 JB |
503 | %files plugin-ico |
504 | %defattr(644,root,root,755) | |
505 | %attr(755,root,root) %{_libdir}/ico.imageio.so | |
506 | ||
507 | %files plugin-jpeg | |
508 | %defattr(644,root,root,755) | |
509 | %attr(755,root,root) %{_libdir}/jpeg.imageio.so | |
510 | ||
511 | %files plugin-jpeg2000 | |
512 | %defattr(644,root,root,755) | |
513 | %attr(755,root,root) %{_libdir}/jpeg2000.imageio.so | |
514 | ||
515 | %files plugin-openexr | |
516 | %defattr(644,root,root,755) | |
517 | %attr(755,root,root) %{_libdir}/openexr.imageio.so | |
518 | ||
519 | %files plugin-png | |
520 | %defattr(644,root,root,755) | |
521 | %attr(755,root,root) %{_libdir}/png.imageio.so | |
522 | ||
52005a92 JR |
523 | %files plugin-psd |
524 | %defattr(644,root,root,755) | |
525 | %attr(755,root,root) %{_libdir}/psd.imageio.so | |
526 | ||
d46df4d1 JB |
527 | %files plugin-ptex |
528 | %defattr(644,root,root,755) | |
529 | %attr(755,root,root) %{_libdir}/ptex.imageio.so | |
530 | ||
70aab748 JR |
531 | %files plugin-raw |
532 | %defattr(644,root,root,755) | |
533 | %attr(755,root,root) %{_libdir}/raw.imageio.so | |
534 | ||
20734182 JB |
535 | %files plugin-tiff |
536 | %defattr(644,root,root,755) | |
537 | %attr(755,root,root) %{_libdir}/tiff.imageio.so | |
538 | ||
cf6fcddf JR |
539 | %files plugin-webp |
540 | %defattr(644,root,root,755) | |
541 | %attr(755,root,root) %{_libdir}/webp.imageio.so | |
542 | ||
20734182 JB |
543 | %files apidocs |
544 | %defattr(644,root,root,755) | |
545 | %doc src/doc/openimageio.pdf | |
546 | ||
547 | %files iv | |
548 | %defattr(644,root,root,755) | |
549 | %attr(755,root,root) %{_bindir}/oiiv | |
32c56ab5 | 550 | %{_mandir}/man1/oiiv.1* |
20734182 JB |
551 | |
552 | %files -n python-OpenImageIO | |
553 | %defattr(644,root,root,755) | |
554 | %attr(755,root,root) %{py_sitedir}/OpenImageIO.so |