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