| 1 |
|
| 2 |
%if 0%{?fedora} > 7 || 0%{?rhel} > 5
|
| 3 |
# make -libs subpkg
|
| 4 |
%define libs 1
|
| 5 |
%endif
|
| 6 |
|
| 7 |
Name: OpenEXR
|
| 8 |
Version: 1.6.1
|
| 9 |
Release: 8%{?dist}
|
| 10 |
Summary: A high dynamic-range (HDR) image file format
|
| 11 |
|
| 12 |
Group: System Environment/Libraries
|
| 13 |
License: BSD
|
| 14 |
URL: http://www.openexr.com/
|
| 15 |
Source0: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz
|
| 16 |
Source1: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz.sig
|
| 17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 18 |
|
| 19 |
Obsoletes: openexr < %{version}-%{release}
|
| 20 |
Provides: openexr = %{version}-%{release}
|
| 21 |
|
| 22 |
Patch1: OpenEXR-1.6.1-pkgconfig.patch
|
| 23 |
Patch2: openexr-1.6.1-gcc43.patch
|
| 24 |
|
| 25 |
## upstream patches
|
| 26 |
Patch100: openexr-1.6.1-CVE-2009-1720-1.patch
|
| 27 |
Patch101: openexr-1.6.1-CVE-2009-1720-2.patch
|
| 28 |
Patch102: openexr-1.6.1-CVE-2009-1721.patch
|
| 29 |
|
| 30 |
BuildRequires: automake libtool
|
| 31 |
BuildRequires: ilmbase-devel
|
| 32 |
BuildRequires: zlib-devel
|
| 33 |
BuildRequires: pkgconfig
|
| 34 |
|
| 35 |
%if 0%{?libs}
|
| 36 |
Requires: %{name}-libs = %{version}-%{release}
|
| 37 |
%else
|
| 38 |
Obsoletes: %{name}-libs < %{version}-%{release}
|
| 39 |
Provides: %{name}-libs = %{version}-%{release}
|
| 40 |
%endif
|
| 41 |
|
| 42 |
%description
|
| 43 |
OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial
|
| 44 |
Light & Magic for use in computer imaging applications. This package contains
|
| 45 |
libraries and sample applications for handling the format.
|
| 46 |
|
| 47 |
%package devel
|
| 48 |
Summary: Headers and libraries for building apps that use %{name}
|
| 49 |
Group: Development/Libraries
|
| 50 |
Obsoletes: openexr-devel < %{version}-%{release}
|
| 51 |
Provides: openexr-devel = %{version}-%{release}
|
| 52 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
| 53 |
Requires: ilmbase-devel
|
| 54 |
Requires: pkgconfig
|
| 55 |
%description devel
|
| 56 |
%{summary}.
|
| 57 |
|
| 58 |
%package libs
|
| 59 |
Summary: %{name} runtime libraries
|
| 60 |
Group: System Environment/Libraries
|
| 61 |
%description libs
|
| 62 |
%{summary}.
|
| 63 |
|
| 64 |
|
| 65 |
%prep
|
| 66 |
%setup -q -n openexr-%{version}
|
| 67 |
|
| 68 |
%patch1 -p1 -b .pkgconfig
|
| 69 |
%patch2 -p1 -b .gcc43
|
| 70 |
|
| 71 |
%patch100 -p1 -b .CVE-2009-1720-1
|
| 72 |
%patch101 -p1 -b .CVE-2009-1720-2
|
| 73 |
%patch102 -p1 -b .CVE-2009-1721
|
| 74 |
|
| 75 |
# work to remove rpaths, recheck on new releases
|
| 76 |
aclocal -Im4
|
| 77 |
libtoolize --force
|
| 78 |
rm -f configure
|
| 79 |
autoconf
|
| 80 |
|
| 81 |
|
| 82 |
%build
|
| 83 |
%configure --disable-static
|
| 84 |
|
| 85 |
# hack to omit unused-direct-shlib-dependencies
|
| 86 |
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
| 87 |
|
| 88 |
make %{?_smp_mflags}
|
| 89 |
|
| 90 |
|
| 91 |
%install
|
| 92 |
rm -rf $RPM_BUILD_ROOT
|
| 93 |
|
| 94 |
make install DESTDIR=$RPM_BUILD_ROOT
|
| 95 |
|
| 96 |
# unpackaged files
|
| 97 |
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
| 98 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
| 99 |
|
| 100 |
# prepare docs
|
| 101 |
mkdir -p rpmdocs
|
| 102 |
cp -a IlmImfExamples rpmdocs/examples
|
| 103 |
rm -rf rpmdocs/examples/.deps
|
| 104 |
|
| 105 |
|
| 106 |
%check
|
| 107 |
# Not enabled, by default, takes a *very* long time. -- Rex
|
| 108 |
%{?_with_check:make check}
|
| 109 |
|
| 110 |
|
| 111 |
%clean
|
| 112 |
rm -rf $RPM_BUILD_ROOT
|
| 113 |
|
| 114 |
|
| 115 |
%post %{?libs:libs} -p /sbin/ldconfig
|
| 116 |
|
| 117 |
%postun %{?libs:libs} -p /sbin/ldconfig
|
| 118 |
|
| 119 |
|
| 120 |
%files
|
| 121 |
%defattr(-,root,root,-)
|
| 122 |
%{_bindir}/*
|
| 123 |
|
| 124 |
%if 0%{?libs}
|
| 125 |
%files libs
|
| 126 |
%defattr(-,root,root,-)
|
| 127 |
%endif
|
| 128 |
%doc AUTHORS ChangeLog LICENSE NEWS README
|
| 129 |
%{_libdir}/libIlmImf.so.6*
|
| 130 |
|
| 131 |
%files devel
|
| 132 |
%defattr(-,root,root,-)
|
| 133 |
#omit for now, they're mostly useless, and include multilib conflicts (#342781)
|
| 134 |
#doc rpmdocs/examples
|
| 135 |
%{_datadir}/aclocal/openexr.m4
|
| 136 |
%{_includedir}/OpenEXR/*
|
| 137 |
%{_libdir}/libIlmImf.so
|
| 138 |
%{_libdir}/pkgconfig/OpenEXR.pc
|
| 139 |
|
| 140 |
|
| 141 |
%changelog
|
| 142 |
* Wed Jul 29 2009 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-8
|
| 143 |
- CVE-2009-1720 OpenEXR: Multiple integer overflows (#513995)
|
| 144 |
- CVE-2009-1721 OpenEXR: Invalid pointer free by image decompression (#514003)
|
| 145 |
|
| 146 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-7
|
| 147 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 148 |
|
| 149 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-6
|
| 150 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 151 |
|
| 152 |
* Fri Dec 12 2008 Caolán McNamara <caolanm@redhat.com> 1.6.1-5
|
| 153 |
- rebuild to get provides pkgconfig(OpenEXR)
|
| 154 |
|
| 155 |
* Fri May 09 2008 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-4
|
| 156 |
- drop: Obsoletes: OpenEXR-utils (see OpenEXR_Viewers review, bug #428228c3)
|
| 157 |
|
| 158 |
* Fri Feb 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-3
|
| 159 |
- gcc43 patch
|
| 160 |
- purge rpaths
|
| 161 |
|
| 162 |
* Wed Jan 09 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.1-2
|
| 163 |
- hack to omit unused-direct-shlib-dependencies
|
| 164 |
- conditionalize -libs (f8+)
|
| 165 |
|
| 166 |
* Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.1-1
|
| 167 |
- openexr-1.6.1
|
| 168 |
|
| 169 |
* Mon Oct 30 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-5
|
| 170 |
- multiarch conflicts in OpenEXR (#342781)
|
| 171 |
- don't own %%_includedir/OpenEXR (leave that to ilmbase)
|
| 172 |
|
| 173 |
* Mon Oct 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-4
|
| 174 |
- -libs: %%post/%%postun -p /sbin/ldconfig
|
| 175 |
|
| 176 |
* Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-2
|
| 177 |
- openexr-1.6.0
|
| 178 |
|
| 179 |
* Mon Sep 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.4.0a-6
|
| 180 |
- libs: -Requires: %%name
|
| 181 |
|
| 182 |
* Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.4.0a-5
|
| 183 |
- -libs: new subpkg to be multilib friendly
|
| 184 |
- -utils: package exrdisplay separately (separate fltk dep)
|
| 185 |
|
| 186 |
* Sat Oct 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-4
|
| 187 |
- Obsoletes/Provides: openexr(-devel) (rpmforge compatibility)
|
| 188 |
|
| 189 |
* Thu Sep 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-3
|
| 190 |
- pkgconfig patch to use Libs.private
|
| 191 |
|
| 192 |
* Thu Sep 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-2
|
| 193 |
- -devel: +Requires: pkgconfig
|
| 194 |
|
| 195 |
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-1
|
| 196 |
- openexr-1.4.0a
|
| 197 |
|
| 198 |
* Sat Feb 18 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-7
|
| 199 |
- Further zlib fixes (#165729)
|
| 200 |
|
| 201 |
* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-6
|
| 202 |
- Rebuild for Fedora Extras 5
|
| 203 |
|
| 204 |
* Wed Aug 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-5
|
| 205 |
- Remove *.a from %%files devel
|
| 206 |
|
| 207 |
* Tue Aug 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-4
|
| 208 |
- Removed -devel dep on zlib-devel (#165729)
|
| 209 |
- Added --disable-static to %%configure
|
| 210 |
- Fixed build with GCC 4.0.1
|
| 211 |
- Added .so links to -devel
|
| 212 |
|
| 213 |
* Wed May 18 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-3
|
| 214 |
- Add zlib-devel to BR
|
| 215 |
- Delete all .la files (#157652)
|
| 216 |
|
| 217 |
* Mon May 9 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-2
|
| 218 |
- Add disttag
|
| 219 |
|
| 220 |
* Sun May 8 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-2
|
| 221 |
- Fix BuildRequires
|
| 222 |
- Fix Requires on -devel
|
| 223 |
- Add %%post[un] scriptlets
|
| 224 |
- Fix ownership in -devel
|
| 225 |
- Don't have .deps files in %%doc
|
| 226 |
|
| 227 |
* Wed Mar 30 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-1
|
| 228 |
- Initial RPM release
|