e40cc3
e40cc3
Name:    ilmbase
e40cc3
Summary: Abstraction/convenience libraries
e40cc3
Version: 2.2.0
e40cc3
Release: 13%{?dist}
e40cc3
e40cc3
License: BSD
e40cc3
URL:	 http://www.openexr.com/
e40cc3
Source0: http://download.savannah.nongnu.org/releases/openexr/ilmbase-%{version}.tar.gz
e40cc3
Source1: ilmbase-config.h
e40cc3
e40cc3
#BuildRequires: automake libtool
e40cc3
BuildRequires: pkgconfig
e40cc3
# silly rpm, won't pick up rpm dependencies for items not in it's buildroot
e40cc3
# see http://bugzilla.redhat.com/866302
e40cc3
BuildRequires: pkgconfig(gl) pkgconfig(glu)
e40cc3
e40cc3
## upstreamable patches
e40cc3
# explicitly add $(PTHREAD_LIBS) to libIlmThread linkage (helps PTHREAD_LIBS workaround in %%build)
e40cc3
Patch51: ilmbase-2.2.0-no_undefined.patch
e40cc3
# add Requires.private: gl glu to IlmBase.pc
e40cc3
Patch53:  ilmbase-1.0.3-pkgconfig.patch
e40cc3
# workaround glibc iszero macro
e40cc3
# https://bugzilla.redhat.com/show_bug.cgi?id=1383552
e40cc3
Patch54:  ilmbase-2.2.0-glibc_iszero.patch
e40cc3
e40cc3
## upstream patches
e40cc3
e40cc3
%description
e40cc3
Half is a class that encapsulates the ilm 16-bit floating-point format.
e40cc3
e40cc3
IlmThread is a thread abstraction library for use with OpenEXR
e40cc3
and other software packages.
e40cc3
e40cc3
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
e40cc3
and other useful 2D and 3D math functions.
e40cc3
e40cc3
Iex is an exception-handling library.
e40cc3
e40cc3
%package devel
e40cc3
Summary: Headers and libraries for building apps that use %{name} 
e40cc3
Requires: %{name}%{?_isa} = %{version}-%{release}
e40cc3
%description devel
e40cc3
%{summary}.
e40cc3
e40cc3
e40cc3
%prep
e40cc3
%setup -q
e40cc3
e40cc3
%patch51 -p1 -b .no_undefined
e40cc3
%patch53 -p1 -b .pkgconfig
e40cc3
#patch54 -p1 -b .glibc_iszero
e40cc3
e40cc3
#/bootstrap
e40cc3
e40cc3
e40cc3
%build
e40cc3
%configure --disable-static
e40cc3
e40cc3
# manually set PTHREAD_LIBS to include -lpthread until libtool bogosity is fixed,
e40cc3
# https://bugzilla.redhat.com/show_bug.cgi?id=661333
e40cc3
make %{?_smp_mflags} PTHREAD_LIBS="-pthread -lpthread"
e40cc3
e40cc3
e40cc3
%install
e40cc3
make install DESTDIR=%{buildroot}
e40cc3
e40cc3
rm -fv %{buildroot}%{_libdir}/lib*.la
e40cc3
# Fix multilibs header conflict
e40cc3
%ifarch x86_64 i686
e40cc3
%ifarch x86_64
e40cc3
mv %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig.h \
e40cc3
  %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig-64.h
e40cc3
%else
e40cc3
mv %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig.h \
e40cc3
  %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig-32.h
e40cc3
%endif
e40cc3
install -pm 0644 %{SOURCE1} %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig.h
e40cc3
%endif
e40cc3
e40cc3
e40cc3
%check
e40cc3
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
e40cc3
test "$(pkg-config --modversion IlmBase)" = "%{version}"
e40cc3
# is the known-failure ix86-specific or 32bit specific? guess we'll find out -- rex
e40cc3
# lt-ImathTest: testBoxAlgo.cpp:892: void {anonymous}::boxMatrixTransform(): Assertion `b21 == b2' failed.
e40cc3
%ifarch %{ix86}
e40cc3
make %{?_smp_mflags} check ||:
e40cc3
%else
e40cc3
make %{?_smp_mflags} check
e40cc3
%endif
e40cc3
e40cc3
e40cc3
%post -p /sbin/ldconfig
e40cc3
%postun -p /sbin/ldconfig
e40cc3
e40cc3
%files
e40cc3
%doc AUTHORS ChangeLog COPYING NEWS README
e40cc3
%{_libdir}/libHalf.so.12*
e40cc3
%{_libdir}/libIex-2_2.so.12*
e40cc3
%{_libdir}/libIexMath-2_2.so.12*
e40cc3
%{_libdir}/libIlmThread-2_2.so.12*
e40cc3
%{_libdir}/libImath-2_2.so.12*
e40cc3
e40cc3
%files devel
e40cc3
%{_includedir}/OpenEXR/
e40cc3
%{_libdir}/lib*.so
e40cc3
%{_libdir}/pkgconfig/IlmBase.pc
e40cc3
e40cc3
e40cc3
%changelog
e40cc3
* Wed Jan 13 2021 Josef Ridky <jridky@redhat.com> - 2.2.0-13
e40cc3
- add gating.yaml file
e40cc3
e40cc3
* Tue Jan 12 2021 Josef Ridky <jridky@redhat.com> - 2.2.0-12
e40cc3
- fix multilib conflict (#1853147)
e40cc3
e40cc3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-11
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e40cc3
e40cc3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-10
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e40cc3
e40cc3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-9
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e40cc3
e40cc3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-8
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e40cc3
e40cc3
* Thu Oct 27 2016 Rex Dieter <rdieter@fedoraproject.org> - 2.2.0-7
e40cc3
- drop iszero workaround, no longer needed (#1383552)
e40cc3
e40cc3
* Sun Oct 16 2016 Rex Dieter <rdieter@fedoraproject.org> - 2.2.0-6
e40cc3
- workaround glibc iszero macro (#1383552)
e40cc3
e40cc3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e40cc3
e40cc3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-4
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e40cc3
e40cc3
* Thu Apr 16 2015 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-3
e40cc3
- rebuild (gcc5)
e40cc3
e40cc3
* Wed Feb 18 2015 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-2
e40cc3
- rebuild (gcc5)
e40cc3
e40cc3
* Thu Nov 20 2014 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-1
e40cc3
- 2.2.0
e40cc3
e40cc3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e40cc3
e40cc3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e40cc3
e40cc3
* Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-1
e40cc3
- 2.1.0
e40cc3
e40cc3
* Thu Aug 29 2013 Rex Dieter <rdieter@fedoraproject.org>  2.0.1-1
e40cc3
- 2.0.1
e40cc3
e40cc3
* Thu Aug 29 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.3-7
e40cc3
- Fix spec issues, modernise spec
e40cc3
e40cc3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e40cc3
e40cc3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e40cc3
e40cc3
* Mon Oct 15 2012 Rex Dieter <rdieter@fedoraproject.org> 1.0.3-4
e40cc3
- ilmbase-devel missing dependency on libGLU-devel (#866302)
e40cc3
e40cc3
* Sat Sep 08 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-3
e40cc3
- IlmBase.pc: +Requires.private: gl glu
e40cc3
- -devel: drop hard-coded libGL/pkgconfig deps, let rpm autodetect now
e40cc3
e40cc3
* Tue Sep 04 2012 Dan Horák <dan[at]danny.cz> 1.0.3-2
e40cc3
- fix build on non-x86 arches
e40cc3
e40cc3
* Sun Aug 05 2012 Rex Dieter <rdieter@fedoraproject.org> 1.0.3-1
e40cc3
- ilmbase-1.0.3
e40cc3
- ix86 fix courtesy of Nicolas Chauvet <kwizart@gmail.com>
e40cc3
e40cc3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e40cc3
e40cc3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e40cc3
e40cc3
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e40cc3
e40cc3
* Wed Dec 08 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-2
e40cc3
- libIlmThread missing -pthread linkage (#661115)
e40cc3
- %%install: INSTALL="install -p"
e40cc3
- -devel: tighten dep using %%?_isa
e40cc3
e40cc3
* Wed Jul 28 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-1
e40cc3
- ilmbase-1.0.2
e40cc3
e40cc3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e40cc3
e40cc3
* Mon May  4 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-5
e40cc3
- Fix spelling error in summary.
e40cc3
e40cc3
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
e40cc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e40cc3
e40cc3
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-3
e40cc3
- rebuild for pkgconfig deps
e40cc3
e40cc3
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
e40cc3
- respin (gcc43)
e40cc3
e40cc3
* Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1
e40cc3
- ilmbase-1.0.1
e40cc3
e40cc3
* Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3
e40cc3
- include *.tar.sig in sources
e40cc3
e40cc3
* Mon Oct 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-2
e40cc3
- update %%summary
e40cc3
- -devel: +Requires: libGL-devel libGLU-devel
e40cc3
- make install ... INSTALL="install -p" to preserve timestamps
e40cc3
e40cc3
e40cc3
* Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-1
e40cc3
- ilmbase-1.0.0 (first try)
e40cc3