Accepting request 748749 from home:cgiboudeaux:branches:graphics

- Add Fix-the-symlinks-creation.patch to fix the symlinks creation.

OBS-URL: https://build.opensuse.org/request/show/748749
OBS-URL: https://build.opensuse.org/package/show/graphics/openexr?expand=0&rev=41
This commit is contained in:
2019-11-14 19:45:07 +00:00
committed by Git OBS Bridge
parent b4cbe267fe
commit b62ddc35fe
3 changed files with 57 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package openexr
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@ Group: Productivity/Graphics/Other
URL: http://www.openexr.com/
Source0: https://github.com/openexr/openexr/archive/v%{version}.tar.gz
Source2: baselibs.conf
Patch0: Fix-the-symlinks-creation.patch
BuildRequires: cmake
BuildRequires: fltk-devel
BuildRequires: freeglut-devel
@@ -113,9 +114,11 @@ Industrial Light & Magic for use in computer imaging applications.
This package contains documentation.
%prep
%setup -q -n openexr-%{version}/OpenEXR
%setup -q
%patch0 -p1
%build
pushd OpenEXR
export PTHREAD_LIBS="-lpthread"
%if %{debug_build}
export CXXFLAGS="%{optflags} -O0"
@@ -136,16 +139,21 @@ for i in $(find -name Makefile); do
done
%endif
make %{?_smp_mflags}
popd
%install
pushd OpenEXR
%cmake_install
popd
%check
%ifarch x86_64
pushd OpenEXR
# tests takes LOONG, e. g. 20 min, in obs even more that
# exceed timeout limit 25 min
export LD_LIBRARY_PATH="$PWD/build/IlmImf:$PWD/build/IlmImfUtil:$LD_LIBRARY_PATH"
%ctest --timeout 3000
popd
%endif
%post -n libIlmImf%{so_suffix}-%{sonum} -p /sbin/ldconfig
@@ -155,8 +163,8 @@ export LD_LIBRARY_PATH="$PWD/build/IlmImf:$PWD/build/IlmImfUtil:$LD_LIBRARY_PATH
%postun -n libIlmImfUtil%{so_suffix}-%{sonum} -p /sbin/ldconfig
%files
%license ../LICENSE.md
%doc ../{CHANGES.md,CODE_OF_CONDUCT.md,CODEOWNERS,CONTRIBUTING.md,CONTRIBUTORS.md,README.md,SECURITY.md}
%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
@@ -168,7 +176,9 @@ export LD_LIBRARY_PATH="$PWD/build/IlmImf:$PWD/build/IlmImfUtil:$LD_LIBRARY_PATH
%files devel
%{_includedir}/OpenEXR
%{_libdir}/libIlmImf.so
%{_libdir}/libIlmImf%{so_suffix}.so
%{_libdir}/libIlmImfUtil.so
%{_libdir}/libIlmImfUtil%{so_suffix}.so
%{_libdir}/pkgconfig/OpenEXR.pc
%dir %{_libdir}/cmake/OpenEXR
@@ -179,11 +189,11 @@ export LD_LIBRARY_PATH="$PWD/build/IlmImf:$PWD/build/IlmImfUtil:$LD_LIBRARY_PATH
%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
%license LICENSE.md
%{_libdir}/libIlmImf-*.so.*
%files -n libIlmImfUtil%{so_suffix}-%{sonum}
%license ../LICENSE.md
%license LICENSE.md
%{_libdir}/libIlmImfUtil-*.so.*
%changelog