1 | %global subname oiio |
---|
2 | |
---|
3 | Name: OpenImageIO |
---|
4 | Version: 1.4.15 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: Library for reading and writing images |
---|
7 | |
---|
8 | Group: System Environment/Libraries |
---|
9 | License: BSD |
---|
10 | URL: https://sites.google.com/site/openimageio/home |
---|
11 | |
---|
12 | Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}/%{subname}-Release-%{version}.tar.gz |
---|
13 | # Images for test suite |
---|
14 | #Source1: oiio-images.tar.gz |
---|
15 | |
---|
16 | Patch0: oiio-Release-1.4.15-sign-compare.patch |
---|
17 | |
---|
18 | BuildRequires: cmake |
---|
19 | BuildRequires: txt2man |
---|
20 | BuildRequires: qt4-devel |
---|
21 | BuildRequires: libboost-devel |
---|
22 | BuildRequires: libboost-python |
---|
23 | BuildRequires: libboost-filesystem |
---|
24 | BuildRequires: glew-devel |
---|
25 | BuildRequires: OpenEXR-devel ilmbase-devel |
---|
26 | BuildRequires: python-devel |
---|
27 | BuildRequires: openssl-devel |
---|
28 | BuildRequires: libpng-devel libtiff-devel openjpeg-devel giflib-devel |
---|
29 | BuildRequires: libwebp-devel |
---|
30 | BuildRequires: Field3D-devel |
---|
31 | BuildRequires: hdf5-devel |
---|
32 | BuildRequires: zlib-devel |
---|
33 | BuildRequires: jasper-devel |
---|
34 | BuildRequires: LibRaw-devel |
---|
35 | BuildRequires: pugixml-devel |
---|
36 | |
---|
37 | # WARNING: OpenColorIO and OpenImageIO are cross dependent. |
---|
38 | # If an ABI incompatible update is done in one, the other also needs to be |
---|
39 | # rebuilt. |
---|
40 | BuildRequires: OpenColorIO-devel |
---|
41 | |
---|
42 | # We don't want to provide private python extension libs |
---|
43 | %{?filter_setup: |
---|
44 | %filter_provides_in %{python_sitearch}/.*\.so$ |
---|
45 | %filter_setup |
---|
46 | } |
---|
47 | |
---|
48 | |
---|
49 | %description |
---|
50 | OpenImageIO is a library for reading and writing images, and a bunch of related |
---|
51 | classes, utilities, and applications. Main features include: |
---|
52 | - Extremely simple but powerful ImageInput and ImageOutput APIs for reading and |
---|
53 | writing 2D images that is format agnostic. |
---|
54 | - Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000, |
---|
55 | DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI, |
---|
56 | PNM/PPM/PGM/PBM, Field3d. |
---|
57 | - An ImageCache class that transparently manages a cache so that it can access |
---|
58 | truly vast amounts of image data. |
---|
59 | |
---|
60 | |
---|
61 | %package utils |
---|
62 | Summary: Command line utilities for %{name} |
---|
63 | Requires: %{name} = %{version}-%{release} |
---|
64 | |
---|
65 | %description utils |
---|
66 | Command-line tools to manipulate and get information on images using the |
---|
67 | %{name} library. |
---|
68 | |
---|
69 | |
---|
70 | %package iv |
---|
71 | Summary: %{name} based image viewer |
---|
72 | Requires: %{name} = %{version}-%{release} |
---|
73 | |
---|
74 | %description iv |
---|
75 | A really nice image viewer, iv, based on %{name} classes (and so will work |
---|
76 | with any formats for which plugins are available). |
---|
77 | |
---|
78 | |
---|
79 | %package devel |
---|
80 | Summary: Documentation for %{name} |
---|
81 | Group: Development/Libraries |
---|
82 | Requires: %{name} = %{version}-%{release} |
---|
83 | |
---|
84 | %description devel |
---|
85 | Development files for package %{name} |
---|
86 | |
---|
87 | |
---|
88 | %prep |
---|
89 | %setup -q -n oiio-Release-%{version} |
---|
90 | %patch0 -p1 |
---|
91 | |
---|
92 | # Remove bundled pugixml |
---|
93 | rm -f src/include/pugixml.hpp \ |
---|
94 | src/include/pugiconfig.hpp \ |
---|
95 | src/libutil/pugixml.cpp |
---|
96 | |
---|
97 | # Remove bundled tbb |
---|
98 | rm -rf src/include/tbb |
---|
99 | |
---|
100 | # Install test images |
---|
101 | #rm -rf ../oiio-images && mkdir ../oiio-images && pushd ../oiio-images |
---|
102 | #tar --strip-components=1 -xzf %{SOURCE1} |
---|
103 | |
---|
104 | |
---|
105 | %build |
---|
106 | rm -rf build/linux && mkdir -p build/linux && pushd build/linux |
---|
107 | # CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes |
---|
108 | # CMAKE_INSTALL_RPATH to be cleared, which is the desiered result. |
---|
109 | %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
---|
110 | -DCMAKE_SKIP_RPATH:BOOL=TRUE \ |
---|
111 | -DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \ |
---|
112 | -DPYLIB_INSTALL_DIR:PATH=%{python_sitearch} \ |
---|
113 | -DINSTALL_DOCS:BOOL=FALSE \ |
---|
114 | -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \ |
---|
115 | -DUSE_TBB:BOOL=FALSE \ |
---|
116 | %ifarch ppc ppc64 |
---|
117 | -DNOTHREADS:BOOL=FALSE \ |
---|
118 | %endif |
---|
119 | -DVERBOSE=TRUE \ |
---|
120 | ../../ |
---|
121 | |
---|
122 | make %{?_smp_mflags} |
---|
123 | |
---|
124 | |
---|
125 | %install |
---|
126 | pushd build/linux |
---|
127 | make DESTDIR=%{buildroot} install |
---|
128 | |
---|
129 | # Move man pages to the right directory |
---|
130 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
131 | cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1 |
---|
132 | |
---|
133 | |
---|
134 | %post -p /sbin/ldconfig |
---|
135 | %postun -p /sbin/ldconfig |
---|
136 | |
---|
137 | |
---|
138 | |
---|
139 | %files |
---|
140 | %doc CHANGES LICENSE |
---|
141 | %{_libdir}/libOpenImageIO.so.* |
---|
142 | %{_libdir}/libOpenImageIO_Util.so.* |
---|
143 | %{python_sitearch}/OpenImageIO.so |
---|
144 | |
---|
145 | %files utils |
---|
146 | %exclude %{_bindir}/iv |
---|
147 | %{_bindir}/* |
---|
148 | %exclude %{_mandir}/man1/iv.1.gz |
---|
149 | %{_mandir}/man1/*.1.gz |
---|
150 | |
---|
151 | %files iv |
---|
152 | %{_bindir}/iv |
---|
153 | %{_mandir}/man1/iv.1.gz |
---|
154 | |
---|
155 | %files devel |
---|
156 | %doc src/doc/*.pdf |
---|
157 | %{_libdir}/libOpenImageIO.so |
---|
158 | %{_libdir}/libOpenImageIO_Util.so |
---|
159 | %{_includedir}/* |
---|
160 | |
---|
161 | |
---|
162 | %changelog |
---|
163 | * Sun Jan 18 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.15-1 |
---|
164 | - initial build for Vine Linux |
---|
165 | - add Patch0 (oiio-Release-1.4.15-sign-compare.patch) |
---|
166 | |
---|
167 | |
---|
168 | * Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.4.15-2 |
---|
169 | - rebuild (openexr) |
---|
170 | |
---|
171 | * Tue Nov 25 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.15-1 |
---|
172 | - Update to latest upstream release. |
---|
173 | |
---|
174 | * Fri Nov 14 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.14-1 |
---|
175 | - Update to latest upstream release. |
---|
176 | |
---|
177 | * Fri Sep 5 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-4 |
---|
178 | - Rebuild for Field3D 1.4.3. |
---|
179 | |
---|
180 | * Thu Sep 04 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4.12-3 |
---|
181 | - Rebuild for pugixml 1.4 |
---|
182 | |
---|
183 | * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.12-2 |
---|
184 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
185 | |
---|
186 | * Fri Aug 1 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-1 |
---|
187 | - Update to latest upstream release. |
---|
188 | |
---|
189 | * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-4 |
---|
190 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
191 | |
---|
192 | * Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.4.7-3 |
---|
193 | - Rebuild for boost 1.55.0 |
---|
194 | |
---|
195 | * Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.4.7-2 |
---|
196 | - rebuild for boost 1.55.0 |
---|
197 | |
---|
198 | * Mon May 19 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.7-1 |
---|
199 | - Update to latest upstream release. |
---|
200 | |
---|
201 | * Tue Jan 7 2014 Richard Shaw <hobbes1069@gmail.com> - 1.3.10-1 |
---|
202 | - Update to latest upstream release. |
---|
203 | - Add libgif as build requirement. |
---|
204 | |
---|
205 | * Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.2.3-3 |
---|
206 | - rebuild (openexr) |
---|
207 | |
---|
208 | * Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.2.3-2 |
---|
209 | - rebuilt for GLEW 1.10 |
---|
210 | |
---|
211 | * Wed Nov 6 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.3-1 |
---|
212 | - Update to latest upstream release. |
---|
213 | - Fix ppc builds (BZ#1021977). |
---|
214 | - Add conditionals to build requirements for EPEL 6. |
---|
215 | |
---|
216 | * Wed Oct 2 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.2-1 |
---|
217 | - Update to latest upstream release. |
---|
218 | |
---|
219 | * Sun Sep 08 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.1-2 |
---|
220 | - rebuild (ilmbase/openexr) |
---|
221 | |
---|
222 | * Thu Aug 8 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.1-1 |
---|
223 | - Update to latest upstream release. |
---|
224 | |
---|
225 | * Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3 |
---|
226 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
227 | |
---|
228 | * Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.2.0-2 |
---|
229 | - Rebuild for boost 1.54.0 |
---|