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