Accepting request 861022 from graphics
- merge also baselibs.conf - modified sources % baselibs.conf - merge ilmbase and openexr source packages into one _multibuild - added sources + _multibuild - version update to 2.5.4 * Patch release with various bug/sanitizer/security fixes, primarily related to reading corrupted input files. OBS-URL: https://build.opensuse.org/request/show/861022 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openexr?expand=0&rev=41
This commit is contained in:
commit
f38422bf22
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>ilmbase</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,9 @@
|
|||||||
libIlmImf-2_5-25
|
libIlmImf-2_5-25
|
||||||
libIlmImfUtil-2_5-25
|
libIlmImfUtil-2_5-25
|
||||||
obsoletes "OpenEXR-<targettype> < <version>"
|
obsoletes "OpenEXR-<targettype> < <version>"
|
||||||
|
libHalf-2_5-25
|
||||||
|
libImath-2_5-25
|
||||||
|
libIlmThread-2_5-25
|
||||||
|
libIexMath-2_5-25
|
||||||
|
libIex-2_5-25
|
||||||
|
obsoletes "IlmBase-<targettype> < <version>"
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 7 11:00:00 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- merge also baselibs.conf
|
||||||
|
- modified sources
|
||||||
|
% baselibs.conf
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 5 13:09:22 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- merge ilmbase and openexr source packages into one _multibuild
|
||||||
|
- added sources
|
||||||
|
+ _multibuild
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 5 09:03:28 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 2.5.4
|
||||||
|
* Patch release with various bug/sanitizer/security fixes, primarily
|
||||||
|
related to reading corrupted input files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 30 06:55:23 UTC 2020 - pgajdos@suse.com
|
Wed Sep 30 06:55:23 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
218
openexr.spec
218
openexr.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package openexr
|
# spec file for package openexr
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,30 +16,54 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define prjname openexr
|
||||||
|
%define flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == ""
|
||||||
|
%define flavor openexr
|
||||||
|
%endif
|
||||||
|
|
||||||
# perhaps you want to build against corresponding ilmbase build
|
# perhaps you want to build against corresponding ilmbase build
|
||||||
%define asan_build 0
|
%define asan_build 0
|
||||||
%define debug_build 0
|
%define debug_build 0
|
||||||
%define sonum 25
|
%define sonum 25
|
||||||
%global so_suffix -2_5
|
%global so_suffix -2_5
|
||||||
Name: openexr
|
Name: %{flavor}
|
||||||
Version: 2.5.3
|
Version: 2.5.4
|
||||||
Release: 0
|
Release: 0
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
Summary: Utilities for working with HDR images in OpenEXR format
|
Summary: Utilities for working with HDR images in OpenEXR format
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Graphics/Other
|
Group: Development/Libraries/C and C++
|
||||||
|
%endif
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
Summary: Base library for ILM software (OpenEXR)
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
%endif
|
||||||
URL: http://www.openexr.com/
|
URL: http://www.openexr.com/
|
||||||
Source0: https://github.com/openexr/openexr/archive/v%{version}.tar.gz
|
Source0: https://github.com/openexr/openexr/archive/v%{version}.tar.gz
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch1: 0001-Use-absolute-CMAKE_INSTALL_FULL_LIBDIR-for-libdir-in.patch
|
Patch1: 0001-Use-absolute-CMAKE_INSTALL_FULL_LIBDIR-for-libdir-in.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fltk-devel
|
|
||||||
BuildRequires: freeglut-devel
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
|
BuildRequires: fltk-devel
|
||||||
|
BuildRequires: freeglut-devel
|
||||||
BuildRequires: pkgconfig(IlmBase) == %{version}
|
BuildRequires: pkgconfig(IlmBase) == %{version}
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
%endif
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
BuildRequires: libtool
|
||||||
|
%endif
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
Obsoletes: OpenEXR <= 1.6.1
|
Obsoletes: OpenEXR <= 1.6.1
|
||||||
Provides: OpenEXR = %{version}
|
Provides: OpenEXR = %{version}
|
||||||
|
%endif
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
Obsoletes: IlmBase <= 1.0.1
|
||||||
|
Provides: IlmBase = %{version}
|
||||||
|
%endif
|
||||||
%if %{asan_build} || %{debug_build}
|
%if %{asan_build} || %{debug_build}
|
||||||
BuildRequires: ilmbase-debugsource
|
BuildRequires: ilmbase-debugsource
|
||||||
BuildRequires: libHalf%{so_suffix}-%{sonum}-debuginfo
|
BuildRequires: libHalf%{so_suffix}-%{sonum}-debuginfo
|
||||||
@ -49,6 +73,8 @@ BuildRequires: libIlmThread%{so_suffix}-%{sonum}-debuginfo
|
|||||||
BuildRequires: libImath%{so_suffix}-%{sonum}-debuginfo
|
BuildRequires: libImath%{so_suffix}-%{sonum}-debuginfo
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
||||||
Industrial Light & Magic for use in computer imaging applications. This package
|
Industrial Light & Magic for use in computer imaging applications. This package
|
||||||
@ -64,6 +90,7 @@ contains a set of utilities to work with this format.
|
|||||||
|
|
||||||
%package -n libIlmImf%{so_suffix}-%{sonum}
|
%package -n libIlmImf%{so_suffix}-%{sonum}
|
||||||
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
||||||
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libIlmImf%{so_suffix}-%{sonum}
|
%description -n libIlmImf%{so_suffix}-%{sonum}
|
||||||
@ -74,6 +101,7 @@ This package contains shared library libIlmImf
|
|||||||
|
|
||||||
%package -n libIlmImfUtil%{so_suffix}-%{sonum}
|
%package -n libIlmImfUtil%{so_suffix}-%{sonum}
|
||||||
Summary: Library to simplify development of OpenEXR utilities
|
Summary: Library to simplify development of OpenEXR utilities
|
||||||
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libIlmImfUtil%{so_suffix}-%{sonum}
|
%description -n libIlmImfUtil%{so_suffix}-%{sonum}
|
||||||
@ -84,6 +112,7 @@ This package contains shared library libIlmImfUtil
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for the 16-bit FP EXR picture handling library
|
Summary: Development files for the 16-bit FP EXR picture handling library
|
||||||
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: ilmbase-devel >= 2.3.0
|
Requires: ilmbase-devel >= 2.3.0
|
||||||
Requires: libIlmImf%{so_suffix}-%{sonum} = %{version}
|
Requires: libIlmImf%{so_suffix}-%{sonum} = %{version}
|
||||||
@ -103,6 +132,7 @@ This package contains header files.
|
|||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for the 16-bit FP EXR picture handling library
|
Summary: Documentation for the 16-bit FP EXR picture handling library
|
||||||
|
License: BSD-3-Clause
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
Obsoletes: OpenEXR-doc <= 1.6.1
|
Obsoletes: OpenEXR-doc <= 1.6.1
|
||||||
Provides: OpenEXR-doc = %{version}
|
Provides: OpenEXR-doc = %{version}
|
||||||
@ -113,11 +143,89 @@ Industrial Light & Magic for use in computer imaging applications.
|
|||||||
|
|
||||||
This package contains documentation.
|
This package contains documentation.
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{flavor} == "ilmbase"
|
||||||
|
|
||||||
|
%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 devel
|
||||||
|
Summary: Base library for ILM software (OpenEXR)
|
||||||
|
# Renamed to libilmbase6 to met the Shared Library Policy
|
||||||
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libHalf%{so_suffix}-%{sonum}
|
||||||
|
Requires: libIex%{so_suffix}-%{sonum}
|
||||||
|
Requires: libIexMath%{so_suffix}-%{sonum}
|
||||||
|
Requires: libIlmThread%{so_suffix}-%{sonum}
|
||||||
|
Requires: libImath%{so_suffix}-%{sonum}
|
||||||
|
Requires: libstdc++-devel
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Devel files for ilmbase
|
||||||
|
Base library for Industrial Light & Magic software (OpenEXR).
|
||||||
|
|
||||||
|
%package -n libHalf%{so_suffix}-%{sonum}
|
||||||
|
Summary: 16-bit floating-point encapsulation class for OpenEXR
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libHalf%{so_suffix}-%{sonum}
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package -n libIexMath%{so_suffix}-%{sonum}
|
||||||
|
Summary: Exception-based vector/matrix library for OpenEXR
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libIexMath%{so_suffix}-%{sonum}
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package -n libIex%{so_suffix}-%{sonum}
|
||||||
|
Summary: Exception handling library for OpenEXR
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libIex%{so_suffix}-%{sonum}
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package -n libIlmThread%{so_suffix}-%{sonum}
|
||||||
|
Summary: Thread abstraction library for OpenEXR
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libIlmThread%{so_suffix}-%{sonum}
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package -n libImath%{so_suffix}-%{sonum}
|
||||||
|
Summary: Vector/matrix library for OpenEXR
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libImath%{so_suffix}-%{sonum}
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n %{prjname}-%{version}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
pushd OpenEXR
|
pushd OpenEXR
|
||||||
export PTHREAD_LIBS="-lpthread"
|
export PTHREAD_LIBS="-lpthread"
|
||||||
%if %{debug_build}
|
%if %{debug_build}
|
||||||
@ -139,13 +247,42 @@ done
|
|||||||
%endif
|
%endif
|
||||||
%cmake_build
|
%cmake_build
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{flavor} == "ilmbase"
|
||||||
|
pushd IlmBase
|
||||||
|
%cmake
|
||||||
|
%if %{asan_build}
|
||||||
|
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
|
||||||
|
sed -i -e 's/\(^CXXFLAGS.*\)/\1 -fsanitize=address/' \
|
||||||
|
-e 's/\(^LIBS =.*\)/\1 -lasan/' \
|
||||||
|
$i
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
pushd OpenEXR
|
pushd OpenEXR
|
||||||
%cmake_install
|
%cmake_install
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
pushd IlmBase
|
||||||
|
%cmake_install
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
%ifnarch i586 ppc ppc64 s390 s390x
|
%ifnarch i586 ppc ppc64 s390 s390x
|
||||||
pushd OpenEXR
|
pushd OpenEXR
|
||||||
export LD_LIBRARY_PATH="%{buildroot}/%{_libdir}"
|
export LD_LIBRARY_PATH="%{buildroot}/%{_libdir}"
|
||||||
@ -159,13 +296,44 @@ export LD_LIBRARY_PATH="%{buildroot}/%{_libdir}"
|
|||||||
%endif
|
%endif
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
# https://github.com/openexr/openexr/issues/570
|
||||||
|
%ifnarch i586
|
||||||
|
pushd IlmBase
|
||||||
|
export LD_LIBRARY_PATH="$PWD/build/Imath:$PWD/build/Iex:$PWD/build/Half:$LD_LIBRARY_PATH"
|
||||||
|
%ctest
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
%post -n libIlmImf%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
%post -n libIlmImf%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
%postun -n libIlmImf%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
%postun -n libIlmImf%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libIlmImfUtil%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
%post -n libIlmImfUtil%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
%postun -n libIlmImfUtil%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
%postun -n libIlmImfUtil%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
%post -n libHalf%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%postun -n libHalf%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libIexMath%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%postun -n libIexMath%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libIex%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%postun -n libIex%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libIlmThread%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%postun -n libIlmThread%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -n libImath%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%postun -n libImath%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "openexr"
|
||||||
%files
|
%files
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%doc CHANGES.md CODE_OF_CONDUCT.md CODEOWNERS CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md
|
%doc CHANGES.md CODE_OF_CONDUCT.md CODEOWNERS CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md
|
||||||
@ -199,5 +367,41 @@ popd
|
|||||||
%files -n libIlmImfUtil%{so_suffix}-%{sonum}
|
%files -n libIlmImfUtil%{so_suffix}-%{sonum}
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%{_libdir}/libIlmImfUtil-*.so.*
|
%{_libdir}/libIlmImfUtil-*.so.*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "ilmbase"
|
||||||
|
%files devel
|
||||||
|
%doc CHANGES.md CODE_OF_CONDUCT.md CODEOWNERS CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md
|
||||||
|
%license LICENSE.md
|
||||||
|
%{_includedir}/OpenEXR
|
||||||
|
%{_libdir}/libHalf.so
|
||||||
|
%{_libdir}/libHalf%{so_suffix}.so
|
||||||
|
%{_libdir}/libIex.so
|
||||||
|
%{_libdir}/libIex%{so_suffix}.so
|
||||||
|
%{_libdir}/libImath.so
|
||||||
|
%{_libdir}/libImath%{so_suffix}.so
|
||||||
|
%{_libdir}/libIlmThread.so
|
||||||
|
%{_libdir}/libIlmThread%{so_suffix}.so
|
||||||
|
%{_libdir}/libIexMath.so
|
||||||
|
%{_libdir}/libIexMath%{so_suffix}.so
|
||||||
|
%{_libdir}/pkgconfig/IlmBase.pc
|
||||||
|
%dir %{_libdir}/cmake/IlmBase/
|
||||||
|
%{_libdir}/cmake/IlmBase/*.cmake
|
||||||
|
|
||||||
|
%files -n libHalf%{so_suffix}-%{sonum}
|
||||||
|
%{_libdir}/libHalf%{so_suffix}.so.*
|
||||||
|
|
||||||
|
%files -n libIexMath%{so_suffix}-%{sonum}
|
||||||
|
%{_libdir}/libIexMath%{so_suffix}.so.*
|
||||||
|
|
||||||
|
%files -n libIex%{so_suffix}-%{sonum}
|
||||||
|
%{_libdir}/libIex%{so_suffix}.so.*
|
||||||
|
|
||||||
|
%files -n libIlmThread%{so_suffix}-%{sonum}
|
||||||
|
%{_libdir}/libIlmThread%{so_suffix}.so.*
|
||||||
|
|
||||||
|
%files -n libImath%{so_suffix}-%{sonum}
|
||||||
|
%{_libdir}/libImath%{so_suffix}.so.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6a6525e6e3907715c6a55887716d7e42d09b54d2457323fcee35a0376960bebf
|
|
||||||
size 27534825
|
|
3
v2.5.4.tar.gz
Normal file
3
v2.5.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dba19e9c6720c6f64fbc8b9d1867eaa75da6438109b941eefdc75ed141b6576d
|
||||||
|
size 27535491
|
Loading…
Reference in New Issue
Block a user