2a897a
2a897a
Name:	 ilmbase 
2a897a
Version: 1.0.3
8f4a81
Release: 7%{?dist}
2a897a
Summary: Abstraction/convenience libraries
2a897a
2a897a
Group:	 System Environment/Libraries
2a897a
License: BSD
2a897a
URL:	 http://www.openexr.com/
2a897a
Source0: https://github.com/downloads/openexr/openexr/ilmbase-%{version}.tar.gz
2a897a
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2a897a
2a897a
BuildRequires: automake libtool
2a897a
BuildRequires: pkgconfig
2a897a
# silly rpm, won't pick up rpm dependencies for items not in it's buildroot
2a897a
# see http://bugzilla.redhat.com/866302
2a897a
BuildRequires: pkgconfig(gl) pkgconfig(glu)
2a897a
2a897a
## upstreamable patches
2a897a
# revert soname bump
2a897a
# upstream missed bumping to so7 for OpenEXR-1.7.0, decided to do so now for
2a897a
# OpenEXR-1.7.1.  given fedora has shipped OpenEXR-1.7.0 since f15, bumping
2a897a
# ABI now makes little sense.
2a897a
Patch50: ilmbase-1.0.3-so6.patch
2a897a
# explicitly add $(PTHREAD_LIBS) to libIlmThread linkage (helps workaround below)
2a897a
Patch51: ilmbase-1.0.2-no_undefined.patch
2a897a
# the FPU exception code is x86 specific
2a897a
Patch52: ilmbase-1.0.3-secondary.patch
2a897a
# add Requires.private: gl glu to IlmBase.pc
2a897a
Patch53:  ilmbase-1.0.3-pkgconfig.patch
2a897a
2a897a
## upstream patches
2a897a
# fix build on i686/32bit
2a897a
# https://github.com/openexr/openexr/issues/3
2a897a
Patch100: ilmbase-1.0.3-ucontext.patch
2a897a
2a897a
%description
2a897a
Half is a class that encapsulates the ilm 16-bit floating-point format.
2a897a
2a897a
IlmThread is a thread abstraction library for use with OpenEXR
2a897a
and other software packages.
2a897a
2a897a
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
2a897a
and other useful 2D and 3D math functions.
2a897a
2a897a
Iex is an exception-handling library.
2a897a
2a897a
%package devel
2a897a
Summary: Headers and libraries for building apps that use %{name} 
2a897a
Group:	 Development/Libraries
2a897a
Requires: %{name}%{?_isa} = %{version}-%{release}
2a897a
%description devel
2a897a
%{summary}.
2a897a
2a897a
2a897a
%prep
2a897a
%setup -q
2a897a
2a897a
%patch50 -p1 -b .so6
2a897a
%patch51 -p1 -b .no_undefined
2a897a
%patch52 -p1 -b .secondary
2a897a
%patch53 -p1 -b .pkgconfig
2a897a
%if %{__isa_bits} == 32
2a897a
%patch100 -p1 -b .ucontext
2a897a
%endif
2a897a
./bootstrap
2a897a
2a897a
2a897a
%build
2a897a
%configure --disable-static
2a897a
2a897a
# manually set PTHREAD_LIBS to include -lpthread until libtool bogosity is fixed,
2a897a
# https://bugzilla.redhat.com/show_bug.cgi?id=661333
2a897a
make %{?_smp_mflags} PTHREAD_LIBS="-pthread -lpthread"
2a897a
2a897a
2a897a
%install
2a897a
rm -rf $RPM_BUILD_ROOT
2a897a
2a897a
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
2a897a
2a897a
rm -fv  $RPM_BUILD_ROOT%{_libdir}/lib*.la
2a897a
2a897a
2a897a
%check
2a897a
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
2a897a
test "$(pkg-config --modversion IlmBase)" = "%{version}"
2a897a
# is the known-failure ix86-specific or 32bit specific? guess we'll find out -- rex
2a897a
%ifarch %{ix86}
2a897a
make check ||:
2a897a
%else
2a897a
make check
2a897a
%endif
2a897a
2a897a
2a897a
%clean
2a897a
rm -rf $RPM_BUILD_ROOT
2a897a
2a897a
2a897a
%post -p /sbin/ldconfig
2a897a
%postun -p /sbin/ldconfig
2a897a
2a897a
%files
2a897a
%defattr(-,root,root,-)
2a897a
%doc AUTHORS ChangeLog COPYING NEWS README
2a897a
%{_libdir}/libHalf.so.6*
2a897a
%{_libdir}/libIex.so.6*
2a897a
%{_libdir}/libIexMath.so.6*
2a897a
%{_libdir}/libIlmThread.so.6*
2a897a
%{_libdir}/libImath.so.6*
2a897a
2a897a
%files devel
2a897a
%defattr(-,root,root,-)
2a897a
%{_includedir}/OpenEXR/
2a897a
%{_libdir}/lib*.so
2a897a
%{_libdir}/pkgconfig/IlmBase.pc
2a897a
2a897a
2a897a
%changelog
8f4a81
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.3-7
8f4a81
- Mass rebuild 2014-01-24
8f4a81
8f4a81
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.3-6
8f4a81
- Mass rebuild 2013-12-27
8f4a81
2a897a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
2a897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2a897a
2a897a
* Mon Oct 15 2012 Rex Dieter <rdieter@fedoraproject.org> 1.0.3-4
2a897a
- ilmbase-devel missing dependency on libGLU-devel (#866302)
2a897a
2a897a
* Sat Sep 08 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-3
2a897a
- IlmBase.pc: +Requires.private: gl glu
2a897a
- -devel: drop hard-coded libGL/pkgconfig deps, let rpm autodetect now
2a897a
2a897a
* Tue Sep 04 2012 Dan Horák <dan[at]danny.cz> 1.0.3-2
2a897a
- fix build on non-x86 arches
2a897a
2a897a
* Sun Aug 05 2012 Rex Dieter <rdieter@fedoraproject.org> 1.0.3-1
2a897a
- ilmbase-1.0.3
2a897a
- ix86 fix courtesy of Nicolas Chauvet <kwizart@gmail.com>
2a897a
2a897a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
2a897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2a897a
2a897a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
2a897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2a897a
2a897a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
2a897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2a897a
2a897a
* Wed Dec 08 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
2a897a
- libIlmThread missing -pthread linkage (#661115)
2a897a
- %%install: INSTALL="install -p"
2a897a
- -devel: tighten dep using %%?_isa
2a897a
2a897a
* Wed Jul 28 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-1
2a897a
- ilmbase-1.0.2
2a897a
2a897a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
2a897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2a897a
2a897a
* Mon May  4 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-5
2a897a
- Fix spelling error in summary.
2a897a
2a897a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
2a897a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2a897a
2a897a
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-3
2a897a
- rebuild for pkgconfig deps
2a897a
2a897a
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
2a897a
- respin (gcc43)
2a897a
2a897a
* Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1
2a897a
- ilmbase-1.0.1
2a897a
2a897a
* Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3
2a897a
- include *.tar.sig in sources
2a897a
2a897a
* Mon Oct 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-2
2a897a
- update %%summary
2a897a
- -devel: +Requires: libGL-devel libGLU-devel
2a897a
- make install ... INSTALL="install -p" to preserve timestamps
2a897a
2a897a
2a897a
* Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-1
2a897a
- ilmbase-1.0.0 (first try)
2a897a