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