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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-01-21 06:41:23 +01:00
|
|
|
%global so_suffix -2_2-23
|
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-01-21 06:41:23 +01:00
|
|
|
Version: 2.2.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/
|
2017-07-13 00:48:08 +02:00
|
|
|
Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig
|
|
|
|
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
|
2013-11-28 07:38:20 +01:00
|
|
|
BuildRequires: pkgconfig(IlmBase) = %{version}
|
|
|
|
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
|
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
|
|
|
|
%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
|
|
|
%doc COPYING
|
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
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%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}
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libIlmImfUtil-*.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++
|
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
|
|
|
|
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
|
2012-05-03 10:59:07 +02:00
|
|
|
%setup -q
|
2012-08-08 10:56:55 +02:00
|
|
|
|
2013-11-28 07:38:20 +01:00
|
|
|
# poor man's fdupes
|
|
|
|
if cmp COPYING LICENSE; then
|
|
|
|
rm -rf LICENSE
|
|
|
|
ln -sf COPYING LICENSE
|
|
|
|
fi
|
|
|
|
|
2018-01-21 06:41:23 +01:00
|
|
|
# remove non-linux file
|
|
|
|
rm README.OSX
|
2010-08-09 11:58:48 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export PTHREAD_LIBS="-lpthread"
|
2017-07-13 00:48:08 +02:00
|
|
|
%configure \
|
2010-08-09 11:58:48 +02:00
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--enable-large-stack \
|
|
|
|
--enable-imfexamples \
|
2013-11-28 07:38:20 +01:00
|
|
|
--enable-imffuzztest \
|
|
|
|
--enable-imfhugetest
|
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
|
|
|
|
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
|
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
|
|
|
|
%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
|
|
|
%{_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
|
|
|
|
%{_docdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%changelog
|