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