-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenImageIO.spec
349 lines (258 loc) · 9.97 KB
/
OpenImageIO.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
%global sover 2.3
%undefine _debuginfo_subpackages
%undefine _debugsource_packages
# Turn off the brp-python-bytecompile automagic
%global _python_bytecompile_extra 0
%global __brp_check_rpaths %{nil}
Name: OpenImageIO
Version: 2.3.13.0
Release: 7%{?dist}
Summary: Library for reading and writing images
License: BSD
URL: http://www.openimageio.org
Source0: https://github.com/OpenImageIO/oiio/archive/refs/tags/v%{version}.tar.gz
BuildRequires: cmake gcc-c++
BuildRequires: txt2man
BuildRequires: pkgconfig(Qt5)
BuildRequires: boost-devel
BuildRequires: boost-python3-devel
BuildRequires: glew-devel
BuildRequires: openexr-devel >= 3.1.1
BuildRequires: imath-devel >= 3.1.2
BuildRequires: Field3D-devel >= 1.7.3-15
BuildRequires: python3-devel
BuildRequires: pybind11-devel
BuildRequires: libpng-devel libtiff-devel libjpeg-turbo-devel openjpeg2-devel
BuildRequires: giflib-devel
BuildRequires: libwebp-devel
BuildRequires: hdf5-devel
BuildRequires: dcmtk-devel
BuildRequires: zlib-devel
BuildRequires: jasper-devel
BuildRequires: pugixml-devel
BuildRequires: opencv-devel >= 4.5.5
BuildRequires: LibRaw-devel
BuildRequires: openssl-devel
BuildRequires: freetype-devel
BuildRequires: ffmpeg4-devel
BuildRequires: git
# new support
BuildRequires: libsquish-devel
BuildRequires: tbb-devel
BuildRequires: openvdb-devel >= 8.1.0-6
BuildRequires: libjpeg-turbo-devel
#BuildRequires: libheif-devel
%if 0%{?fedora} >= 34
BuildRequires: ptex-devel >= 2.4.0
%else
BuildRequires: ptex-devel
%endif
BuildRequires: vulkan-loader
# WARNING: OpenColorIO and OpenImageIO are cross dependent.
# If an ABI incompatible update is done in one, the other also needs to be
# rebuilt.
#BuildRequires: OpenColorIO-devel >= 2.0.0
%description
OpenImageIO is a library for reading and writing images, and a bunch of related
classes, utilities, and applications. Main features include:
- Extremely simple but powerful ImageInput and ImageOutput APIs for reading and
writing 2D images that is format agnostic.
- Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000,
DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI,
PNM/PPM/PGM/PBM, Field3d.
- An ImageCache class that transparently manages a cache so that it can access
truly vast amounts of image data.
%package -n python3-openimageio
Summary: Python 2 bindings for %{name}
Requires: %{name} = %{version}-%{release}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python3-openimageio
Python bindings for %{name}.
%package utils
Summary: Command line utilities for %{name}
Requires: %{name} = %{version}-%{release}
%description utils
Command-line tools to manipulate and get information on images using the
%{name} library.
%package iv
Summary: %{name} based image viewer
Requires: %{name} = %{version}-%{release}
%description iv
A really nice image viewer, iv, based on %{name} classes (and so will work
with any formats for which plugins are available).
%package devel
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
Development files for package %{name}
%prep
%autosetup -n oiio-%{version} -p1
# Remove bundled pugixml
rm -f src/include/OpenImageIO/pugixml.hpp \
src/include/OpenImageIO/pugiconfig.hpp \
src/libutil/OpenImageIO/pugixml.cpp
# Remove bundled tbb
rm -rf src/include/tbb
# Try disabeling old CMP
sed -i "s/SET CMP0046 OLD/SET CMP0046 NEW/" CMakeLists.txt
%build
mkdir -p build
cmake -B build -DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_INSTALL_FULL_LIBDIR=%{_lib} \
-DCMAKE_CXX_STANDARD=14 \
-DCMAKE_INSTALL_MANDIR:PATH=%{_mandir}/man1 \
-DOIIO_BUILD_TESTS=OFF \
-DSTOP_ON_WARNING=OFF \
-DUSE_EXTERNAL_PUGIXML=ON \
-DUSE_FFMPEG=ON \
-DUSE_FIELD3D=ON \
-DUSE_FREETYPE=ON \
-DUSE_GIF=ON \
-DUSE_JPEGTURBO=ON \
-DUSE_LIBRAW=ON \
-DUSE_NUKE=OFF \
-DUSE_OCIO=ON \
-DUSE_OPENCV=ON \
-DUSE_OPENGL=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
-DUSE_OPENJPEG=ON \
-DUSE_OPENSSL=ON \
-DPYTHON_VERSION=%{python3_version} \
-DPYLIB_INSTALL_DIR:PATH=%{python3_sitearch} \
-DINSTALL_FONTS:BOOL=FALSE \
-DUSE_QT=ON \
-Wno-dev
%make_build -C build
%install
%make_install -C build
# Move man pages to the right directory
mkdir -p %{buildroot}%{_mandir}/man1
#cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1
%check
# Not all tests pass on linux
#pushd build && make test
%define _legacy_common_support 1
%files
%license LICENSE.md
%{_libdir}/libOpenImageIO.so.%{sover}*
%{_libdir}/libOpenImageIO_Util.so.%{sover}*
%{_docdir}/OpenImageIO/
%files -n python3-openimageio
%{python3_sitearch}/OpenImageIO.cpython-*.so
%files utils
%exclude %{_bindir}/iv
%{_bindir}/*
%exclude %{_mandir}/man1/iv.1.gz
%{_mandir}/man1/*.1.gz
%files iv
%{_bindir}/iv
%{_mandir}/man1/iv.1.gz
%files devel
%{_libdir}/libOpenImageIO.so
%{_libdir}/libOpenImageIO_Util.so
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/OpenImageIO.pc
#%{_datadir}/cmake/Modules/FindOpenImageIO.cmake
%{_libdir}/cmake/OpenImageIO/
%changelog
* Wed Jun 01 2022 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.3.13.0-7
- Updated to 2.3.13.0
* Fri Feb 04 2022 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.3.12.0-7
- Updated to 2.3.12.0
* Sat Dec 25 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.3.10.1-7
- Updated to 2.3.10.1
* Wed Nov 17 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.3.9.1-7
- Updated to 2.3.9.1
* Mon Oct 25 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.3.8.0-7
- Updated to 2.3.8.0
* Sun Aug 01 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.16.0-7
- Updated to 2.2.16.0
* Fri Jun 18 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.15.1-8
- Rebuilt for openvdb
* Mon Jun 07 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.15.1-7
- Updated to 2.2.15.1
* Mon May 03 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.14.0-7
- Updated to 2.2.14.0
* Wed Apr 28 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.13.1-7
- Updated to 2.2.13.1
* Sat Mar 27 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.12.0-7
- Updated to 2.2.12.0
* Wed Jan 27 2021 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.10.0-7
- Updated to 2.2.10.0
* Fri Nov 27 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.8.0-7
- Updated to 2.2.8.0
* Thu Nov 05 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.7.0-8
- Rebuilt for opencv
* Sun Oct 04 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.7.0-7
- Updated to 2.2.7.0
* Mon Sep 14 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.2.6.1-7
- Updated to 2.2.6.1
* Tue Aug 11 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.18.1-7
- Updated to 2.1.18.1
* Wed Jul 08 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.17.0-7
- Updated to 2.1.17.0
* Wed Jun 03 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.16.0-8
- Updated to 2.1.16.0
* Sun May 31 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.15.0-8
- Rebuilt for python3.9
* Mon May 18 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.15.0-7
- Updated to 2.1.15.0
* Thu May 07 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.14.0-7
- Updated to 2.1.14.0
* Tue Apr 28 2020 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.1.13.0-7
- Updated to 2.1.13.0
* Sun Dec 29 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.13-8
- Rebuilt for opencv
* Sun Dec 08 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.13-7
- Updated to 2.0.13
* Mon Nov 25 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.12-7
- Updated to 2.0.12
* Tue Nov 19 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.10-9
- Rebuilt for OpenColorIO
* Thu Sep 05 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.10-8
- Rebuilt
* Thu Aug 08 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.10-7
- Updated to 2.0.10
* Thu Jul 11 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.9-7
- Updated to 2.0.9
* Wed May 29 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 2.0.8-7
- Updated to 2.0.8
* Mon May 27 2019 Unitedrpms Project <unitedrpms AT protonmail DOT com> 1.8.16-7
- Rebuilt for opencv
* Fri Nov 02 2018 Richard Shaw <[email protected]> - 1.8.16-1
- Update to 1.8.16.
* Tue Oct 02 2018 Richard Shaw <[email protected]> - 1.8.15-1
- Update to 1.8.15.
* Mon Sep 03 2018 Richard Shaw <[email protected]> - 1.8.14-1
- Update to 1.8.14.
* Wed Jul 18 2018 Simone Caronni <[email protected]> - 1.8.12-3
- Rebuild for LibRaw update.
* Thu Jul 12 2018 Fedora Release Engineering <[email protected]> - 1.8.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 01 2018 Richard Shaw <[email protected]> - 1.8.12-1
- Update to 1.8.12.
* Mon Apr 02 2018 Richard Shaw <[email protected]> - 1.8.10-1
- Update to 1.8.10.
* Fri Mar 02 2018 Adam Williamson <[email protected]> - 1.8.9-2
- Rebuild for opencv 3.4.1
* Thu Mar 01 2018 Richard Shaw <[email protected]> - 1.8.9-1
- Update to 1.8.9
* Fri Feb 23 2018 Peter Robinson <[email protected]> 1.8.8-3
- Rebuild
* Tue Feb 13 2018 Sandro Mani <[email protected]> - 1.8.8-2
- Rebuild (giflib)
* Fri Feb 02 2018 Richard Shaw <[email protected]> - 1.8.8-1
- Update to 1.8.8.
* Thu Jan 18 2018 Richard Shaw <[email protected]> - 1.8.7-3
- Add openjpeg2 to build dependencies.
- Re-enable dcmtk for 32bit arches.
* Sat Jan 13 2018 Richard Shaw <[email protected]> - 1.8.7-2
- Rebuild for OpenColorIO 1.1.0.
* Wed Jan 03 2018 Richard Shaw <[email protected]> - 1.8.7-1
- Update to latest upstream release.
- Disable building with dcmtk until fixed, see:
https://github.com/OpenImageIO/oiio/issues/1841
* Thu Nov 02 2017 Richard Shaw <[email protected]> - 1.8.6-1
- Update to latest upstream release.
- Add dcmtk to build to enable DICOM plugin.