From 4b4de400fd05ec75b151780106b639df442d857e Mon Sep 17 00:00:00 2001 From: Luya Tshimbalanga Date: Jul 21 2020 05:57:46 +0000 Subject: Add openshadinglanguage dependency Use cmake macros for build and install Reenable upstream patch to build on Python 3.9 for Fedora 33+ (#1843100) --- diff --git a/blender.spec b/blender.spec index 58621c7..00d538c 100644 --- a/blender.spec +++ b/blender.spec @@ -80,7 +80,6 @@ BuildRequires: embree-devel BuildRequires: oidn-devel %endif BuildRequires: openCOLLADA-devel >= svn825 -BuildRequires: openshadinglanguage BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(ftgl) BuildRequires: pkgconfig(glew) @@ -191,14 +190,13 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . %build %cmake \ - -B cmake-make + -B build %ifnarch %{ix86} x86_64 -DWITH_RAYOPTIMIZATION=OFF \ %endif -DBOOST_ROOT=%{_prefix} \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_SKIP_RPATH=ON \ - -DPYTHON_VERSION=%{python3_version} \ -DOpenGL_GL_PREFERENCE=GLVND \ %{?_without_ffmpeg:-DWITH_CODEC_FFMPEG=OFF} \ -DWITH_CYCLES=%{cyclesflag} \