File libilmbase6.spec of Package libilmbase6
#
# spec file for package libilmbase6 (Version 1.0.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libilmbase6
BuildRequires: gcc-c++
BuildRequires: pkg-config
Summary: Base library for ILM software (OpenEXR)
Version: 1.0.2
Release: 1
License: BSD3c
Group: Development/Libraries/C and C++
Url: http://www.openexr.com
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: ilmbase-%version.tar.bz2
Source1: baselibs.conf
#PATCH-FIX-OPENSUSE: missing header for memcpy/memset
Patch0: libilmbase6-headers.patch
# Renamed to libilmbase6 to met the Shared Library Policy
Obsoletes: IlmBase <= 1.0.1
Provides: IlmBase = %{version}
%description
Base library for Industrial Light & Magic software (OpenEXR).
* Half is a class that encapsulates our 16-bit floating-point
format.
* IlmThread is a thread abstraction library for use with OpenEXR and
other software packages. It currently supports pthreads and
Windows threads.
* Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices,
quaternions and other useful 2D and 3D math functions.
* Iex is an exception-handling library.
%package -n libilmbase-devel
License: BSD3c ; GPLv2+
Requires: %{name} = %{version} libstdc++-devel
Group: Development/Libraries/C and C++
Summary: Base library for ILM software (OpenEXR)
# Renamed to libilmbase6 to met the Shared Library Policy
Obsoletes: IlmBase-devel <= 1.0.1
Provides: IlmBase-devel = %{version}
%description -n libilmbase-devel
Base library for Industrial Light & Magic software (OpenEXR).
* Half is a class that encapsulates our 16-bit floating-point
format.
* IlmThread is a thread abstraction library for use with OpenEXR and
other software packages. It currently supports pthreads and
Windows threads.
* Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices,
quaternions and other useful 2D and 3D math functions.
* Iex is an exception-handling library.
%prep
%setup -q -n ilmbase-%version
%patch0 -p1 -b .headers
# remove a non unix READMEs
rm README.win32
%build
export PTHREAD_LIBS="-lpthread"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
%{makeinstall}
%{__rm} -f %{buildroot}%{_libdir}/*.la
%check
#XXX: workaround for a build fail with gcc45 with -02 on i586
%if %{suse_version} >= 1130
%ifarch %ix86
%{__make} CXXFLAGS="`echo "%optflags" | sed 's/O2/O1/'`" check
%endif
%endif
%{__make} check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING LICENSE NEWS README*
%_libdir/libHalf.so.*
%_libdir/libIex.so.*
%_libdir/libImath.so.*
%_libdir/libIlmThread.so.*
%files -n libilmbase-devel
%defattr(-,root,root)
%{_includedir}/OpenEXR
%_libdir/libHalf.so
%_libdir/libIex.so
%_libdir/libImath.so
%_libdir/libIlmThread.so
%_libdir/pkgconfig/IlmBase.pc
%changelog