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