# [Fedora] Turn off the brp-python-bytecompile script %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') %global with_prerelease 1 %global prerelease beta3 Name: luxcorerender Version: 2.2 %if %{with_prerelease} Release: 0.5.%{prerelease}%{?dist} %else Release: 2%{?dist} %endif Summary: LuxCore Renderer, an unbiased rendering system License: ASL 2.0 URL: http://www.luxcorerender.org Source0: https://github.com/%{name}/LuxCore/archive/luxcorerender_v%{version}%{?prerelease}.tar.gz Source1: https://github.com/%{name}/BlendLuxCore/archive/blendluxcore_v%{version}%{?prerelease}.tar.gz Source3: blender-%{name}.metainfo.xml # add python build dependency Patch0: python.patch # drop eos portable archiver (Manjaro) Patch1: boost016900_serialization.patch # Upstream only uses 64 bit archtecture ExclusiveArch: x86_64 BuildRequires: bison BuildRequires: blender-rpm-macros BuildRequires: blosc-devel BuildRequires: boost-python3-devel BuildRequires: chrpath BuildRequires: cmake BuildRequires: dos2unix BuildRequires: doxygen BuildRequires: embree-devel BuildRequires: flex BuildRequires: freeimage-devel BuildRequires: gcc-c++ BuildRequires: glfw-devel BuildRequires: gtk3-devel BuildRequires: libappstream-glib BuildRequires: libcdio-devel BuildRequires: libpng-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libtiff-devel BuildRequires: ocl-icd-devel BuildRequires: oidn-devel BuildRequires: opencl-headers BuildRequires: OpenEXR-devel BuildRequires: OpenImageIO-devel BuildRequires: openvdb-devel BuildRequires: python3-devel BuildRequires: pyside-tools BuildRequires: python3-pillow-devel BuildRequires: tbb-devel Requires: %{name}-core = %{version}-%{release} Obsoletes: LuxRender < 2.0 Provides: LuxRender = 2.0 # Use python dependency generator %{?python_enable_dependency_generator} %description LuxCoreRender is a rendering system for physically correct image synthesis. %package libs Summary: Libraries for %{name} Obsoletes: LuxRender-lib < 2.0 Provides: LuxRender-lib = 2.0 %description libs The %{name}-libs package contains shared library for %{name}. %package core Summary: Core binaries for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Obsoletes: LuxRender-core < 2.0 Provides: LuxRender-core = 2.0 %description core The %{name}-core package contains core binaries for using %{name}. %package -n blender-%{name} Summary: Blender export plugin to %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: blender(ABI)%{?blender_api: = %{blender_api}} BuildArch: noarch Obsoletes: LuxRender-blender < 2.0 Provides: LuxRender-blender = 2.0 %description -n blender-%{name} The blender-%{name} package contains the plugin for Blender to export into %{name} %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Provides: LuxRender-devel = %{version}-%{release} Obsoletes: LuxRender-devel < 2.0 %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package examples Summary: Example of application using %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description examples The %{name}-examples package contains sample binaries using %{name}. %package -n python3-%{name} Summary: Python 3 interface to %{name} Requires: blender-%{name}%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} The python3-%{name} contains Python 3 API for the library. %prep %autosetup -p1 -n LuxCore-%{name}_v%{version}%{?prerelease} %setup -q -T -D -a 1 -n LuxCore-%{name}_v%{version}%{?prerelease} # Fix all Python shebangs recursively in . pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . %build mkdir -p build cd build #Building lux %cmake \ -DCMAKE_CXX_FLAGS="%{optflags} -Wl,--as-needed" \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \ -DLUXRAYS_DISABLE_OPENCL=0 \ -DBUILD_SHARED_LIBS=ON \ -DPYTHON_V=%{python3_version_nodots} \ .. %make_build %install pushd build mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} install -Dpm 0755 bin/* %{buildroot}%{_bindir}/ install -Dpm 0755 lib/*.so* %{buildroot}%{_libdir}/ # Remove rpaths chrpath --delete %{buildroot}%{_bindir}/* chrpath --delete %{buildroot}%{_libdir}/*.so* popd # Install include files cp -pr include/{luxcore,luxrays} %{buildroot}%{_includedir}/ # Relocate pyluxcore mkdir -p %{buildroot}%{python3_sitearch} mv %{buildroot}%{_libdir}/pyluxcore.so %{buildroot}%{python3_sitearch} # Import add-ons and preset mkdir -p %{buildroot}%{blender_addons}/%{name} cp -a BlendLuxCore-blendluxcore_v%{version}%{?prerelease}/* \ %{buildroot}%{blender_addons}/%{name} # change the search path in exporter so it finds pylux in its new location # borrowed from Arch Linux for file in `grep -rl import\ pyluxcore ${pkgdir}` ; do sed -i 's/from .* import pyluxcore/import pyluxcore/g' $file; done rm -fr %{buildroot}%{blender_addons}/%{name}/bin rm -fr %{buildroot}%{blender_addons}/%{name}/.gitignore # Metainfo for blender addon install -p -m 644 -D %{SOURCE3} %{buildroot}%{_metainfodir}/blender-%{name}.metainfo.xml # We do not want static file .a rm -fr {buildroot}%{_libdir}/*.a %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/blender-%{name}.metainfo.xml %ldconfig_scriptlets %files %license COPYING.txt %doc AUTHORS.txt %files libs %{_libdir}/libglfw.so.3* %files core %{_bindir}/* # GPLv3 %files -n blender-%{name} %doc README.md %{_datadir}/metainfo/blender-%{name}.metainfo.xml %{blender_addons}/%{name} %files -n python3-%{name} %license COPYING.txt %{python3_sitearch}/pyluxcore.so %files devel %{_includedir}/{luxcore,luxrays,slg} %{_libdir}/libglfw.so %changelog * Mon Aug 19 2019 Miro Hrončok - 2.2-0.5.beta3 - Rebuilt for Python 3.8 * Sat Aug 17 2019 Luya Tshimbalanga - 2.2-0.2.beta3 - Rebuilt for oidn 1.0.0 and blender 2.80 * Thu Aug 15 2019 Luya Tshimbalanga - 2.2-0.1.beta3 - Update to 2.2 beta3 * Thu Jul 25 2019 Fedora Release Engineering - 2.2-0.8.beta1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 09 2019 Luya Tshimbalanga - 2.2-0.7.beta1 - Rebuilt for oidn 0.9.0 * Thu May 2 2019 Peter Robinson 2.2-0.6.beta1 - Bump release to be highe than alpha * Wed May 01 2019 Luya Tshimbalanga - 2.2-0.1.beta1 - Update to 2.2beta1 - Drop OpenImageIO patch ported to upstream * Mon Apr 22 2019 Luya Tshimbalanga - 2.2-0.5.alpha1 - Rebuilt for ispc 1.11.0 * Thu Apr 11 2019 Richard Shaw - 2.2-0.4.alpha1 - Rebuild for OpenEXR/Ilmbase 2.3.0. * Thu Apr 11 2019 Luya Tshimbalanga - 2.2-0.3.alpha1 - Fix traceback on blender add-on * Thu Apr 04 2019 Robert-André Mauchin - 2.2-0.2.alpha1 - Add patch to build with OpenImageIO > 1.9.0 * Sun Mar 31 2019 Luya Tshimbalanga - 2.2-0.1.alpha1 - Update to 2.2alpha1 * Fri Mar 29 2019 Luya Tshimbalanga - 2.1-4 - Patch for boost 1.69 serialisation * Fri Mar 22 2019 Luya Tshimbalanga - 2.1-3 - Rebuilt for embree 3.5.2 * Fri Feb 01 2019 Fedora Release Engineering - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Jan 06 2019 Luya Tshimbalanga - 2.1-1 - Update to 2.1 * Mon Dec 17 2018 Luya Tshimbalanga - 2.1-0.1.beta4 - Update to 2.1 beta4 * Tue Nov 27 2018 Luya Tshimbalanga - 2.1-0.1.beta3 - Update to 2.1 beta3 * Tue Nov 27 2018 Luya Tshimbalanga - 2.1-0.4.beta2 - Update to 2.1 beta2 - Fix conflicting installation - Add openvdb dependency - Remove unversioned .so files * Sun Nov 11 2018 Luya Tshimbalanga - 2.1-0.2.beta1 - Fix to adhere to Fedora Packaging Guideline - Disable static build - Fix shebangs using new method (https://fedoraproject.org/wiki/Releases/30/ChangeSet#Make_ambiguous_python_shebangs_error) * Sun Nov 04 2018 Luya Tshimbalanga - 2.1-0.1.beta1 - Update to 2.1 beta1 - Massive clean up spec * Sun Aug 19 2018 Fedora Release Engineering - 2.1-0.1.alpha3 - Update to 2.1 alpha3 - Renamed LuxRender to LuxCoreRender per upstream - New url address * Thu Jul 12 2018 Fedora Release Engineering - 1.7-0.4.20180324hg - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.7-0.3.20180324hg - Rebuilt for Python 3.7 * Thu May 10 2018 Jonathan Wakely - 1.7-0.2hg} - Add BuildRequires: boost-python3-devel boost-static * Sun Apr 01 2018 Luya Tshimbalanga - 1.7-0.2.20180324hg - Rebuild for embree 2.17.4 * Thu Mar 29 2018 Luya Tshimbalanga - 1.7-0.1.20180324hg - Update to 1.7 dev 20180324 snapshot - Replace BSD license by Apache 2.0 * Fri Mar 23 2018 Luya Tshimbalanga - 1.6-30 - Rebuild for embree2 2.17.4 and blender 2.79a * Wed Mar 21 2018 Luya Tshimbalanga - 1.6-29 - Rebuild for embree 3.0.0 * Wed Feb 07 2018 Fedora Release Engineering - 1.6-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuilds * Tue Jan 23 2018 Luya Tshimbalanga - 1.6-27 - Rebuild for embree-3.0.0-beta.0 * Fri Jan 19 2018 Luya Tshimbalanga - 1.6-26 - Rebuilt for embree 2.12.2 * Thu Jan 11 2018 Björn Esser - 1.6-25 - Rebuilt for libOpenImageIO.so.1.8 * Wed Oct 25 2017 Luya Tshimbalanga - 1.6-24 - Rebase to more current snapshot for LLVM 5.0 support * Sat Sep 23 2017 Luya Tshimbalanga - 1.6-23 - Rebuild for embree 2.17.0 * Thu Sep 14 2017 Luya Tshimbalanga - 1.6-22 - bump * Wed Sep 13 2017 Luya Tshimbalanga - 1.6-21 - Rebuild for Blender 2.79 * Wed Aug 16 2017 Luya Tshimbalanga - 1.6-20 - Rebuilt for embree 2.15 * Wed Aug 02 2017 Fedora Release Engineering - 1.6-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.6-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jul 22 2017 Björn Esser - 1.6-17 - Rebuilt for Boost 1.64 * Sat Jul 01 2017 Luya Tshimbalanga - 1.6-16 - Rebuild from embree 2.16.4 * Fri Jun 16 2017 Luya Tshimbalanga - 1.6-15 - Rebuild from embree 2.16.2 * Wed May 17 2017 Luya Tshimbalanga - 1.6-14 - Rebuild for embree 2.16.0 * Sat Mar 25 2017 Mamoru TASAKA - 1.6-13 - Fix FTBFS with g++-7 (rhbz#1423080) * Fri Mar 24 2017 Luya Tshimbalanga - 1.6-12 - Rebuild for embree * Fri Mar 10 2017 Luya Tshimbalanga - 1.6-11 - Further fix scriplets errors (rhbz#1430843) * Thu Mar 02 2017 Rex Dieter - 1.6-10 - -lib: fix scriptlet errors * Mon Feb 27 2017 Luya Tshimbalanga - 1.6-9 - Build for newer Blender version * Tue Feb 14 2017 Luya Tshimbalanga - 1.6-8 - Fix appdata naming file - Add missing metainfo files * Sun Feb 12 2017 Luya Tshimbalanga - 1.6-7 - Include presets for Blender add-on * Tue Feb 07 2017 Luya Tshimbalanga - 1.6-6 - Split out appstream metadata into their own - Update scriptlets as per packaging guidelines (mimeinfo only on RHEL 7 and Fedora 23, desktop database only on RHEL 7, Fedora 23 and 24). - Use noarch for blender add-on - Install preset - Drop unused patches * Tue Feb 07 2017 Björn Esser - 1.6-5 - Rebuilt for Boost 1.63 * Wed Nov 23 2016 Luya Tshimbalanga - 1.6-4 - Rebuild for embree 2.13.0 * Thu Oct 27 2016 Luya Tshimbalanga - 1.6-3 - Rebuild from Blender 2.78a * Wed Oct 19 2016 Luya Tshimbalanga - 1.6-2 - Built on embree 2.12 addressing large memory consumption * Mon Oct 17 2016 Luya Tshimbalanga - 1.6-1 - Updated to 1.6 - Dropped patches - Added embree as dependencies - Set exclusivity to 64 bit architecture due to embree requirement * Sun Oct 02 2016 Luya Tshimbalanga - 1.4-1 - Rebuilt for blender 2.78 version - Updated to 1.4 - Added OpenImageIO dependency * Mon Aug 01 2016 Luya Tshimbalanga - 1.3.1-32 - Rebuilt for latest blender version * Mon May 16 2016 Jonathan Wakely - 1.3.1-31 - Rebuilt for linker errors in boost (#1331983) * Tue Mar 08 2016 Yaakov Selkowitz - 1.3.1-30 - Fix FTBFS with GCC 6 (#1307281) * Wed Feb 03 2016 Fedora Release Engineering - 1.3.1-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 25 2016 Jochen Schmitt - 1.3.1-28 - Rebuilt to fix dep. issues * Thu Jan 14 2016 Jonathan Wakely 1.3.1-27 - Patched and rebuilt for Boost 1.60 * Wed Oct 14 2015 Nicolas Chauvet - 1.3.1-26 - Rebuilt for blender * Thu Aug 27 2015 Jonathan Wakely - 1.3.1-25 - Rebuilt for Boost 1.59 * Wed Aug 05 2015 Jonathan Wakely 1.3.1-24 - Rebuilt for Boost 1.58 * Wed Jul 29 2015 Fedora Release Engineering - 1.3.1-23 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Mon Jul 27 2015 Jochen Schmitt - 1.3.1-22 - Rebuilt for blender-2.75 * Wed Jul 22 2015 David Tardon - 1.3.1-21 - rebuild for Boost 1.58 * Tue Jun 16 2015 Fedora Release Engineering - 1.3.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.3.1-19 - Rebuilt for GCC 5 C++11 ABI change * Thu Apr 2 2015 Jochen Schmitt - 1.3.1-18 - Rebuilt again to solve dependencies issues * Wed Apr 1 2015 Jochen Schmitt - 1.3.1-17 - Rebuilt for blender-2.74 * Thu Mar 26 2015 Richard Hughes - 1.3.1-16 - Add an AppData file for the software center * Thu Feb 19 2015 Rex Dieter 1.3.1-15 - rebuild (fltk) * Mon Jan 26 2015 Petr Machata - 1.3.1-14 - Rebuild for boost 1.57.0 * Thu Jan 8 2015 Jochen Schmitt - 1.3.1-13 - Rebuilt for new blender release * Wed Nov 26 2014 Rex Dieter - 1.3.1-12 - rebuild(openexr), s/qt-devel/qt4-devel/ * Thu Oct 9 2014 Jochen Schmitt - 1.3.1-11 - Rebuilt for blender-2.72 * Fri Aug 15 2014 Fedora Release Engineering - 1.3.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 29 2014 Jochen Schmitt - 1.3.1-9 - Rebuilt for blender-2.71 * Fri Jun 06 2014 Fedora Release Engineering - 1.3.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 23 2014 Petr Machata - 1.3.1-7 - Rebuild for boost 1.55.0 * Sun Mar 23 2014 Jochen Schmitt - 1.3.1-6 - Rebuilt for blender-2.70 * Thu Jan 02 2014 François Cami - 1.3.1-5 - Enable OpenCL. * Wed Jan 01 2014 François Cami - 1.3.1-4 - Fix FTBS. * Tue Dec 10 2013 Björn Esser - 1.3.1-3 - rebuilt to fix several broken dependencies in Rawhide * Wed Nov 27 2013 Rex Dieter - 1.3.1-2 - rebuild (openexr) * Tue Nov 19 2013 Nicolas Chauvet - 1.3.1-1 - Update to 1.3.1 * Thu Oct 31 2013 Jochen Schmitt - 1.0-16 - Rebuilt for blender-2.69 * Sat Sep 14 2013 Bruno Wolff III 1.0-15 - Rebuild for ilmbase related soname bumps * Fri Aug 02 2013 Fedora Release Engineering - 1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Jul 27 2013 pmachata@redhat.com - 1.0-13 - Rebuild for boost 1.54.0 * Sat Jul 20 2013 Jochen Schmitt - 1.0-12 - Rebuilt for blender-2.68 * Thu May 16 2013 Jochen Schmitt - 1.0-11 - Rebuilt for blender-2.67 * Sun Mar 10 2013 Rex Dieter - 1.0-10 - rebuild (OpenEXR) * Sun Feb 24 2013 Jochen Schmitt - 1.0-9 - Rebuilt for blender-2.66 * Sat Feb 23 2013 Kevin Fenzi - 1.0-8 - Rebuild for broken deps in rawhide * Sun Feb 10 2013 Denis Arnaud - 1.0-7 - Rebuild for Boost-1.53.0 * Sat Feb 09 2013 Denis Arnaud - 1.0-6 - Rebuild for Boost-1.53.0