[9277] | 1 | %global subname oiio |
---|
| 2 | |
---|
| 3 | Name: OpenImageIO |
---|
[12286] | 4 | Version: 2.0.11 |
---|
[11781] | 5 | Release: 1%{?_dist_release} |
---|
[9277] | 6 | Summary: Library for reading and writing images |
---|
[12286] | 7 | Group: System Environment/Libraries |
---|
[9277] | 8 | |
---|
[12286] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[9277] | 12 | License: BSD |
---|
| 13 | URL: https://sites.google.com/site/openimageio/home |
---|
| 14 | |
---|
| 15 | Source0: https://github.com/%{name}/%{subname}/archive/Release-%{version}/%{subname}-Release-%{version}.tar.gz |
---|
| 16 | # Images for test suite |
---|
| 17 | #Source1: oiio-images.tar.gz |
---|
| 18 | |
---|
| 19 | BuildRequires: cmake |
---|
[12286] | 20 | BuildRequires: git |
---|
[9277] | 21 | BuildRequires: txt2man |
---|
[11851] | 22 | BuildRequires: qt5-qtbase-devel |
---|
[9277] | 23 | BuildRequires: libboost-devel |
---|
[12286] | 24 | BuildRequires: libboost-python3 |
---|
[9277] | 25 | BuildRequires: libboost-filesystem |
---|
| 26 | BuildRequires: glew-devel |
---|
[12286] | 27 | BuildRequires: OpenEXR-devel |
---|
| 28 | BuildRequires: python3-devel |
---|
| 29 | BuildRequires: python3-rpm-macros |
---|
[11851] | 30 | # BuildRequires: openssl-devel |
---|
[12286] | 31 | BuildRequires: libpng-devel libtiff-devel openjpeg2-devel giflib-devel |
---|
[9277] | 32 | BuildRequires: libwebp-devel |
---|
| 33 | BuildRequires: Field3D-devel |
---|
| 34 | BuildRequires: hdf5-devel |
---|
| 35 | BuildRequires: zlib-devel |
---|
| 36 | BuildRequires: jasper-devel |
---|
| 37 | BuildRequires: LibRaw-devel |
---|
| 38 | BuildRequires: pugixml-devel |
---|
| 39 | |
---|
| 40 | # WARNING: OpenColorIO and OpenImageIO are cross dependent. |
---|
| 41 | # If an ABI incompatible update is done in one, the other also needs to be |
---|
| 42 | # rebuilt. |
---|
| 43 | BuildRequires: OpenColorIO-devel |
---|
| 44 | |
---|
[12286] | 45 | Obsoletes: python-OpenImageIO |
---|
| 46 | |
---|
[9277] | 47 | # We don't want to provide private python extension libs |
---|
| 48 | %{?filter_setup: |
---|
[12286] | 49 | %filter_provides_in %{python3_sitearch}/.*\.so$ |
---|
[9277] | 50 | %filter_setup |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %description |
---|
| 55 | OpenImageIO is a library for reading and writing images, and a bunch of related |
---|
| 56 | classes, utilities, and applications. Main features include: |
---|
| 57 | - Extremely simple but powerful ImageInput and ImageOutput APIs for reading and |
---|
| 58 | writing 2D images that is format agnostic. |
---|
| 59 | - Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000, |
---|
| 60 | DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI, |
---|
| 61 | PNM/PPM/PGM/PBM, Field3d. |
---|
| 62 | - An ImageCache class that transparently manages a cache so that it can access |
---|
| 63 | truly vast amounts of image data. |
---|
| 64 | |
---|
| 65 | |
---|
[12286] | 66 | %package -n python3-%{name} |
---|
| 67 | Summary: Python 3 bindings for %{name} |
---|
[10245] | 68 | Requires: %{name} = %{version}-%{release} |
---|
| 69 | |
---|
[12286] | 70 | %description -n python3-%{name} |
---|
| 71 | Python3 bindings for %{name}. |
---|
[10245] | 72 | |
---|
| 73 | |
---|
[9277] | 74 | %package utils |
---|
| 75 | Summary: Command line utilities for %{name} |
---|
| 76 | Requires: %{name} = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | %description utils |
---|
| 79 | Command-line tools to manipulate and get information on images using the |
---|
| 80 | %{name} library. |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %package iv |
---|
| 84 | Summary: %{name} based image viewer |
---|
| 85 | Requires: %{name} = %{version}-%{release} |
---|
| 86 | |
---|
| 87 | %description iv |
---|
| 88 | A really nice image viewer, iv, based on %{name} classes (and so will work |
---|
| 89 | with any formats for which plugins are available). |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %package devel |
---|
| 93 | Summary: Documentation for %{name} |
---|
| 94 | Group: Development/Libraries |
---|
| 95 | Requires: %{name} = %{version}-%{release} |
---|
| 96 | |
---|
| 97 | %description devel |
---|
| 98 | Development files for package %{name} |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %prep |
---|
| 102 | %setup -q -n oiio-Release-%{version} |
---|
| 103 | |
---|
| 104 | # Remove bundled pugixml |
---|
[11781] | 105 | %{__rm} -f src/include/pugixml.hpp \ |
---|
| 106 | src/include/pugiconfig.hpp \ |
---|
| 107 | src/libutil/pugixml.cpp |
---|
[9277] | 108 | |
---|
| 109 | # Remove bundled tbb |
---|
[11781] | 110 | %{__rm} -rf src/include/tbb |
---|
[9277] | 111 | |
---|
| 112 | # Install test images |
---|
| 113 | #rm -rf ../oiio-images && mkdir ../oiio-images && pushd ../oiio-images |
---|
| 114 | #tar --strip-components=1 -xzf %{SOURCE1} |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %build |
---|
[11851] | 118 | %{__rm} -rf build/linux && %{__mkdir_p} build/linux && pushd build/linux |
---|
[12286] | 119 | |
---|
| 120 | export PYTHON=%{__python3} |
---|
| 121 | export PYTHON_LIBRARIES=%(%{__python3} -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") |
---|
| 122 | export PYTHON_INCLUDE_DIRS=%(%{__python3} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") |
---|
| 123 | |
---|
[9277] | 124 | # CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes |
---|
| 125 | # CMAKE_INSTALL_RPATH to be cleared, which is the desiered result. |
---|
| 126 | %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
---|
| 127 | -DCMAKE_SKIP_RPATH:BOOL=TRUE \ |
---|
| 128 | -DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \ |
---|
[12286] | 129 | -DPYTHON_VERSION=3.5 \ |
---|
| 130 | -DPYTHON_EXECUTABLE=%{__python3} \ |
---|
| 131 | -DPYTHON_LIBRARY=$PYTHON_LIBRARIES \ |
---|
| 132 | -DPYLIB_INSTALL_DIR:PATH=%{python3_sitearch} \ |
---|
[9277] | 133 | -DINSTALL_DOCS:BOOL=FALSE \ |
---|
[10245] | 134 | -DINSTALL_FONTS:BOOL=FALSE \ |
---|
[9277] | 135 | -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \ |
---|
| 136 | -DUSE_TBB:BOOL=FALSE \ |
---|
[11851] | 137 | -DUSE_OPENSSL:BOOL=TRUE \ |
---|
| 138 | -DSTOP_ON_WARNING:BOOL=FALSE \ |
---|
| 139 | -DUSE_CPP:STRING=14 \ |
---|
[9277] | 140 | %ifarch ppc ppc64 |
---|
| 141 | -DNOTHREADS:BOOL=FALSE \ |
---|
| 142 | %endif |
---|
[11851] | 143 | -DJPEG_INCLUDE_DIR=%{_includedir} \ |
---|
[9277] | 144 | -DVERBOSE=TRUE \ |
---|
| 145 | ../../ |
---|
| 146 | |
---|
[11781] | 147 | %{__make} %{?_smp_mflags} |
---|
[11851] | 148 | popd |
---|
[9277] | 149 | |
---|
| 150 | %install |
---|
| 151 | pushd build/linux |
---|
[11781] | 152 | %{make_install} |
---|
| 153 | popd |
---|
[9277] | 154 | |
---|
[11354] | 155 | # # Move man pages to the right directory |
---|
| 156 | # mkdir -p %{buildroot}%{_mandir}/man1 |
---|
| 157 | # cp -a src/doc/*.1 %{buildroot}%{_mandir}/man1 |
---|
[9277] | 158 | |
---|
[11781] | 159 | %post -p %{_syssbindir}/ldconfig |
---|
| 160 | %postun -p %{_syssbindir}/ldconfig |
---|
[9277] | 161 | |
---|
| 162 | |
---|
| 163 | %files |
---|
[12286] | 164 | %license LICENSE* |
---|
| 165 | %doc CHANGES.md CONTRIBUTING.md README.md |
---|
[9277] | 166 | %{_libdir}/libOpenImageIO.so.* |
---|
| 167 | %{_libdir}/libOpenImageIO_Util.so.* |
---|
[10245] | 168 | |
---|
[12286] | 169 | %files -n python3-%{name} |
---|
| 170 | %{python3_sitearch}/OpenImageIO.so |
---|
[9277] | 171 | |
---|
| 172 | %files utils |
---|
| 173 | %exclude %{_bindir}/iv |
---|
| 174 | %{_bindir}/* |
---|
[11354] | 175 | # %exclude %{_mandir}/man1/iv.1.gz |
---|
| 176 | # %{_mandir}/man1/*.1.gz |
---|
[9277] | 177 | |
---|
| 178 | %files iv |
---|
| 179 | %{_bindir}/iv |
---|
[11354] | 180 | # %{_mandir}/man1/iv.1.gz |
---|
[9277] | 181 | |
---|
| 182 | %files devel |
---|
| 183 | %doc src/doc/*.pdf |
---|
| 184 | %{_libdir}/libOpenImageIO.so |
---|
| 185 | %{_libdir}/libOpenImageIO_Util.so |
---|
[12286] | 186 | %dir %{_libdir}/pkgconfig |
---|
| 187 | %{_libdir}/pkgconfig/OpenImageIO.pc |
---|
| 188 | %dir %{_datadir}/cmake |
---|
| 189 | %dir %{_datadir}/cmake/Modules |
---|
| 190 | %{_datadir}/cmake/Modules/FindOpenImageIO.cmake |
---|
[9277] | 191 | %{_includedir}/* |
---|
| 192 | |
---|
| 193 | |
---|
| 194 | %changelog |
---|
[12286] | 195 | * Sat Oct 26 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.11-1 |
---|
| 196 | - new upstream release. |
---|
| 197 | |
---|
[12191] | 198 | * Sun Sep 08 2019 Toshiaki Ara <ara_t@384.jp> 1.8.17-1 |
---|
| 199 | - update to 1.8.17 |
---|
| 200 | |
---|
[11851] | 201 | * Tue Nov 06 2018 Toshiaki Ara <ara_t@384.jp> 1.8.16-1 |
---|
| 202 | - update to 1.8.16 |
---|
| 203 | - change BuildRequires: qt4-devel to qt5-qtbase-devel |
---|
| 204 | - drop BuildRequires: openssl-devel |
---|
| 205 | |
---|
[11781] | 206 | * Fri Aug 24 2018 Toshiaki Ara <ara_t@384.jp> 1.7.19-3 |
---|
| 207 | - update to 1.7.19 |
---|
| 208 | - using macro |
---|
| 209 | |
---|
[11751] | 210 | * Sat Aug 04 2018 Toshiaki Ara <ara_t@384.jp> 1.7.17-2 |
---|
| 211 | - rebuild with hdf5-1.8.20 |
---|
| 212 | |
---|
[11354] | 213 | * Mon Jan 08 2018 Toshiaki Ara <ara_t@384.jp> 1.7.17-1 |
---|
| 214 | - update to 1.7.17 |
---|
| 215 | |
---|
[10441] | 216 | * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.6.14-3 |
---|
| 217 | - rebuilt with LibRaw-0.17.2. |
---|
| 218 | |
---|
[10406] | 219 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.14-2 |
---|
| 220 | - rebuild with gcc-5.4.0 |
---|
| 221 | |
---|
[10369] | 222 | * Mon Jun 13 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.14-1 |
---|
| 223 | - new upstream release |
---|
| 224 | |
---|
[10245] | 225 | * Fri May 06 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.13-1 |
---|
| 226 | - new upstream release |
---|
| 227 | - remove Patch0 |
---|
| 228 | - create python-%%{name} subpackage |
---|
| 229 | |
---|
[9767] | 230 | * Thu Oct 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.15-2 |
---|
| 231 | - rebuild with glew-1.13.0 |
---|
| 232 | |
---|
[9277] | 233 | * Sun Jan 18 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.15-1 |
---|
| 234 | - initial build for Vine Linux |
---|
| 235 | - add Patch0 (oiio-Release-1.4.15-sign-compare.patch) |
---|
| 236 | |
---|
| 237 | |
---|
| 238 | * Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.4.15-2 |
---|
| 239 | - rebuild (openexr) |
---|
| 240 | |
---|
| 241 | * Tue Nov 25 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.15-1 |
---|
| 242 | - Update to latest upstream release. |
---|
| 243 | |
---|
| 244 | * Fri Nov 14 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.14-1 |
---|
| 245 | - Update to latest upstream release. |
---|
| 246 | |
---|
| 247 | * Fri Sep 5 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-4 |
---|
| 248 | - Rebuild for Field3D 1.4.3. |
---|
| 249 | |
---|
| 250 | * Thu Sep 04 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4.12-3 |
---|
| 251 | - Rebuild for pugixml 1.4 |
---|
| 252 | |
---|
| 253 | * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.12-2 |
---|
| 254 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 255 | |
---|
| 256 | * Fri Aug 1 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.12-1 |
---|
| 257 | - Update to latest upstream release. |
---|
| 258 | |
---|
| 259 | * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-4 |
---|
| 260 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 261 | |
---|
| 262 | * Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.4.7-3 |
---|
| 263 | - Rebuild for boost 1.55.0 |
---|
| 264 | |
---|
| 265 | * Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.4.7-2 |
---|
| 266 | - rebuild for boost 1.55.0 |
---|
| 267 | |
---|
| 268 | * Mon May 19 2014 Richard Shaw <hobbes1069@gmail.com> - 1.4.7-1 |
---|
| 269 | - Update to latest upstream release. |
---|
| 270 | |
---|
| 271 | * Tue Jan 7 2014 Richard Shaw <hobbes1069@gmail.com> - 1.3.10-1 |
---|
| 272 | - Update to latest upstream release. |
---|
| 273 | - Add libgif as build requirement. |
---|
| 274 | |
---|
| 275 | * Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.2.3-3 |
---|
| 276 | - rebuild (openexr) |
---|
| 277 | |
---|
| 278 | * Mon Nov 18 2013 Dave Airlie <airlied@redhat.com> - 1.2.3-2 |
---|
| 279 | - rebuilt for GLEW 1.10 |
---|
| 280 | |
---|
| 281 | * Wed Nov 6 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.3-1 |
---|
| 282 | - Update to latest upstream release. |
---|
| 283 | - Fix ppc builds (BZ#1021977). |
---|
| 284 | - Add conditionals to build requirements for EPEL 6. |
---|
| 285 | |
---|
| 286 | * Wed Oct 2 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.2-1 |
---|
| 287 | - Update to latest upstream release. |
---|
| 288 | |
---|
| 289 | * Sun Sep 08 2013 Rex Dieter <rdieter@fedoraproject.org> 1.2.1-2 |
---|
| 290 | - rebuild (ilmbase/openexr) |
---|
| 291 | |
---|
| 292 | * Thu Aug 8 2013 Richard Shaw <hobbes1069@gmail.com> - 1.2.1-1 |
---|
| 293 | - Update to latest upstream release. |
---|
| 294 | |
---|
| 295 | * Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3 |
---|
| 296 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
| 297 | |
---|
| 298 | * Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.2.0-2 |
---|
| 299 | - Rebuild for boost 1.54.0 |
---|