be2314c
%{?!python3_pkgversion:%global python3_pkgversion 3}
eabecc5
%global sover 30
be2314c
be2314c
Name:           openexr
9ccccba
Version:        3.1.10
9ccccba
Release:        1%{?dist}
be2314c
Summary:        Provides the specification and reference implementation of the EXR file format
be2314c
bb515d0
License:        BSD-3-Clause
be2314c
URL:            https://www.openexr.com/
be2314c
Source0:        https://github.com/AcademySoftwareFoundation/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
be2314c
2f32d66
Patch0:         openexr-cstdint.patch
2f32d66
be2314c
BuildRequires:  cmake gcc gcc-c++
be2314c
BuildRequires:  boost-devel
a14aaf7
BuildRequires:  imath-devel
be2314c
BuildRequires:  python%{python3_pkgversion}-devel
be2314c
BuildRequires:  zlib-devel
be2314c
b95aaf7
Obsoletes:      OpenEXR < 2.5.3
b95aaf7
Provides:       OpenEXR = %{version}-%{release}
b95aaf7
be2314c
%description
be2314c
OpenEXR is an open-source high-dynamic-range floating-point image file format
be2314c
for high-quality image processing and storage. This document presents a brief
be2314c
overview of OpenEXR and explains concepts that are specific to this format.
be2314c
be2314c
This package containes the binaries for OpenEXR.
be2314c
be2314c
be2314c
%package libs
be2314c
Summary:        OpenEXR Libraries
b95aaf7
Provides:       OpenEXR-libs = %{version}-%{release}
b95aaf7
Obsoletes:      OpenEXR-libs < 2.5.3
be2314c
be2314c
%description libs
be2314c
OpenEXR is an open-source high-dynamic-range floating-point image file format
be2314c
for high-quality image processing and storage. This document presents a brief
be2314c
overview of OpenEXR and explains concepts that are specific to this format.
be2314c
be2314c
OpenEXR Features:
be2314c
be2314c
* High dynamic range and color precision.  Support for 16-bit floating-point,
be2314c
* 32-bit floating-point, and 32-bit integer pixels.
be2314c
* Multiple image compression algorithms, both lossless and lossy. Some of
be2314c
  the included codecs can achieve 2:1 lossless compression ratios on images
be2314c
  with film grain.  The lossy codecs have been tuned for visual quality and
be2314c
  decoding performance.
be2314c
* Extensibility. New compression codecs and image types can easily be added
be2314c
  by extending the C++ classes included in the OpenEXR software distribution.
be2314c
  New image attributes (strings, vectors, integers, etc.) can be added to
be2314c
  OpenEXR image headers without affecting backward compatibility with existing
be2314c
  OpenEXR applications.
be2314c
* Support for stereoscopic image workflows and a generalization
be2314c
  to multi-views.
be2314c
* Flexible support for deep data: pixels can store a variable-length list
be2314c
  of samples and, thus, it is possible to store multiple values at different
be2314c
  depths for each pixel. Hard surfaces and volumetric data representations are
be2314c
  accommodated.
be2314c
* Multipart: ability to encode separate, but related, images in one file.
be2314c
  This allows for access to individual parts without the need to read other
be2314c
  parts in the file.
be2314c
* Versioning: OpenEXR source allows for user configurable C++
be2314c
  namespaces to provide protection when using multiple versions of the library
be2314c
  in the same process space.
be2314c
be2314c
The IlmBase Library:
be2314c
be2314c
Also a part of OpenEXR, the IlmBase library is a basic, light-weight, and
be2314c
efficient representation of 2D and 3D vectors and matrices and other simple but
be2314c
useful mathematical objects, functions, and data types common in computer
be2314c
graphics applications, including the “half” 16-bit floating-point type.
be2314c
be2314c
be2314c
%package devel
be2314c
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
be2314c
be2314c
Provides:       OpenEXR-devel = %{version}-%{release}
be2314c
Provides:       OpenEXR-devel%{?_isa} = %{version}-%{release}
be2314c
Obsoletes:      OpenEXR-devel < 2.5.3
be2314c
be2314c
Provides:       ilmbase-devel = %{version}-%{release}
be2314c
Provides:       ilmbase-devel%{?_isa} = %{version}-%{release}
be2314c
Obsoletes:      ilmbase-devel < 2.5.3
be2314c
be2314c
Summary:        Development files for %{name}
be2314c
be2314c
%description devel
be2314c
%{summary}.
be2314c
be2314c
be2314c
%prep
be2314c
%autosetup -p1
be2314c
be2314c
be2314c
%build
be2314c
%cmake
be2314c
%cmake_build
be2314c
be2314c
be2314c
%install
be2314c
%cmake_install
be2314c
be2314c
be2314c
%check
4b7ecb8
# Some tests fail on particular architectures
4b7ecb8
%ifarch %{ix86}
4b7ecb8
# https://github.com/AcademySoftwareFoundation/openexr/issues/1459 (fixed in 3.1.10)
4b7ecb8
# https://github.com/AcademySoftwareFoundation/openexr/issues/1460
4b7ecb8
EXCLUDE_REGEX='DWA[AB]Compression|CPUIdent'
4b7ecb8
%endif
4b7ecb8
%ifarch aarch64 ppc64le
4b7ecb8
# https://github.com/AcademySoftwareFoundation/openexr/issues/1460
4b7ecb8
EXCLUDE_REGEX='DWA[AB]Compression'
4b7ecb8
%endif
4b7ecb8
%ifarch s390x
b278b7e
# https://github.com/AcademySoftwareFoundation/openexr/issues/1175
4b7ecb8
EXCLUDE_REGEX='ReadDeep|DWA[AB]Compression|testCompression|Rgba|SampleImages|SharedFrameBuffer'
be2314c
%endif
524c79f
%ifarch x86_64
524c79f
# https://github.com/AcademySoftwareFoundation/openexr/issues/1456
524c79f
EXCLUDE_REGEX='OptimizedInterleavePatterns'
524c79f
%endif
4b7ecb8
%ctest --exclude-regex "$EXCLUDE_REGEX"
be2314c
be2314c
be2314c
%files
45a4655
%{_bindir}/exr2aces
45a4655
%{_bindir}/exrenvmap
45a4655
%{_bindir}/exrheader
45a4655
%{_bindir}/exrinfo
45a4655
%{_bindir}/exrmakepreview
45a4655
%{_bindir}/exrmaketiled
45a4655
%{_bindir}/exrmultipart
45a4655
%{_bindir}/exrmultiview
45a4655
%{_bindir}/exrstdattr
be2314c
be2314c
%files libs
be2314c
%doc CHANGES.md CONTRIBUTING.md GOVERNANCE.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md
be2314c
%license LICENSE.md
45a4655
%{_libdir}/libIex-3_1.so.%{sover}{,.*}
45a4655
%{_libdir}/libIlmThread-3_1.so.%{sover}{,.*}
45a4655
%{_libdir}/libOpenEXR-3_1.so.%{sover}{,.*}
45a4655
%{_libdir}/libOpenEXRCore-3_1.so.%{sover}{,.*}
45a4655
%{_libdir}/libOpenEXRUtil-3_1.so.%{sover}{,.*}
be2314c
be2314c
%files devel
be2314c
%{_docdir}/OpenEXR/
be2314c
%{_includedir}/OpenEXR/
45a4655
%{_libdir}/libIex{,-3_1}.so
45a4655
%{_libdir}/libIlmThread{,-3_1}.so
45a4655
%{_libdir}/libOpenEXR{,-3_1}.so
45a4655
%{_libdir}/libOpenEXRCore{,-3_1}.so
45a4655
%{_libdir}/libOpenEXRUtil{,-3_1}.so
be2314c
%{_libdir}/cmake/OpenEXR/
be2314c
%{_libdir}/pkgconfig/OpenEXR.pc
be2314c
be2314c
be2314c
%changelog
9ccccba
* Fri Aug 04 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.10-1
9ccccba
- Update to 3.1.10.
9ccccba
7129fe1
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.9-3
7129fe1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7129fe1
bb515d0
* Tue Jul 18 2023 Josef Ridky <jridky@redhat.com> - 3.1.9-2
bb515d0
- Migrate to SPDX license format
bb515d0
9dfb7ed
* Mon Jun 26 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.9-1
9dfb7ed
- Upgrade to 3.1.9.
9dfb7ed
5e8ca38
* Mon Jun 19 2023 Florian Weimer <fweimer@redhat.com> - 3.1.8-2
5e8ca38
- Disable F16C intrinsics on x86-64 (#2212579)
5e8ca38
bacd8a5
* Wed Jun 07 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.8-1
bacd8a5
- Update to 3.1.8.
bacd8a5
b6b6366
* Tue May 16 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.7-1
b6b6366
- Update to 3.1.7.
b6b6366
462d1df
* Mon Mar 20 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.6-1
462d1df
- Update to 3.1.6.
462d1df
45a4655
* Thu Feb 23 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.5-4
45a4655
- Do not use broad globs in shared directories
45a4655
4254413
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-3
4254413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4254413
9ea56f3
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-2
9ea56f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9ea56f3
acfc8de
* Tue Apr 12 2022 Richard Shaw <hobbes1069@gmail.com> - 3.1.5-1
acfc8de
- Update to 3.1.5.
acfc8de
16427f4
* Thu Mar 10 2022 Josef Ridky <jridky@redhat.com> - 3.1.4-1
16427f4
- Update to 3.1.4
16427f4
50feaa0
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-2
50feaa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
50feaa0
26b03f8
* Wed Nov 03 2021 Richard Shaw <hobbes1069@gmail.com> - 3.1.3-1
26b03f8
- Update to 3.1.3.
26b03f8
b278b7e
* Wed Oct 06 2021 Richard Shaw <hobbes1069@gmail.com> - 3.1.2-1
b278b7e
- Update to 3.1.2.
b278b7e
eabecc5
* Wed Aug 11 2021 Richard Shaw <hobbes1069@gmail.com> - 3.1.1-1
eabecc5
- Update to 3.1.1.
eabecc5
9cdb3cf
* Thu Aug 05 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.5-3
9cdb3cf
- Remove Threads::Threads from link libraries in f35+
9cdb3cf
d74e32f
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-2
d74e32f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d74e32f
a14aaf7
* Tue Jul 20 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.5-1
a14aaf7
- Update to 3.0.5.
a14aaf7
cb1fae0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.5-2
cb1fae0
- Rebuilt for Python 3.10
cb1fae0
1970d80
* Mon Mar 15 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.5-1
1970d80
- Update to 2.5.5.
1970d80
1a55ba1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-4
1a55ba1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1a55ba1
0d83f6a
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 2.5.4-3
0d83f6a
- Rebuilt for Boost 1.75
0d83f6a
b95aaf7
* Mon Jan 18 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-2
b95aaf7
- Fix Provides/Obsoletes of OpenEXR package.
b95aaf7
3272b5b
* Wed Jan 06 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-1
3272b5b
- Update to 2.5.4.
3272b5b
be2314c
* Wed Dec  9 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.3-1
be2314c
- Repackaged due to massive changes in build system and inclusion of IlmBase.