forked from pool/openexr
Accepting request 647258 from graphics
- Codify new ilmbase requirements. (forwarded request 646947 from jengelh) OBS-URL: https://build.opensuse.org/request/show/647258 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openexr?expand=0&rev=28
This commit is contained in:
commit
f27fc6dcee
@ -1,3 +1,3 @@
|
|||||||
libIlmImf-2_2-23
|
libIlmImf-2_3-24
|
||||||
libIlmImfUtil-2_2-23
|
libIlmImfUtil-2_3-24
|
||||||
obsoletes "OpenEXR-<targettype> < <version>"
|
obsoletes "OpenEXR-<targettype> < <version>"
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8f9a5af6131583404261931d9a5c83de0a425cb4b8b25ddab2b169fbf113aecd
|
|
||||||
size 18176639
|
|
Binary file not shown.
3
openexr-2.3.0.tar.gz
Normal file
3
openexr-2.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fd6cb3a87f8c1a233be17b94c74799e6241d50fc5efd4df75c7a4b9cf4e25ea6
|
||||||
|
size 18412067
|
BIN
openexr-2.3.0.tar.gz.sig
Normal file
BIN
openexr-2.3.0.tar.gz.sig
Normal file
Binary file not shown.
13
openexr-CVE-2018-18444.patch
Normal file
13
openexr-CVE-2018-18444.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: openexr-2.3.0/exrmultiview/Image.h
|
||||||
|
===================================================================
|
||||||
|
--- openexr-2.3.0.orig/exrmultiview/Image.h 2018-08-10 03:35:00.000000000 +0200
|
||||||
|
+++ openexr-2.3.0/exrmultiview/Image.h 2018-11-07 09:07:48.072431858 +0100
|
||||||
|
@@ -227,7 +227,7 @@ template <class T>
|
||||||
|
void
|
||||||
|
TypedImageChannel<T>::black ()
|
||||||
|
{
|
||||||
|
- memset(&_pixels[0][0],0,image().width()/_xSampling*image().height()/_ySampling*sizeof(T));
|
||||||
|
+ memset(&_pixels[0][0],0,image().width()/_xSampling*(image().height()/_ySampling)*sizeof(T));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,3 +1,43 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 7 11:07:19 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Codify new ilmbase requirements.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 7 09:42:59 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- security update
|
||||||
|
* CVE-2018-18444 [bsc#1113455]
|
||||||
|
+ openexr-CVE-2018-18444.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 6 09:35:55 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- asan_build: build ASAN included
|
||||||
|
- debug_build: build more suitable for debugging
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 5 13:22:33 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Remove useless --with-pic.
|
||||||
|
- Adjust RPM groups and repair sentence structure.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 5 11:19:12 UTC 2018 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- updated to 2.3.0
|
||||||
|
* ThreadPool overhead improvements, enable custom thread pool
|
||||||
|
to be registered via ThreadPoolProvider class
|
||||||
|
* Fixes to enable custom namespaces for Iex, Imf
|
||||||
|
* Improve read performance for deep/zipped data, and
|
||||||
|
SIMD-accelerated uncompress support
|
||||||
|
* Added rawPixelDataToBuffer() function for access to
|
||||||
|
compressed scanlines
|
||||||
|
* Iex::BaseExc no longer derived from std::string.
|
||||||
|
* Imath throw() specifiers removed
|
||||||
|
* Initial Support for Python 3
|
||||||
|
* removed patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 15 05:19:19 UTC 2018 - avindra@opensuse.org
|
Mon Jan 15 05:19:19 UTC 2018 - avindra@opensuse.org
|
||||||
|
|
||||||
|
84
openexr.spec
84
openexr.spec
@ -12,32 +12,45 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global so_suffix -2_2-23
|
# perhaps you want to build against corresponding ilmbase build
|
||||||
|
%define asan_build 0
|
||||||
|
%define debug_build 0
|
||||||
|
%define sonum 24
|
||||||
|
%global so_suffix -2_3-24
|
||||||
# tests should run at least during local build
|
# tests should run at least during local build
|
||||||
# but do expect a HUGE number of memory, so beware
|
# but do expect a HUGE number of memory, so beware
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
Name: openexr
|
Name: openexr
|
||||||
Version: 2.2.1
|
Version: 2.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utilities for work 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: Productivity/Graphics/Other
|
||||||
Url: http://www.openexr.com/
|
Url: http://www.openexr.com/
|
||||||
Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz
|
||||||
Source1: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig
|
Source1: https://github.com/openexr/openexr/releases/download/v%{version}/openexr-%{version}.tar.gz.sig
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source3: openexr.keyring
|
Source3: openexr.keyring
|
||||||
|
Patch0: openexr-CVE-2018-18444.patch
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fltk-devel
|
BuildRequires: fltk-devel
|
||||||
BuildRequires: freeglut-devel
|
BuildRequires: freeglut-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(IlmBase) >= 2.2.0
|
BuildRequires: pkgconfig(IlmBase) >= 2.3.0
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
%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
|
||||||
|
%endif
|
||||||
Obsoletes: OpenEXR <= 1.6.1
|
Obsoletes: OpenEXR <= 1.6.1
|
||||||
Provides: OpenEXR = %{version}
|
Provides: OpenEXR = %{version}
|
||||||
|
|
||||||
@ -56,7 +69,7 @@ contains a set of utilities to work with this format.
|
|||||||
|
|
||||||
%package -n libIlmImf%{so_suffix}
|
%package -n libIlmImf%{so_suffix}
|
||||||
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
||||||
Group: Development/Libraries/C and C++
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libIlmImf%{so_suffix}
|
%description -n libIlmImf%{so_suffix}
|
||||||
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
||||||
@ -68,12 +81,12 @@ This package contains shared library libIlmImf
|
|||||||
%postun -n libIlmImf%{so_suffix} -p /sbin/ldconfig
|
%postun -n libIlmImf%{so_suffix} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libIlmImf%{so_suffix}
|
%files -n libIlmImf%{so_suffix}
|
||||||
%doc COPYING
|
%license LICENSE
|
||||||
%{_libdir}/libIlmImf-*.so.*
|
%{_libdir}/libIlmImf-*.so.*
|
||||||
|
|
||||||
%package -n libIlmImfUtil%{so_suffix}
|
%package -n libIlmImfUtil%{so_suffix}
|
||||||
Summary: Library to simplify development of OpenEXR utilities
|
Summary: Library to simplify development of OpenEXR utilities
|
||||||
Group: Development/Libraries/C and C++
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libIlmImfUtil%{so_suffix}
|
%description -n libIlmImfUtil%{so_suffix}
|
||||||
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
OpenEXR is a high dynamic-range (HDR) image file format developed by
|
||||||
@ -85,15 +98,15 @@ This package contains shared library libIlmImfUtil
|
|||||||
%postun -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig
|
%postun -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libIlmImfUtil%{so_suffix}
|
%files -n libIlmImfUtil%{so_suffix}
|
||||||
%doc COPYING
|
%license LICENSE
|
||||||
%{_libdir}/libIlmImfUtil-*.so.*
|
%{_libdir}/libIlmImfUtil-*.so.*
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Library to Handle EXR Pictures (16-bit floating-point format)
|
Summary: Development files for the 16-bit FP EXR picture handling library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libIlmImf%{so_suffix} = %{version}
|
Requires: libIlmImf%{so_suffix} = %{version}
|
||||||
Requires: libIlmImfUtil%{so_suffix} = %{version}
|
Requires: libIlmImfUtil%{so_suffix} = %{version}
|
||||||
Requires: libilmbase-devel
|
Requires: libilmbase-devel >= 2.3.0
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
Requires: pkgconfig(zlib)
|
Requires: pkgconfig(zlib)
|
||||||
Obsoletes: OpenEXR-devel <= 1.6.1
|
Obsoletes: OpenEXR-devel <= 1.6.1
|
||||||
@ -108,8 +121,8 @@ Industrial Light & Magic for use in computer imaging applications.
|
|||||||
This package contains header files.
|
This package contains header files.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
|
Summary: Documentatino for the 16-bit FP EXR picture handling library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Documentation/PDF
|
||||||
Obsoletes: OpenEXR-doc <= 1.6.1
|
Obsoletes: OpenEXR-doc <= 1.6.1
|
||||||
Provides: OpenEXR-doc = %{version}
|
Provides: OpenEXR-doc = %{version}
|
||||||
|
|
||||||
@ -117,45 +130,50 @@ Provides: OpenEXR-doc = %{version}
|
|||||||
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.
|
Industrial Light & Magic for use in computer imaging applications.
|
||||||
|
|
||||||
This package contains a documentation
|
This package contains documentation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
# poor man's fdupes
|
|
||||||
if cmp COPYING LICENSE; then
|
|
||||||
rm -rf LICENSE
|
|
||||||
ln -sf COPYING LICENSE
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove non-linux file
|
|
||||||
rm README.OSX
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PTHREAD_LIBS="-lpthread"
|
export PTHREAD_LIBS="-lpthread"
|
||||||
|
%if %{debug_build}
|
||||||
|
export CXXFLAGS="%{optflags} -O0"
|
||||||
|
%endif
|
||||||
%configure \
|
%configure \
|
||||||
|
--docdir=%{_docdir}/%{name} \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-pic \
|
|
||||||
--enable-large-stack \
|
--enable-large-stack \
|
||||||
--enable-imfexamples \
|
--enable-imfexamples \
|
||||||
--enable-imffuzztest \
|
--enable-imffuzztest \
|
||||||
--enable-imfhugetest
|
--enable-imfhugetest
|
||||||
|
%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}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_defaultdocdir}/
|
|
||||||
mv %{buildroot}%{_datadir}/doc/OpenEXR-2* %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS ChangeLog COPYING LICENSE NEWS README*
|
%license LICENSE
|
||||||
|
%doc AUTHORS ChangeLog NEWS README*
|
||||||
%{_bindir}/exrenvmap
|
%{_bindir}/exrenvmap
|
||||||
%{_bindir}/exrheader
|
%{_bindir}/exrheader
|
||||||
%{_bindir}/exrmakepreview
|
%{_bindir}/exrmakepreview
|
||||||
@ -172,6 +190,10 @@ make %{?_smp_mflags} check
|
|||||||
%{_datadir}/aclocal/openexr.m4
|
%{_datadir}/aclocal/openexr.m4
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%{_docdir}/%{name}-%{version}
|
%{_docdir}/%{name}
|
||||||
|
%exclude %{_docdir}/%{name}/AUTHORS
|
||||||
|
%exclude %{_docdir}/%{name}/ChangeLog
|
||||||
|
%exclude %{_docdir}/%{name}/NEWS
|
||||||
|
%exclude %{_docdir}/%{name}/README*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user