2010-08-09 11:58:48 +02:00
|
|
|
#
|
2011-04-21 11:53:52 +02:00
|
|
|
# spec file for package openexr
|
2010-08-09 11:58:48 +02:00
|
|
|
#
|
2013-04-20 22:07:36 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-08-09 11:58:48 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
%global so_suffix -Imf_2_0-20
|
|
|
|
|
2010-08-09 11:58:48 +02:00
|
|
|
Name: openexr
|
2013-07-16 16:45:24 +02:00
|
|
|
Version: 2.0.1
|
2012-08-08 10:56:55 +02:00
|
|
|
Release: 0
|
2010-08-09 11:58:48 +02:00
|
|
|
Summary: Utilities for work with HDR images in OpenEXR format
|
2012-10-03 09:20:45 +02:00
|
|
|
License: BSD-3-Clause
|
2010-08-09 11:58:48 +02:00
|
|
|
Group: Productivity/Graphics/Other
|
|
|
|
Url: http://www.openexr.com/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-04-20 22:07:36 +02:00
|
|
|
BuildRequires: automake
|
2013-07-16 16:45:24 +02:00
|
|
|
%if 0%{suse_version} >= 1220
|
|
|
|
BuildRequires: gpg-offline
|
|
|
|
%endif
|
2010-08-09 11:58:48 +02:00
|
|
|
BuildRequires: fltk-devel
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: gcc-c++
|
2013-04-20 22:07:36 +02:00
|
|
|
BuildRequires: ilmbase-devel >= 2.0.0
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: zlib-devel
|
2010-08-09 12:19:19 +02:00
|
|
|
Obsoletes: OpenEXR <= 1.6.1
|
|
|
|
Provides: OpenEXR = %{version}
|
2013-04-20 22:07:36 +02:00
|
|
|
Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
2013-07-16 16:45:24 +02:00
|
|
|
Source1: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: baselibs.conf
|
|
|
|
Source3: openexr.keyring
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
|
|
|
Industrial Light & Magic for use in computer imaging applications. This package
|
|
|
|
contains a set of utilities to work with this format.
|
|
|
|
|
|
|
|
* exrheader, a utility for dumping header information
|
|
|
|
* exrstdattr, a utility for modifying OpenEXR standard attributes
|
|
|
|
* exrmaketiled, for generating tiled and rip/mipmapped images
|
|
|
|
* exrenvmap, for creating OpenEXR environment maps
|
|
|
|
* exrmakepreview, for creating preview images for OpenEXR files
|
|
|
|
* exr2aces, converter to ACES format
|
|
|
|
* exrmultiview, combine two or more images into one multi-view
|
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
%package -n libIlmImf%{so_suffix}
|
2010-08-09 11:58:48 +02:00
|
|
|
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
2012-05-03 10:59:07 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-08-09 11:58:48 +02:00
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
%description -n libIlmImf%{so_suffix}
|
2010-08-09 11:58:48 +02:00
|
|
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
|
|
|
Industrial Light & Magic for use in computer imaging applications.
|
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
This package contains shared library libIlmImf
|
2010-08-09 11:58:48 +02:00
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
%post -n libIlmImf%{so_suffix} -p /sbin/ldconfig
|
2012-08-08 10:56:55 +02:00
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
%postun -n libIlmImf%{so_suffix} -p /sbin/ldconfig
|
2012-08-08 10:56:55 +02:00
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
%files -n libIlmImf%{so_suffix}
|
2012-08-08 10:56:55 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
2013-04-20 22:07:36 +02:00
|
|
|
%{_libdir}/libIlmImf-*.so.*
|
2012-08-08 10:56:55 +02:00
|
|
|
|
|
|
|
%package devel
|
2010-08-09 11:58:48 +02:00
|
|
|
Summary: Library to Handle EXR Pictures (16-bit floating-point format)
|
2012-05-03 10:59:07 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-08-09 11:58:48 +02:00
|
|
|
Obsoletes: OpenEXR-devel <= 1.6.1
|
|
|
|
Provides: OpenEXR-devel = %{version}
|
2012-08-08 10:56:55 +02:00
|
|
|
Obsoletes: libopenexr-devel <= 1.7.0
|
|
|
|
Provides: libopenexr-devel = %{version}
|
2013-04-20 22:29:45 +02:00
|
|
|
Requires: libIlmImf%{so_suffix} = %{version}
|
2010-08-09 11:58:48 +02:00
|
|
|
Requires: libilmbase-devel
|
|
|
|
Requires: pkg-config
|
2012-05-03 10:59:07 +02:00
|
|
|
Requires: zlib-devel
|
2010-08-09 11:58:48 +02:00
|
|
|
|
2012-08-08 10:56:55 +02:00
|
|
|
%description devel
|
2010-08-09 11:58:48 +02:00
|
|
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
|
|
|
Industrial Light & Magic for use in computer imaging applications.
|
|
|
|
|
|
|
|
This package contains header files.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
2012-05-03 10:59:07 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-08-09 11:58:48 +02:00
|
|
|
Obsoletes: OpenEXR-doc <= 1.6.1
|
|
|
|
Provides: OpenEXR-doc = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
|
|
|
Industrial Light & Magic for use in computer imaging applications.
|
|
|
|
|
|
|
|
This package contains a documentation
|
|
|
|
|
|
|
|
%prep
|
2013-07-16 16:45:24 +02:00
|
|
|
%{?gpg_verify: %gpg_verify %{S:1}}
|
2012-05-03 10:59:07 +02:00
|
|
|
%setup -q
|
2012-08-08 10:56:55 +02:00
|
|
|
|
|
|
|
# remove a non-linux file
|
2010-08-09 11:58:48 +02:00
|
|
|
%{__rm} README.win32 README.OSX
|
|
|
|
|
|
|
|
%build
|
|
|
|
#autoreconf --force --install --include=config
|
|
|
|
#
|
|
|
|
export PTHREAD_LIBS="-lpthread"
|
|
|
|
%{configure} \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--enable-large-stack \
|
|
|
|
--enable-imfexamples \
|
|
|
|
--enable-imfuzztest
|
2011-04-21 11:53:40 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%{makeinstall}
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
2013-04-20 22:07:36 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_defaultdocdir}/
|
2013-07-16 16:45:24 +02:00
|
|
|
mv %{buildroot}%{_datadir}/doc/OpenEXR-2* %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
2013-04-20 22:07:36 +02:00
|
|
|
|
2010-08-09 11:58:48 +02:00
|
|
|
%check
|
2012-05-03 10:59:07 +02:00
|
|
|
#XXX: it seems running tests in BS is not very reliable, so
|
|
|
|
# so let disable it
|
|
|
|
# % {__make} check
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING LICENSE NEWS README*
|
|
|
|
%{_bindir}/exrenvmap
|
|
|
|
%{_bindir}/exrheader
|
|
|
|
%{_bindir}/exrmakepreview
|
|
|
|
%{_bindir}/exrmaketiled
|
|
|
|
%{_bindir}/exrstdattr
|
|
|
|
%{_bindir}/exrmultiview
|
2013-04-20 22:07:36 +02:00
|
|
|
%{_bindir}/exrmultipart
|
2010-08-09 11:58:48 +02:00
|
|
|
|
2012-08-08 10:56:55 +02:00
|
|
|
%files devel
|
2010-08-09 11:58:48 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/OpenEXR
|
|
|
|
%{_libdir}/libIlmImf.so
|
|
|
|
%{_libdir}/pkgconfig/OpenEXR.pc
|
|
|
|
%{_datadir}/aclocal/openexr.m4
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_docdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%changelog
|