]>
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 | |
f42f60ac JB |
36 | Version: 2.4.14.0 |
37 | Release: 1 | |
38 | License: Apache v2.0 | |
20734182 | 39 | Group: Libraries |
94eab2d4 | 40 | #Source0Download: https://github.com/OpenImageIO/oiio/releases |
7017ceb2 | 41 | Source0: https://github.com/OpenImageIO/oiio/archive/v%{version}/%{name}-%{version}.tar.gz |
f42f60ac | 42 | # Source0-md5: cc0e320302622783dfe16ac6ae1946b3 |
32c56ab5 JR |
43 | Patch2: %{name}-system-libcineon.patch |
44 | Patch3: no-clang-format.patch | |
94eab2d4 | 45 | URL: https://github.com/OpenImageIO/oiio |
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 JB |
74 | BuildRequires: libfmt-devel >= 9.0 |
75 | BuildRequires: libheif-devel >= 1.7 | |
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 |
20734182 JB |
129 | |
130 | %description devel | |
131 | Header files for OpenImageIO library. | |
132 | ||
133 | %description devel -l pl.UTF-8 | |
134 | Pliki nagłówkowe biblioteki OpenImageIO. | |
135 | ||
52005a92 JR |
136 | %package plugin-cineon |
137 | Summary: Cineon plugin for OpenImageIO library | |
138 | Summary(pl.UTF-8): Wtyczka Cineon dla biblioteki OpenImageIO | |
139 | Group: Libraries | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
142 | %description plugin-cineon | |
143 | OpenImageIO plugin to read Cineon files. | |
144 | ||
145 | %description plugin-cineon -l pl.UTF-8 | |
146 | Wtyczka biblioteki OpenImageIO czytająca pliki Cineon. | |
147 | ||
bce3ea8b JR |
148 | %package plugin-dicom |
149 | Summary: DICOM plugin for OpenImageIO library | |
150 | Summary(pl.UTF-8): Wtyczka DICOM dla biblioteki OpenImageIO | |
151 | Group: Libraries | |
152 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 153 | Requires: dcmtk >= 3.6.1 |
bce3ea8b JR |
154 | Requires: squish >= 1.10 |
155 | ||
156 | %description plugin-dicom | |
157 | OpenImageIO plugin to read DICOM files. | |
158 | ||
159 | %description plugin-dicom -l pl.UTF-8 | |
160 | Wtyczka biblioteki OpenImageIO czytająca pliki DICOM. | |
161 | ||
fc6d7d67 JB |
162 | %package plugin-dds |
163 | Summary: DDS plugin for OpenImageIO library | |
164 | Summary(pl.UTF-8): Wtyczka DDS dla biblioteki OpenImageIO | |
165 | Group: Libraries | |
166 | Requires: %{name} = %{version}-%{release} | |
167 | Requires: squish >= 1.10 | |
168 | ||
169 | %description plugin-dds | |
d46df4d1 | 170 | OpenImageIO plugin to read DDS files. |
fc6d7d67 JB |
171 | |
172 | %description plugin-dds -l pl.UTF-8 | |
d46df4d1 | 173 | Wtyczka biblioteki OpenImageIO czytająca pliki DDS. |
fc6d7d67 | 174 | |
b238f81f JB |
175 | %package plugin-dpx |
176 | Summary: DPX plugin for OpenImageIO library | |
177 | Summary(pl.UTF-8): Wtyczka DPX dla biblioteki OpenImageIO | |
178 | Group: Libraries | |
179 | Requires: %{name} = %{version}-%{release} | |
180 | ||
181 | %description plugin-dpx | |
182 | OpenImageIO plugin to read and write DPX files. | |
183 | ||
184 | %description plugin-dpx -l pl.UTF-8 | |
185 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki DPX. | |
186 | ||
f1d9cbc1 JR |
187 | %package plugin-ffmpeg |
188 | Summary: FFmpeg plugin for OpenImageIO library | |
189 | Summary(pl.UTF-8): Wtyczka FFmpeg dla biblioteki OpenImageIO | |
190 | Group: Libraries | |
191 | Requires: %{name} = %{version}-%{release} | |
f42f60ac | 192 | Requires: ffmpeg-libs >= 3.0 |
f1d9cbc1 JR |
193 | |
194 | %description plugin-ffmpeg | |
195 | OpenImageIO plugin to read FFmpeg files. | |
196 | ||
197 | %description plugin-ffmpeg -l pl.UTF-8 | |
198 | Wtyczka biblioteki OpenImageIO czytająca pliki FFmpeg. | |
199 | ||
f1d9cbc1 JR |
200 | %package plugin-gif |
201 | Summary: Gif plugin for OpenImageIO library | |
202 | Summary(pl.UTF-8): Wtyczka Gif dla biblioteki OpenImageIO | |
203 | Group: Libraries | |
204 | Requires: %{name} = %{version}-%{release} | |
f42f60ac | 205 | Requires: giflib >= 5.0 |
f1d9cbc1 JR |
206 | |
207 | %description plugin-gif | |
208 | OpenImageIO plugin to read GIF files. | |
209 | ||
210 | %description plugin-gif -l pl.UTF-8 | |
211 | Wtyczka biblioteki OpenImageIO czytająca pliki GIF. | |
212 | ||
4fbe95cf JR |
213 | %package plugin-heif |
214 | Summary: HEIF plugin for OpenImageIO library | |
215 | Summary(pl.UTF-8): Wtyczka HEIF dla biblioteki OpenImageIO | |
216 | Group: Libraries | |
217 | Requires: %{name} = %{version}-%{release} | |
f42f60ac | 218 | Requires: libheif >= 1.7 |
4fbe95cf JR |
219 | |
220 | %description plugin-heif | |
221 | OpenImageIO plugin to read HEIF files. | |
222 | ||
223 | %description plugin-heif -l pl.UTF-8 | |
224 | Wtyczka biblioteki OpenImageIO czytająca pliki HEIF. | |
225 | ||
20734182 JB |
226 | %package plugin-ico |
227 | Summary: ICO plugin for OpenImageIO library | |
228 | Summary(pl.UTF-8): Wtyczka ICO dla biblioteki OpenImageIO | |
229 | Group: Libraries | |
230 | Requires: %{name} = %{version}-%{release} | |
231 | ||
232 | %description plugin-ico | |
233 | OpenImageIO plugin to read and write ICO files. | |
234 | ||
235 | %description plugin-ico -l pl.UTF-8 | |
236 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki ICO. | |
237 | ||
238 | %package plugin-jpeg | |
239 | Summary: JPEG plugin for OpenImageIO library | |
240 | Summary(pl.UTF-8): Wtyczka JPEG dla biblioteki OpenImageIO | |
241 | Group: Libraries | |
242 | Requires: %{name} = %{version}-%{release} | |
243 | ||
244 | %description plugin-jpeg | |
245 | OpenImageIO plugin to read and write JPEG files (with TIFF/EXIF | |
246 | information). | |
247 | ||
248 | %description plugin-jpeg -l pl.UTF-8 | |
73eae24f ER |
249 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG (wraz |
250 | z informacjami TIFF/EXIF). | |
20734182 JB |
251 | |
252 | %package plugin-jpeg2000 | |
253 | Summary: JPEG2000 plugin for OpenImageIO library | |
254 | Summary(pl.UTF-8): Wtyczka JPEG2000 dla biblioteki OpenImageIO | |
255 | Group: Libraries | |
256 | Requires: %{name} = %{version}-%{release} | |
257 | ||
258 | %description plugin-jpeg2000 | |
259 | OpenImageIO plugin to read and write JPEG2000 files. | |
260 | ||
261 | %description plugin-jpeg2000 -l pl.UTF-8 | |
262 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki JPEG2000. | |
263 | ||
264 | %package plugin-openexr | |
265 | Summary: OpenEXR plugin for OpenImageIO library | |
266 | Summary(pl.UTF-8): Wtyczka OpenEXR dla biblioteki OpenImageIO | |
267 | Group: Libraries | |
268 | Requires: %{name} = %{version}-%{release} | |
94eab2d4 | 269 | Requires: OpenEXR >= 2.0 |
20734182 JB |
270 | |
271 | %description plugin-openexr | |
272 | OpenImageIO plugin to read and write OpenEXR files. | |
273 | ||
274 | %description plugin-openexr -l pl.UTF-8 | |
275 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki OpenEXR. | |
276 | ||
f42f60ac JB |
277 | %package plugin-openvdb |
278 | Summary: OpenVDB plugin for OpenImageIO library | |
279 | Summary(pl.UTF-8): Wtyczka OpenVDB dla biblioteki OpenImageIO | |
280 | Group: Libraries | |
281 | Requires: %{name} = %{version}-%{release} | |
282 | Requires: openvdb >= 5.0 | |
283 | ||
284 | %description plugin-openvdb | |
285 | OpenImageIO plugin to read OpenVDB files. | |
286 | ||
287 | %description plugin-openvdb -l pl.UTF-8 | |
288 | Wtyczka biblioteki OpenImageIO czytająca pliki OpenVDB. | |
289 | ||
20734182 JB |
290 | %package plugin-png |
291 | Summary: PNG plugin for OpenImageIO library | |
292 | Summary(pl.UTF-8): Wtyczka PNG dla biblioteki OpenImageIO | |
293 | Group: Libraries | |
294 | Requires: %{name} = %{version}-%{release} | |
295 | ||
296 | %description plugin-png | |
297 | OpenImageIO plugin to read and write PNG files. | |
298 | ||
299 | %description plugin-png -l pl.UTF-8 | |
300 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PNG. | |
301 | ||
52005a92 JR |
302 | %package plugin-psd |
303 | Summary: PSD plugin for OpenImageIO library | |
304 | Summary(pl.UTF-8): Wtyczka PSD dla biblioteki OpenImageIO | |
305 | Group: Libraries | |
306 | Requires: %{name} = %{version}-%{release} | |
307 | ||
308 | %description plugin-psd | |
309 | OpenImageIO plugin to read and write PSD files. | |
310 | ||
311 | %description plugin-psd -l pl.UTF-8 | |
312 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki PSD. | |
313 | ||
d46df4d1 JB |
314 | %package plugin-ptex |
315 | Summary: Ptex plugin for OpenImageIO library | |
316 | Summary(pl.UTF-8): Wtyczka Ptex dla biblioteki OpenImageIO | |
317 | Group: Libraries | |
318 | Requires: %{name} = %{version}-%{release} | |
319 | Requires: ptex >= 2 | |
320 | ||
321 | %description plugin-ptex | |
322 | OpenImageIO plugin to read Ptex files. | |
323 | ||
324 | %description plugin-ptex -l pl.UTF-8 | |
325 | Wtyczka biblioteki OpenImageIO czytająca pliki Ptex. | |
326 | ||
70aab748 JR |
327 | %package plugin-raw |
328 | Summary: RAW plugin for OpenImageIO library | |
329 | Summary(pl.UTF-8): Wtyczka RAW dla biblioteki OpenImageIO | |
330 | Group: Libraries | |
331 | Requires: %{name} = %{version}-%{release} | |
88c1376f | 332 | Requires: libraw >= 0.18 |
70aab748 JR |
333 | |
334 | %description plugin-raw | |
335 | OpenImageIO plugin to readTRAW files. | |
336 | ||
337 | %description plugin-raw -l pl.UTF-8 | |
338 | Wtyczka biblioteki OpenImageIO czytająca pliki RAW. | |
339 | ||
cf6fcddf JR |
340 | %package plugin-webp |
341 | Summary: WebP plugin for OpenImageIO library | |
342 | Summary(pl.UTF-8): Wtyczka WebP dla biblioteki OpenImageIO | |
343 | Group: Libraries | |
344 | Requires: %{name} = %{version}-%{release} | |
345 | ||
346 | %description plugin-webp | |
347 | OpenImageIO plugin to read and write WebP files. | |
348 | ||
349 | %description plugin-webp -l pl.UTF-8 | |
350 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki WebP. | |
351 | ||
20734182 JB |
352 | %package plugin-tiff |
353 | Summary: TIFF plugin for OpenImageIO library | |
354 | Summary(pl.UTF-8): Wtyczka TIFF dla biblioteki OpenImageIO | |
355 | Group: Libraries | |
356 | Requires: %{name} = %{version}-%{release} | |
f42f60ac | 357 | Requires: libtiff >= 4.0 |
20734182 JB |
358 | |
359 | %description plugin-tiff | |
360 | OpenImageIO plugin to read and write TIFF files. | |
361 | ||
362 | %description plugin-tiff -l pl.UTF-8 | |
363 | Wtyczka biblioteki OpenImageIO czytająca i zapisująca pliki TIFF. | |
364 | ||
20734182 JB |
365 | %package iv |
366 | Summary: Qt/OpenImageIO-based Image Viewer | |
367 | Summary(pl.UTF-8): Przeglądarka obrazków (IV) oparta o Qt i OpenImageIO | |
368 | Group: X11/Applications/Graphics | |
369 | Requires: %{name} = %{version}-%{release} | |
88c1376f JB |
370 | Requires: Qt5Core >= 5.6 |
371 | Requires: Qt5Gui >= 5.6 | |
372 | Requires: Qt5OpenGL >= 5.6 | |
373 | Requires: Qt5Widgets >= 5.6 | |
20734182 JB |
374 | Requires: glew >= 1.5.1 |
375 | ||
376 | %description iv | |
377 | IV is an image viewer based on ImageIO plugins; therefore it can read | |
378 | images of any format for which an appropriate plugin may be found. | |
379 | ||
380 | %description iv -l pl.UTF-8 | |
381 | IV to przeglądarka obrazków oparta na wtyczkach ImageIO; dzięki temu | |
382 | jest w stanie odczytać obrazy w dowolnym formacie, dla którego | |
383 | istnieje właściwa wtyczka. | |
384 | ||
ddb30863 | 385 | %package -n python3-OpenImageIO |
20734182 JB |
386 | Summary: Python binding for OpenImageIO library |
387 | Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenImageIO | |
388 | Group: Libraries/Python | |
389 | Requires: %{name} = %{version}-%{release} | |
390 | ||
ddb30863 | 391 | %description -n python3-OpenImageIO |
20734182 JB |
392 | Python binding for OpenImageIO library. |
393 | ||
ddb30863 | 394 | %description -n python3-OpenImageIO -l pl.UTF-8 |
20734182 JB |
395 | Wiązanie Pythona do biblioteki OpenImageIO. |
396 | ||
397 | %prep | |
7017ceb2 | 398 | %setup -q -n oiio-%{version} |
37fe49bc | 399 | %patch2 -p1 |
fc6d7d67 | 400 | %patch3 -p1 |
ae460afe | 401 | |
20734182 JB |
402 | %build |
403 | install -d build | |
404 | cd build | |
94eab2d4 JB |
405 | %cmake .. \ |
406 | -DCMAKE_INSTALL_MANDIR=%{_mandir}/man1 \ | |
20734182 | 407 | -DEMBEDPLUGINS=OFF \ |
52005a92 | 408 | -DINCLUDE_INSTALL_DIR=%{_includedir}/%{name} \ |
f42f60ac | 409 | -DINTERNALIZE_FMT=OFF \ |
3d853326 | 410 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
488c8e3f | 411 | -DBUILD_TESTING=OFF \ |
94eab2d4 JB |
412 | %ifarch i386 i486 |
413 | -DNOTHREADS=1 \ | |
414 | %endif | |
ddb30863 | 415 | -DPYTHON_VERSION=%{py3_ver} \ |
4f07e9d7 | 416 | -DUSE_EXTERNAL_PUGIXML=ON \ |
cb420b0d | 417 | -DSTOP_ON_WARNING=OFF \ |
4f07e9d7 | 418 | %{!?with_ocio:-DUSE_OCIO=OFF} \ |
94eab2d4 | 419 | %{!?with_opencv:-DUSE_OPENCV=OFF} \ |
ad9cf45a | 420 | %{!?with_qt6:-DUSE_QT6=OFF} \ |
4f07e9d7 | 421 | %{!?with_tbb:-DUSE_TBB=OFF} |
20734182 JB |
422 | |
423 | %{__make} | |
424 | ||
425 | %install | |
426 | rm -rf $RPM_BUILD_ROOT | |
427 | ||
428 | %{__make} -C build install \ | |
429 | DESTDIR=$RPM_BUILD_ROOT | |
430 | ||
431 | # name clash with iv | |
ae460afe | 432 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{iv,oiiv} |
32c56ab5 | 433 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/{iv,oiiv}.1 |
20734182 | 434 | |
52005a92 | 435 | # installed as %doc |
32c56ab5 | 436 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
52005a92 | 437 | |
20734182 JB |
438 | %clean |
439 | rm -rf $RPM_BUILD_ROOT | |
440 | ||
441 | %post -p /sbin/ldconfig | |
442 | %postun -p /sbin/ldconfig | |
443 | ||
444 | %files | |
445 | %defattr(644,root,root,755) | |
f42f60ac | 446 | %doc CHANGES.md CREDITS.md GOVERNANCE.md LICENSE-BSD.md README.md RELICENSING.md |
20734182 JB |
447 | %attr(755,root,root) %{_bindir}/iconvert |
448 | %attr(755,root,root) %{_bindir}/idiff | |
449 | %attr(755,root,root) %{_bindir}/igrep | |
450 | %attr(755,root,root) %{_bindir}/iinfo | |
20734182 | 451 | %attr(755,root,root) %{_bindir}/maketx |
52005a92 | 452 | %attr(755,root,root) %{_bindir}/oiiotool |
20734182 | 453 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so.*.*.* |
f42f60ac | 454 | %attr(755,root,root) %ghost %{_libdir}/libOpenImageIO.so.2.4 |
70aab748 | 455 | %attr(755,root,root) %{_libdir}/libOpenImageIO_Util.so.*.*.* |
f42f60ac | 456 | %attr(755,root,root) %ghost %{_libdir}/libOpenImageIO_Util.so.2.4 |
20734182 | 457 | %attr(755,root,root) %{_libdir}/bmp.imageio.so |
20734182 JB |
458 | %attr(755,root,root) %{_libdir}/fits.imageio.so |
459 | %attr(755,root,root) %{_libdir}/hdr.imageio.so | |
52005a92 | 460 | %attr(755,root,root) %{_libdir}/iff.imageio.so |
20734182 | 461 | %attr(755,root,root) %{_libdir}/pnm.imageio.so |
52005a92 | 462 | %attr(755,root,root) %{_libdir}/rla.imageio.so |
20734182 | 463 | %attr(755,root,root) %{_libdir}/sgi.imageio.so |
20734182 JB |
464 | %attr(755,root,root) %{_libdir}/softimage.imageio.so |
465 | %attr(755,root,root) %{_libdir}/targa.imageio.so | |
466 | %attr(755,root,root) %{_libdir}/zfile.imageio.so | |
32c56ab5 | 467 | %attr(755,root,root) %{_libdir}/null.imageio.so |
4fbe95cf | 468 | %attr(755,root,root) %{_libdir}/term.imageio.so |
5bef7fef JR |
469 | %{_mandir}/man1/iconvert.1* |
470 | %{_mandir}/man1/idiff.1* | |
471 | %{_mandir}/man1/igrep.1* | |
472 | %{_mandir}/man1/iinfo.1* | |
5bef7fef JR |
473 | %{_mandir}/man1/maketx.1* |
474 | %{_mandir}/man1/oiiotool.1* | |
20734182 JB |
475 | |
476 | %files devel | |
477 | %defattr(644,root,root,755) | |
478 | %attr(755,root,root) %{_libdir}/libOpenImageIO.so | |
f1d9cbc1 | 479 | %attr(755,root,root) %{_libdir}/libOpenImageIO_Util.so |
20734182 | 480 | %{_includedir}/OpenImageIO |
32c56ab5 | 481 | %{_pkgconfigdir}/OpenImageIO.pc |
488c8e3f | 482 | %{_libdir}/cmake/OpenImageIO |
20734182 | 483 | |
52005a92 JR |
484 | %files plugin-cineon |
485 | %defattr(644,root,root,755) | |
486 | %attr(755,root,root) %{_libdir}/cineon.imageio.so | |
487 | ||
bce3ea8b JR |
488 | %files plugin-dicom |
489 | %defattr(644,root,root,755) | |
490 | %attr(755,root,root) %{_libdir}/dicom.imageio.so | |
491 | ||
fc6d7d67 JB |
492 | %files plugin-dds |
493 | %defattr(644,root,root,755) | |
494 | %attr(755,root,root) %{_libdir}/dds.imageio.so | |
495 | ||
b238f81f JB |
496 | %files plugin-dpx |
497 | %defattr(644,root,root,755) | |
498 | %attr(755,root,root) %{_libdir}/dpx.imageio.so | |
499 | ||
70aab748 JR |
500 | %files plugin-ffmpeg |
501 | %defattr(644,root,root,755) | |
502 | %attr(755,root,root) %{_libdir}/ffmpeg.imageio.so | |
503 | ||
70aab748 JR |
504 | %files plugin-gif |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/gif.imageio.so | |
507 | ||
4fbe95cf JR |
508 | %files plugin-heif |
509 | %defattr(644,root,root,755) | |
510 | %attr(755,root,root) %{_libdir}/heif.imageio.so | |
511 | ||
20734182 JB |
512 | %files plugin-ico |
513 | %defattr(644,root,root,755) | |
514 | %attr(755,root,root) %{_libdir}/ico.imageio.so | |
515 | ||
516 | %files plugin-jpeg | |
517 | %defattr(644,root,root,755) | |
518 | %attr(755,root,root) %{_libdir}/jpeg.imageio.so | |
519 | ||
520 | %files plugin-jpeg2000 | |
521 | %defattr(644,root,root,755) | |
522 | %attr(755,root,root) %{_libdir}/jpeg2000.imageio.so | |
523 | ||
524 | %files plugin-openexr | |
525 | %defattr(644,root,root,755) | |
526 | %attr(755,root,root) %{_libdir}/openexr.imageio.so | |
527 | ||
f42f60ac JB |
528 | %if %{with openvdb} |
529 | %files plugin-openvdb | |
530 | %defattr(644,root,root,755) | |
531 | %attr(755,root,root) %{_libdir}/openvdb.imageio.so | |
532 | %endif | |
533 | ||
20734182 JB |
534 | %files plugin-png |
535 | %defattr(644,root,root,755) | |
536 | %attr(755,root,root) %{_libdir}/png.imageio.so | |
537 | ||
52005a92 JR |
538 | %files plugin-psd |
539 | %defattr(644,root,root,755) | |
540 | %attr(755,root,root) %{_libdir}/psd.imageio.so | |
541 | ||
d46df4d1 JB |
542 | %files plugin-ptex |
543 | %defattr(644,root,root,755) | |
544 | %attr(755,root,root) %{_libdir}/ptex.imageio.so | |
545 | ||
70aab748 JR |
546 | %files plugin-raw |
547 | %defattr(644,root,root,755) | |
548 | %attr(755,root,root) %{_libdir}/raw.imageio.so | |
549 | ||
20734182 JB |
550 | %files plugin-tiff |
551 | %defattr(644,root,root,755) | |
552 | %attr(755,root,root) %{_libdir}/tiff.imageio.so | |
553 | ||
cf6fcddf JR |
554 | %files plugin-webp |
555 | %defattr(644,root,root,755) | |
556 | %attr(755,root,root) %{_libdir}/webp.imageio.so | |
557 | ||
20734182 JB |
558 | %files iv |
559 | %defattr(644,root,root,755) | |
560 | %attr(755,root,root) %{_bindir}/oiiv | |
32c56ab5 | 561 | %{_mandir}/man1/oiiv.1* |
20734182 | 562 | |
ddb30863 | 563 | %files -n python3-OpenImageIO |
20734182 | 564 | %defattr(644,root,root,755) |
904e7ca3 JP |
565 | %dir %{py3_sitedir}/OpenImageIO |
566 | %attr(755,root,root) %{py3_sitedir}/OpenImageIO/OpenImageIO*.so | |
567 | %{py3_sitedir}/OpenImageIO/__init__.py |