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
|
|
|
#
|
2018-01-21 06:41:23 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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.
|
|
|
|
|
2018-11-05 13:02:16 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-08-09 11:58:48 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-11-06 10:41:12 +01:00
|
|
|
# perhaps you want to build against corresponding ilmbase build
|
|
|
|
%define asan_build 0
|
|
|
|
%define debug_build 0
|
2018-11-05 13:02:16 +01:00
|
|
|
%global so_suffix -2_3-24
|
2013-11-28 07:38:20 +01:00
|
|
|
# tests should run at least during local build
|
|
|
|
# but do expect a HUGE number of memory, so beware
|
|
|
|
%bcond_with tests
|
2010-08-09 11:58:48 +02:00
|
|
|
Name: openexr
|
2018-11-05 13:02:16 +01:00
|
|
|
Version: 2.3.0
|
2012-08-08 10:56:55 +02:00
|
|
|
Release: 0
|
2018-11-05 16:47:17 +01:00
|
|
|
Summary: Utilities for working 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/
|
2018-11-05 13:02:16 +01:00
|
|
|
Source0: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz
|
2018-11-06 10:41:12 +01:00
|
|
|
Source1: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz.sig
|
2017-07-13 00:48:08 +02:00
|
|
|
Source2: baselibs.conf
|
|
|
|
Source3: openexr.keyring
|
2013-04-20 22:07:36 +02:00
|
|
|
BuildRequires: automake
|
2010-08-09 11:58:48 +02:00
|
|
|
BuildRequires: fltk-devel
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: gcc-c++
|
2017-07-13 00:48:08 +02:00
|
|
|
BuildRequires: pkgconfig
|
2018-02-12 12:10:45 +01:00
|
|
|
BuildRequires: pkgconfig(IlmBase) >= 2.2.0
|
2013-11-28 07:38:20 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2010-08-09 12:19:19 +02:00
|
|
|
Obsoletes: OpenEXR <= 1.6.1
|
|
|
|
Provides: OpenEXR = %{version}
|
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
|
2018-11-05 16:47:17 +01:00
|
|
|
Group: System/Libraries
|
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
|
|
|
|
%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}
|
2018-11-05 13:02:16 +01:00
|
|
|
%license LICENSE
|
2013-04-20 22:07:36 +02:00
|
|
|
%{_libdir}/libIlmImf-*.so.*
|
2012-08-08 10:56:55 +02:00
|
|
|
|
2015-01-29 15:34:51 +01:00
|
|
|
%package -n libIlmImfUtil%{so_suffix}
|
|
|
|
Summary: Library to simplify development of OpenEXR utilities
|
2018-11-05 16:47:17 +01:00
|
|
|
Group: System/Libraries
|
2015-01-29 15:34:51 +01:00
|
|
|
|
|
|
|
%description -n libIlmImfUtil%{so_suffix}
|
|
|
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
|
|
|
Industrial Light & Magic for use in computer imaging applications.
|
|
|
|
|
|
|
|
This package contains shared library libIlmImfUtil
|
|
|
|
|
|
|
|
%post -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig
|
|
|
|
%postun -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libIlmImfUtil%{so_suffix}
|
2018-11-05 13:02:16 +01:00
|
|
|
%license LICENSE
|
2015-01-29 15:34:51 +01:00
|
|
|
%{_libdir}/libIlmImfUtil-*.so.*
|
|
|
|
|
2012-08-08 10:56:55 +02:00
|
|
|
%package devel
|
2018-11-05 16:47:17 +01:00
|
|
|
Summary: Development files for the 16-bit FP EXR picture handling library
|
2012-05-03 10:59:07 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-13 00:48:08 +02:00
|
|
|
Requires: libIlmImf%{so_suffix} = %{version}
|
|
|
|
Requires: libIlmImfUtil%{so_suffix} = %{version}
|
|
|
|
Requires: libilmbase-devel
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: pkgconfig(zlib)
|
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}
|
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
|
2018-11-05 16:47:17 +01:00
|
|
|
Summary: Documentatino for the 16-bit FP EXR picture handling library
|
|
|
|
Group: Documentation/PDF
|
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.
|
|
|
|
|
2018-11-05 16:47:17 +01:00
|
|
|
This package contains documentation.
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%prep
|
2012-05-03 10:59:07 +02:00
|
|
|
%setup -q
|
2012-08-08 10:56:55 +02:00
|
|
|
|
2010-08-09 11:58:48 +02:00
|
|
|
%build
|
|
|
|
export PTHREAD_LIBS="-lpthread"
|
2018-11-06 10:41:12 +01:00
|
|
|
%if %{debug_build}
|
|
|
|
export CXXFLAGS="%{optflags} -O0"
|
|
|
|
%endif
|
2017-07-13 00:48:08 +02:00
|
|
|
%configure \
|
2018-11-05 13:02:16 +01:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
2010-08-09 11:58:48 +02:00
|
|
|
--disable-static \
|
|
|
|
--enable-large-stack \
|
|
|
|
--enable-imfexamples \
|
2013-11-28 07:38:20 +01:00
|
|
|
--enable-imffuzztest \
|
|
|
|
--enable-imfhugetest
|
2018-11-06 10:41:12 +01:00
|
|
|
%if %{asan_build}
|
2018-11-06 13:36:12 +01:00
|
|
|
vmemlimit=$(ulimit -v)
|
|
|
|
if [ $vmemlimit != unlimited ]; then
|
|
|
|
echo "ulimit -v has to be unlimited (currently $vmemlimit) to run ASAN build"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
for i in $(find -name Makefile); do
|
2018-11-06 10:41:12 +01:00
|
|
|
sed -i -e 's/\(^CXXFLAGS.*\)/\1 -fsanitize=address/' \
|
|
|
|
-e 's/\(^LIBS =.*\)/\1 -lasan/' \
|
|
|
|
$i
|
|
|
|
done
|
|
|
|
%endif
|
2017-07-13 00:48:08 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-13 00:48:08 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%check
|
2013-11-28 07:38:20 +01:00
|
|
|
%if %{with tests}
|
2017-07-13 00:48:08 +02:00
|
|
|
make %{?_smp_mflags} check
|
2013-11-28 07:38:20 +01:00
|
|
|
%endif
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%files
|
2018-11-05 13:02:16 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS ChangeLog NEWS README*
|
2010-08-09 11:58:48 +02:00
|
|
|
%{_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
|
|
|
%{_includedir}/OpenEXR
|
|
|
|
%{_libdir}/libIlmImf.so
|
2015-01-29 15:34:51 +01:00
|
|
|
%{_libdir}/libIlmImfUtil.so
|
2010-08-09 11:58:48 +02:00
|
|
|
%{_libdir}/pkgconfig/OpenEXR.pc
|
|
|
|
%{_datadir}/aclocal/openexr.m4
|
|
|
|
|
|
|
|
%files doc
|
2018-11-05 13:02:16 +01:00
|
|
|
%{_docdir}/%{name}
|
|
|
|
%exclude %{_docdir}/%{name}/AUTHORS
|
|
|
|
%exclude %{_docdir}/%{name}/ChangeLog
|
|
|
|
%exclude %{_docdir}/%{name}/NEWS
|
|
|
|
%exclude %{_docdir}/%{name}/README*
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%changelog
|