3fc876
3fc876
Name:	 OpenEXR
3fc876
Version: 1.7.1
b85ae4
Release: 8%{?dist}
3fc876
Summary: A high dynamic-range (HDR) image file format
3fc876
3fc876
Group:	 System Environment/Libraries
3fc876
License: BSD
3fc876
URL:	 http://www.openexr.com/
3fc876
Source0: https://github.com/downloads/openexr/openexr/openexr-%{version}.tar.gz
3fc876
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3fc876
3fc876
%global soname 7
3fc876
3fc876
## fedora patches
3fc876
%if 0%{?fedora} < 19 && 0%{?rhel} < 7
3fc876
# revert soname bump
3fc876
# upstream missed bumping to so7 for OpenEXR-1.7.0, decided to do so now for
3fc876
# OpenEXR-1.7.1.  given fedora has shipped OpenEXR-1.7.0 since f15, bumping
3fc876
# ABI now makes little sense.
3fc876
%global soname 6
3fc876
Patch0: openexr-1.7.1-so6.patch
3fc876
BuildRequires: automake libtool
3fc876
%endif
3fc876
b85ae4
Patch1: CVE-2020-11764.patch
b85ae4
Patch2: CVE-2020-11763.patch
b85ae4
Patch3: CVE-2020-11761.patch
b85ae4
3fc876
Obsoletes: openexr < %{version}-%{release}
3fc876
Provides:  openexr = %{version}-%{release}
3fc876
3fc876
BuildRequires:  ilmbase-devel 
3fc876
BuildRequires:  zlib-devel
3fc876
BuildRequires:  pkgconfig
3fc876
3fc876
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
3fc876
3fc876
%description
3fc876
OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial
3fc876
Light & Magic for use in computer imaging applications. This package contains
3fc876
libraries and sample applications for handling the format.
3fc876
3fc876
%package devel
3fc876
Summary: Headers and libraries for building apps that use %{name} 
3fc876
Group:	 Development/Libraries
3fc876
Obsoletes: openexr-devel < %{version}-%{release}
3fc876
Provides:  openexr-devel = %{version}-%{release}
3fc876
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
3fc876
Requires: ilmbase-devel
3fc876
Requires: pkgconfig
3fc876
%description devel
3fc876
%{summary}.
3fc876
3fc876
%package libs
3fc876
Summary: %{name} runtime libraries
3fc876
Group:   System Environment/Libraries
3fc876
%description libs
3fc876
%{summary}.
3fc876
3fc876
3fc876
%prep
3fc876
%setup -q -n openexr-%{version}
3fc876
3fc876
%if "%{?soname}" == "6"
3fc876
%patch0 -p1 -b .so6
3fc876
./bootstrap
3fc876
%endif
3fc876
b85ae4
%patch1 -p1 -b .CVE-2020-11764
b85ae4
%patch2 -p1 -b .CVE-2020-11763
b85ae4
%patch3 -p1 -b .CVE-2020-11761
b85ae4
3fc876
%build
3fc876
%configure --disable-static
3fc876
3fc876
# hack to omit unused-direct-shlib-dependencies
3fc876
#sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
3fc876
3fc876
make %{?_smp_mflags}
3fc876
3fc876
3fc876
%install
3fc876
rm -rf $RPM_BUILD_ROOT
3fc876
3fc876
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
3fc876
3fc876
#unpackaged files
3fc876
find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';'
3fc876
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
3fc876
3fc876
3fc876
%check
3fc876
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
3fc876
test "$(pkg-config --modversion OpenEXR)" = "%{version}"
3fc876
make check
3fc876
3fc876
3fc876
%clean
3fc876
rm -rf $RPM_BUILD_ROOT
3fc876
3fc876
3fc876
%files
3fc876
%defattr(-,root,root,-)
3fc876
%{_bindir}/*
3fc876
3fc876
%post libs -p /sbin/ldconfig
3fc876
%postun libs  -p /sbin/ldconfig
3fc876
3fc876
%files libs
3fc876
%defattr(-,root,root,-)
3fc876
%doc AUTHORS ChangeLog LICENSE NEWS README
3fc876
%{_libdir}/libIlmImf.so.%{soname}*
3fc876
3fc876
%files devel
3fc876
%defattr(-,root,root,-)
3fc876
#omit for now, they're mostly useless, and include multilib conflicts (#342781)
3fc876
#doc rpmdocs/examples 
3fc876
%{_datadir}/aclocal/openexr.m4
3fc876
%{_includedir}/OpenEXR/*
3fc876
%{_libdir}/libIlmImf.so
3fc876
%{_libdir}/pkgconfig/OpenEXR.pc
3fc876
3fc876
3fc876
%changelog
b85ae4
* Tue Jun 02 2020 Josef Ridky <jridky@redhat.com> - 1.7.1-8
b85ae4
- fix CVE-2020-11764 (#1833552)
b85ae4
- fix CVE-2020-11763 (#1833566)
b85ae4
- fix CVE-2020-11761 (#1834461)
b85ae4
3cbc57
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.7.1-7
3cbc57
- Mass rebuild 2014-01-24
3cbc57
3cbc57
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.7.1-6
3cbc57
- Mass rebuild 2013-12-27
3cbc57
3fc876
* Sun Mar 10 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.7.1-5
3fc876
- Back to upstream ABI (f19+, el7+)
3fc876
3fc876
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-4
3fc876
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3fc876
3fc876
* Mon Oct 15 2012 Nicolas Chauvet <kwizart@gmail.com> - 1.7.1-3
3fc876
- Bump to hide revertion
3fc876
3fc876
* Fri Aug 31 2012 Rex Dieter <rdieter@fedoraproject.org> 1.7.1-2
3fc876
- rebuild
3fc876
3fc876
* Thu Aug 02 2012 Nicolas Chauvet <kwizart@gmail.com> - 1.7.1-1
3fc876
- Update to 1.7.1
3fc876
3fc876
-* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-5
3fc876
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3fc876
3fc876
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-4
3fc876
- Rebuilt for c++ ABI breakage
3fc876
3fc876
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-3
3fc876
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3fc876
3fc876
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
3fc876
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3fc876
3fc876
* Wed Aug 11 2010 Rex Dieter <rdieter@fedoraproject.org> 1.7.0-1
3fc876
- openexr-1.7.0
3fc876
3fc876
* Wed Jul 29 2009 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-8
3fc876
- CVE-2009-1720 OpenEXR: Multiple integer overflows (#513995)
3fc876
- CVE-2009-1721 OpenEXR: Invalid pointer free by image decompression (#514003)
3fc876
3fc876
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-7
3fc876
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3fc876
3fc876
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-6
3fc876
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3fc876
3fc876
* Fri Dec 12 2008 Caolán McNamara <caolanm@redhat.com> 1.6.1-5
3fc876
- rebuild to get provides pkgconfig(OpenEXR)
3fc876
3fc876
* Fri May 09 2008 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-4
3fc876
- drop: Obsoletes: OpenEXR-utils (see OpenEXR_Viewers review, bug #428228c3)
3fc876
3fc876
* Fri Feb 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-3
3fc876
- gcc43 patch
3fc876
- purge rpaths
3fc876
3fc876
* Wed Jan 09 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.1-2
3fc876
- hack to omit unused-direct-shlib-dependencies
3fc876
- conditionalize -libs (f8+)
3fc876
3fc876
* Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.1-1
3fc876
- openexr-1.6.1
3fc876
3fc876
* Mon Oct 30 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-5
3fc876
- multiarch conflicts in OpenEXR (#342781)
3fc876
- don't own %%_includedir/OpenEXR (leave that to ilmbase)
3fc876
3fc876
* Mon Oct 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-4
3fc876
- -libs: %%post/%%postun -p /sbin/ldconfig
3fc876
3fc876
* Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-2
3fc876
- openexr-1.6.0
3fc876
3fc876
* Mon Sep 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.4.0a-6
3fc876
- libs: -Requires: %%name
3fc876
3fc876
* Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.4.0a-5
3fc876
- -libs: new subpkg to be multilib friendly
3fc876
- -utils: package exrdisplay separately (separate fltk dep)
3fc876
3fc876
* Sat Oct 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-4
3fc876
- Obsoletes/Provides: openexr(-devel) (rpmforge compatibility)
3fc876
3fc876
* Thu Sep 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-3
3fc876
- pkgconfig patch to use Libs.private
3fc876
3fc876
* Thu Sep 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-2
3fc876
- -devel: +Requires: pkgconfig
3fc876
3fc876
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-1
3fc876
- openexr-1.4.0a
3fc876
3fc876
* Sat Feb 18 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-7
3fc876
- Further zlib fixes (#165729)
3fc876
3fc876
* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-6
3fc876
- Rebuild for Fedora Extras 5
3fc876
3fc876
* Wed Aug 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-5
3fc876
- Remove *.a from %%files devel
3fc876
3fc876
* Tue Aug 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-4
3fc876
- Removed -devel dep on zlib-devel (#165729)
3fc876
- Added --disable-static to %%configure
3fc876
- Fixed build with GCC 4.0.1
3fc876
- Added .so links to -devel
3fc876
3fc876
* Wed May 18 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-3
3fc876
- Add zlib-devel to BR
3fc876
- Delete all .la files (#157652)
3fc876
3fc876
* Mon May  9 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-2
3fc876
- Add disttag
3fc876
3fc876
* Sun May  8 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-2
3fc876
- Fix BuildRequires
3fc876
- Fix Requires on -devel
3fc876
- Add %%post[un] scriptlets
3fc876
- Fix ownership in -devel
3fc876
- Don't have .deps files in %%doc
3fc876
3fc876
* Wed Mar 30 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-1
3fc876
- Initial RPM release