dc231c
%{?!python3_pkgversion:%global python3_pkgversion 3}
dc231c
%global sover 30
dc231c
dc231c
Name:           openexr
dc231c
Version:        3.1.1
dc231c
Release:        2%{?dist}
dc231c
Summary:        Provides the specification and reference implementation of the EXR file format
dc231c
dc231c
License:        BSD
dc231c
URL:            https://www.openexr.com/
dc231c
Source0:        https://github.com/AcademySoftwareFoundation/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
dc231c
dc231c
BuildRequires:  cmake gcc gcc-c++
dc231c
BuildRequires:  boost-devel
dc231c
BuildRequires:  imath-devel
dc231c
BuildRequires:  python%{python3_pkgversion}-devel
dc231c
BuildRequires:  zlib-devel
dc231c
dc231c
Obsoletes:      OpenEXR < 2.5.3
dc231c
Provides:       OpenEXR = %{version}-%{release}
dc231c
dc231c
%description
dc231c
OpenEXR is an open-source high-dynamic-range floating-point image file format
dc231c
for high-quality image processing and storage. This document presents a brief
dc231c
overview of OpenEXR and explains concepts that are specific to this format.
dc231c
dc231c
This package containes the binaries for OpenEXR.
dc231c
dc231c
dc231c
%package libs
dc231c
Summary:        OpenEXR Libraries
dc231c
Provides:       OpenEXR-libs = %{version}-%{release}
dc231c
Obsoletes:      OpenEXR-libs < 2.5.3
dc231c
dc231c
%description libs
dc231c
OpenEXR is an open-source high-dynamic-range floating-point image file format
dc231c
for high-quality image processing and storage. This document presents a brief
dc231c
overview of OpenEXR and explains concepts that are specific to this format.
dc231c
dc231c
OpenEXR Features:
dc231c
dc231c
* High dynamic range and color precision.  Support for 16-bit floating-point,
dc231c
* 32-bit floating-point, and 32-bit integer pixels.
dc231c
* Multiple image compression algorithms, both lossless and lossy. Some of
dc231c
  the included codecs can achieve 2:1 lossless compression ratios on images
dc231c
  with film grain.  The lossy codecs have been tuned for visual quality and
dc231c
  decoding performance.
dc231c
* Extensibility. New compression codecs and image types can easily be added
dc231c
  by extending the C++ classes included in the OpenEXR software distribution.
dc231c
  New image attributes (strings, vectors, integers, etc.) can be added to
dc231c
  OpenEXR image headers without affecting backward compatibility with existing
dc231c
  OpenEXR applications.
dc231c
* Support for stereoscopic image workflows and a generalization
dc231c
  to multi-views.
dc231c
* Flexible support for deep data: pixels can store a variable-length list
dc231c
  of samples and, thus, it is possible to store multiple values at different
dc231c
  depths for each pixel. Hard surfaces and volumetric data representations are
dc231c
  accommodated.
dc231c
* Multipart: ability to encode separate, but related, images in one file.
dc231c
  This allows for access to individual parts without the need to read other
dc231c
  parts in the file.
dc231c
* Versioning: OpenEXR source allows for user configurable C++
dc231c
  namespaces to provide protection when using multiple versions of the library
dc231c
  in the same process space.
dc231c
dc231c
The IlmBase Library:
dc231c
dc231c
Also a part of OpenEXR, the IlmBase library is a basic, light-weight, and
dc231c
efficient representation of 2D and 3D vectors and matrices and other simple but
dc231c
useful mathematical objects, functions, and data types common in computer
dc231c
graphics applications, including the “half” 16-bit floating-point type.
dc231c
dc231c
dc231c
%package devel
dc231c
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
dc231c
dc231c
Provides:       OpenEXR-devel = %{version}-%{release}
dc231c
Provides:       OpenEXR-devel%{?_isa} = %{version}-%{release}
dc231c
Obsoletes:      OpenEXR-devel < 2.5.3
dc231c
dc231c
Provides:       ilmbase-devel = %{version}-%{release}
dc231c
Provides:       ilmbase-devel%{?_isa} = %{version}-%{release}
dc231c
Obsoletes:      ilmbase-devel < 2.5.3
dc231c
dc231c
Summary:        Development files for %{name}
dc231c
dc231c
%description devel
dc231c
%{summary}.
dc231c
dc231c
dc231c
%prep
dc231c
%autosetup -p1
dc231c
dc231c
dc231c
%build
dc231c
%cmake
dc231c
%cmake_build
dc231c
dc231c
dc231c
%install
dc231c
%cmake_install
dc231c
dc231c
dc231c
%check
dc231c
# Test 4 currently fails on aarch64 and sometimes times out on armv7hl
dc231c
# https://github.com/AcademySoftwareFoundation/openexr/issues/876
dc231c
%ifnarch s390x armv7hl i686
dc231c
%ctest
dc231c
%endif
dc231c
dc231c
dc231c
%files
dc231c
%{_bindir}/*
dc231c
dc231c
%files libs
dc231c
%doc CHANGES.md CONTRIBUTING.md GOVERNANCE.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md
dc231c
%license LICENSE.md
dc231c
%{_libdir}/*.so.%{sover}*
dc231c
dc231c
%files devel
dc231c
%{_docdir}/OpenEXR/
dc231c
%{_includedir}/OpenEXR/
dc231c
%{_libdir}/*.so
dc231c
%{_libdir}/cmake/OpenEXR/
dc231c
%{_libdir}/pkgconfig/OpenEXR.pc
dc231c
dc231c
dc231c
%changelog
dc231c
* Mon Aug 23 2021 Josef Ridky <jridky@redhat.com> - 3.1.1-2
dc231c
- fix issue with tests on specified architectures
dc231c
dc231c
* Thu Aug 05 2021 Josef Ridky <jridky@redhat.com> - 3.1.1-1
dc231c
- New upstream release 3.1.1
dc231c
dc231c
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-2
dc231c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
dc231c
dc231c
* Tue Jul 20 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.5-1
dc231c
- Update to 3.0.5.
dc231c
dc231c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.5-2
dc231c
- Rebuilt for Python 3.10
dc231c
dc231c
* Mon Mar 15 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.5-1
dc231c
- Update to 2.5.5.
dc231c
dc231c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-4
dc231c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
dc231c
dc231c
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 2.5.4-3
dc231c
- Rebuilt for Boost 1.75
dc231c
dc231c
* Mon Jan 18 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-2
dc231c
- Fix Provides/Obsoletes of OpenEXR package.
dc231c
dc231c
* Wed Jan 06 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-1
dc231c
- Update to 2.5.4.
dc231c
dc231c
* Wed Dec  9 2020 Richard Shaw <hobbes1069@gmail.com> - 2.5.3-1
dc231c
- Repackaged due to massive changes in build system and inclusion of IlmBase.