File libilmbase6.spec of Package libilmbase6
#
# spec file for package libilmbase6
#
# Copyright (c) 2012 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/
#
Name: libilmbase6
Version: 1.0.2
Release: 0
Summary: Base library for ILM software (OpenEXR)
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://www.openexr.com
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
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
Obsoletes: IlmBase <= 1.0.1
Provides: IlmBase = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
Summary: Base library for ILM software (OpenEXR)
License: BSD-3-Clause ; GPL-2.0+
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libstdc++-devel
# 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
./bootstrap
export PTHREAD_LIBS="-lpthread"
%configure --disable-static --with-pic
make %{?_smp_mflags}
%install
%{makeinstall}
rm -f %{buildroot}%{_libdir}/*.la
%check
#XXX: workaround for a build fail with gcc45 with -02 on i586
%if 0%{?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
%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