- version update to 2.4.0
* Completely re-written CMake configuration files * Improved support for building on Windows, via CMake * Improved support for building on macOS, via CMake * All code compiles without warnings on gcc, clang, msvc * Cleanup of license and copyright notices * floating-point exception handling is disabled by default * New Slice::Make method to reliably compute base pointer for a slice. * Miscellaneous bug fixes * CVE-2018-18444 Issue #351 Out of Memory * CVE-2018-18443 Issue #350 heap-buffer-overflow - upstream does not provide gpg signature anymore https://github.com/openexr/openexr/issues/565 - modified sources % baselibs.conf - deleted patches - testBox.patch (upstreamed) - testBoxAlgo.patch (upstreamed) - deleted sources - ilmbase-2.3.0.tar.gz.sig (not needed) - ilmbase.keyring (not needed) OBS-URL: https://build.opensuse.org/package/show/graphics/openexr?expand=0&rev=29
This commit is contained in:
108
openexr.spec
108
openexr.spec
@@ -20,26 +20,17 @@
|
||||
%define asan_build 0
|
||||
%define debug_build 0
|
||||
%define sonum 24
|
||||
%global so_suffix -2_3-24
|
||||
%global so_suffix -2_4
|
||||
Name: openexr
|
||||
Version: 2.3.0
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
Summary: Utilities for working with HDR images in OpenEXR format
|
||||
License: BSD-3-Clause
|
||||
Group: Productivity/Graphics/Other
|
||||
URL: http://www.openexr.com/
|
||||
Source0: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz
|
||||
Source1: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz.sig
|
||||
Source0: https://github.com/openexr/openexr/archive/v%{version}.tar.gz
|
||||
Source2: baselibs.conf
|
||||
Source3: openexr.keyring
|
||||
# https://github.com/openexr/openexr/pull/401
|
||||
Patch0: openexr-CVE-2018-18444.patch
|
||||
# https://github.com/openexr/openexr/pull/401
|
||||
# CVE-2017-9111 [bsc#1040109], CVE-2017-9113 [bsc#1040113], CVE-2017-9115 [bsc#1040115]
|
||||
Patch1: openexr-CVE-2017-9111,9113,9115.patch
|
||||
# CVE-2017-14988 [bsc#1061305]
|
||||
Patch2: openexr-CVE-2017-14988.patch
|
||||
BuildRequires: automake
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fltk-devel
|
||||
BuildRequires: freeglut-devel
|
||||
BuildRequires: gcc-c++
|
||||
@@ -50,11 +41,11 @@ Obsoletes: OpenEXR <= 1.6.1
|
||||
Provides: OpenEXR = %{version}
|
||||
%if %{asan_build} || %{debug_build}
|
||||
BuildRequires: ilmbase-debugsource
|
||||
BuildRequires: libHalf%{sonum}-debuginfo
|
||||
BuildRequires: libIex%{so_suffix}-debuginfo
|
||||
BuildRequires: libIexMath%{so_suffix}-debuginfo
|
||||
BuildRequires: libIlmThread%{so_suffix}-debuginfo
|
||||
BuildRequires: libImath%{so_suffix}-debuginfo
|
||||
BuildRequires: libHalf%{so_suffix}-%{sonum}-debuginfo
|
||||
BuildRequires: libIex%{so_suffix}-%{sonum}-debuginfo
|
||||
BuildRequires: libIexMath%{so_suffix}-%{sonum}-debuginfo
|
||||
BuildRequires: libIlmThread%{so_suffix}-%{sonum}-debuginfo
|
||||
BuildRequires: libImath%{so_suffix}-%{sonum}-debuginfo
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -70,45 +61,31 @@ contains a set of utilities to work with this format.
|
||||
* exr2aces, converter to ACES format
|
||||
* exrmultiview, combine two or more images into one multi-view
|
||||
|
||||
%package -n libIlmImf%{so_suffix}
|
||||
%package -n libIlmImf%{so_suffix}-%{sonum}
|
||||
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libIlmImf%{so_suffix}
|
||||
%description -n libIlmImf%{so_suffix}-%{sonum}
|
||||
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 libIlmImf
|
||||
|
||||
%post -n libIlmImf%{so_suffix} -p /sbin/ldconfig
|
||||
%postun -n libIlmImf%{so_suffix} -p /sbin/ldconfig
|
||||
|
||||
%files -n libIlmImf%{so_suffix}
|
||||
%license LICENSE
|
||||
%{_libdir}/libIlmImf-*.so.*
|
||||
|
||||
%package -n libIlmImfUtil%{so_suffix}
|
||||
%package -n libIlmImfUtil%{so_suffix}-%{sonum}
|
||||
Summary: Library to simplify development of OpenEXR utilities
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libIlmImfUtil%{so_suffix}
|
||||
%description -n libIlmImfUtil%{so_suffix}-%{sonum}
|
||||
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}
|
||||
%license LICENSE
|
||||
%{_libdir}/libIlmImfUtil-*.so.*
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the 16-bit FP EXR picture handling library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libIlmImf%{so_suffix} = %{version}
|
||||
Requires: libIlmImfUtil%{so_suffix} = %{version}
|
||||
Requires: libIlmImf%{so_suffix}-%{sonum} = %{version}
|
||||
Requires: libIlmImfUtil%{so_suffix}-%{sonum} = %{version}
|
||||
Requires: libilmbase-devel >= 2.3.0
|
||||
Requires: pkgconfig
|
||||
Requires: pkgconfig(zlib)
|
||||
@@ -125,7 +102,7 @@ This package contains header files.
|
||||
|
||||
%package doc
|
||||
Summary: Documentatino for the 16-bit FP EXR picture handling library
|
||||
Group: Documentation/PDF
|
||||
Group: Documentation/Other
|
||||
Obsoletes: OpenEXR-doc <= 1.6.1
|
||||
Provides: OpenEXR-doc = %{version}
|
||||
|
||||
@@ -136,22 +113,15 @@ Industrial Light & Magic for use in computer imaging applications.
|
||||
This package contains documentation.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%setup -q -n openexr-%{version}/OpenEXR
|
||||
|
||||
%build
|
||||
export PTHREAD_LIBS="-lpthread"
|
||||
%if %{debug_build}
|
||||
export CXXFLAGS="%{optflags} -O0"
|
||||
%endif
|
||||
%configure \
|
||||
--docdir=%{_docdir}/%{name} \
|
||||
--disable-static \
|
||||
--enable-large-stack \
|
||||
--enable-imfexamples \
|
||||
--enable-imfhugetest
|
||||
%cmake \
|
||||
-DCMAKE_INSTALL_DOCDIR="%{_docdir}/%{name}"
|
||||
%if %{asan_build}
|
||||
vmemlimit=$(ulimit -v)
|
||||
if [ $vmemlimit != unlimited ]; then
|
||||
@@ -167,17 +137,22 @@ done
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%cmake_install
|
||||
|
||||
%check
|
||||
%ifarch x86_64
|
||||
make %{?_smp_mflags} check
|
||||
%endif
|
||||
# tests takes LOONG, e. g. 20 min
|
||||
export LD_LIBRARY_PATH="$PWD/build/IlmImf:$PWD/build/IlmImfUtil:$LD_LIBRARY_PATH"
|
||||
%ctest
|
||||
|
||||
%post -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
|
||||
%postun -n libIlmImfUtil%{so_suffix}-%{sonum} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc AUTHORS ChangeLog NEWS README*
|
||||
%license ../LICENSE.md
|
||||
%doc ../{CHANGES.md,CODE_OF_CONDUCT.md,CODEOWNERS,CONTRIBUTING.md,CONTRIBUTORS.md,README.md,SECURITY.md}
|
||||
%{_bindir}/exrenvmap
|
||||
%{_bindir}/exrheader
|
||||
%{_bindir}/exrmakepreview
|
||||
@@ -185,19 +160,26 @@ make %{?_smp_mflags} check
|
||||
%{_bindir}/exrstdattr
|
||||
%{_bindir}/exrmultiview
|
||||
%{_bindir}/exrmultipart
|
||||
%{_bindir}/exr2aces
|
||||
|
||||
%files devel
|
||||
%{_includedir}/OpenEXR
|
||||
%{_libdir}/libIlmImf.so
|
||||
%{_libdir}/libIlmImfUtil.so
|
||||
%{_libdir}/libIlmImf%{so_suffix}.so
|
||||
%{_libdir}/libIlmImfUtil%{so_suffix}.so
|
||||
%{_libdir}/pkgconfig/OpenEXR.pc
|
||||
%{_datadir}/aclocal/openexr.m4
|
||||
%dir %{_libdir}/cmake/OpenEXR
|
||||
%{_libdir}/cmake/OpenEXR/*.cmake
|
||||
|
||||
%files doc
|
||||
%{_docdir}/%{name}
|
||||
%exclude %{_docdir}/%{name}/AUTHORS
|
||||
%exclude %{_docdir}/%{name}/ChangeLog
|
||||
%exclude %{_docdir}/%{name}/NEWS
|
||||
%exclude %{_docdir}/%{name}/README*
|
||||
%exclude %{_docdir}/%{name}/{CHANGES.md,CODE_OF_CONDUCT.md,CODEOWNERS,CONTRIBUTING.md,CONTRIBUTORS.md,README.md,SECURITY.md}
|
||||
|
||||
%files -n libIlmImf%{so_suffix}-%{sonum}
|
||||
%license ../LICENSE.md
|
||||
%{_libdir}/libIlmImf-*.so.*
|
||||
|
||||
%files -n libIlmImfUtil%{so_suffix}-%{sonum}
|
||||
%license ../LICENSE.md
|
||||
%{_libdir}/libIlmImfUtil-*.so.*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user