Need assistance to build LuxCoreRender

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



LuxRender is dead, long live LuxCoreRender. 

I attempt to build LuxCoreRender in rpm format. Unfortunately, issue
like unable to detect boost despite its presence forcing to use static
version. I include the spec file for preview and would some pointers.

Thanks in advance.


Luya

# [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	beta1

Name:           LuxCoreRender
Version:        2.1
%if %{with_prerelease}
Release:        0.1.%{prerelease}%{?dist}
%else
Release:        1%{?dist}
%endif

Summary:        Lux Renderer, an unbiased rendering system

License:        GPLv3+ and Apache 2.0s
URL:            http://www.luxcorerender.org
%if %{with_prerelease}
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
%else
Source0:        https://github.com/%{name}/LuxCore/archive/luxcorerender_v%{version}.tar.gz
Source1:        https://github.com/%{name}/BlendLuxCore/archive/blendluxcore_v%{version}.tar.gz
%endif
Source2:        blendluxcore-default.cfg
Source4:	luxcorerender.appdata.xml
Source5:	luxcorerender-blender.metainfo.xml

#LuxCoreRender use intensively SSE3
#ExclusiveArch:	%%{ix86} x86_64 ia64
ExclusiveArch:	x86_64

BuildRequires:  bison
BuildRequires:	blender-rpm-macros
BuildRequires:	blosc-devel
BuildRequires:  boost-static
BuildRequires:	boost-python3-devel
BuildRequires:  cmake
BuildRequires:  desktop-file-utils
BuildRequires:  dos2unix
BuildRequires:  doxygen
BuildRequires:  embree-devel
BuildRequires:  fftw-devel
BuildRequires:  flex
BuildRequires:  fltk-devel
BuildRequires:  freeglut-devel
BuildRequires:  freeimage-devel
BuildRequires:	gcc-c++
BuildRequires:  glfw-devel
BuildRequires:  gtk3-devel
BuildRequires:  ilmbase-devel
BuildRequires:  libappstream-glib
BuildRequires:  libcdio-devel
BuildRequires:  libpng-devel
BuildRequires:  libjpeg-turbo-devel
BuildRequires:  libtiff-devel
#BuildRequires:  libXdamage-devel
#BuildRequires:  libXmu-devel
BuildRequires:  ocl-icd-devel
BuildRequires:  opencl-headers
BuildRequires:  OpenEXR-devel
BuildRequires:	OpenImageIO-devel
BuildRequires:  python3-devel
BuildRequires:	tbb-devel
BuildRequires:  wxGTK-devel
Requires:	boost
Requires:  	%{name}-core = %{version}-%{release}
Obsoletes:	LuxRender < 2.0

%description
LuxCoreRender is a rendering system for physically correct image synthesis.

%package lib
Summary:        Libraries for %{name}

%description lib
The %{name}-lib package contains shared library for %{name}.

%package        core
Summary:        Core binaries for %{name}
Requires:       %{name}-lib%{?_isa} = %{version}-%{release}
Obsoletes:	LuxRender-core < 2.0

%description    core
The %{name}-core package contains core binaries for using %{name}.

%package        blender
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

%description    blender
The %{name}-blender package contains the plugin for Blender
to export into %{name}

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}-lib%{?_isa} = %{version}-%{release}
Provides:       %{name}-devel-docs = %{version}-%{release}
Obsoletes:      %{name}-devel-docs < 0.7

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.



%prep
%if %{with_prerelease}
%autosetup -n LuxCore-luxcorerender_v%{version}%{prerelease}
%else
%autosetup -n LuxCore-luxcorerender_v%{version}
%endif

#Building lux
%cmake \
	-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
	-DCMAKE_CXX_FLAGS="$CXXFLAGS -DLUXRAYS_DISABLE_OPENCL=0"
%make_build 


%install
mkdir -p %{buildroot}%{bindir}/luxcorerender
install -Dpm 0755 LuxCore-%{name} %{buildroot}%{bindir}/luxcorerender

# Import add-ons and preset
mkdir -p %{buildroot}%{blender_addons}
mkdir -p %{buildroot}%{blender_preset}
cp -pr luxcorerender-luxblend-%{hash1}/src/luxcorerender \
  %{buildroot}%{blender_addons}/
cp -pr luxcorerender-luxblend-%{hash1}/src/presets/luxcorerender \
  %{buildroot}%{blender_preset}/

# Install default configuration
mkdir -p %{buildroot}%{blender_libdir}/scripts/bpydata/config
install -pm 0644 %{SOURCE3} \
  %{buildroot}%{blender_libdir}/scripts/bpydata/config/blendluxcore-default.cfg


# AppData
# BugReportURL: http://www.luxcorerender.net/mantis/view.php?id=1540
install -p -m 644 -D %{SOURCE4} %{buildroot}%{_datadir}/metainfo/luxcorerender.appdata.xml
install -p -m 644 -D %{SOURCE5} %{buildroot}%{_datadir}/metainfo/luxcorerender-blender.metainfo.xml

%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/luxcorerender.appdata.xml
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/luxcorerender-blender.metainfo.xml


%if 0%{?rhel} && 0%{?rhel} <= 7
%post
/usr/bin/update-desktop-database &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :

%postun
/usr/bin/update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
    /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
fi

%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%endif


%files
%doc AUTHORS.txt COPYING.txt
%{_bindir}/luxcorerender
%{_datadir}/pixmaps/luxcorerender.svg
%{_datadir}/metainfo/luxcorerender.appdata.xml
%{_datadir}/applications/luxcorerender.desktop

%files lib
%{_libdir}/*.so

%files core
%{_bindir}/luxconsole
%{_bindir}/luxmerger

%files blender
%{_datadir}/metainfo/luxcorerender-blender.metainfo.xml
%{blender_addons}/luxcorerender/
%{blender_preset}/luxcorerender/
%{blender_libdir}/scripts/bpydata/config/luxblend-default.cfg

%files devel
%{_includedir}/luxcorerender/


%changelog
* Sun Aug 19 2018 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> - 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 <releng@xxxxxxxxxxxxxxxxx> - 1.7-0.4.20180324hg
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue Jun 19 2018 Miro HronÄ?ok <mhroncok@xxxxxxxxxx> - 1.7-0.3.20180324hg
- Rebuilt for Python 3.7

* Thu May 10 2018 Jonathan Wakely <jwakely@xxxxxxxxxx> - 1.7-0.2hg}
- Add BuildRequires: boost-python3-devel boost-static

* Sun Apr 01 2018 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.7-0.2.20180324hg
- Rebuild for embree 2.17.4

* Thu Mar 29 2018 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 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 <luya@xxxxxxxxxxxxxxxxx> - 1.6-30
- Rebuild for embree2 2.17.4 and blender 2.79a

* Wed Mar 21 2018 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-29
- Rebuild for embree 3.0.0

* Wed Feb 07 2018 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> - 1.6-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuilds

* Tue Jan 23 2018 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-27
- Rebuild for embree-3.0.0-beta.0

* Fri Jan 19 2018 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-26
- Rebuilt for embree 2.12.2

* Thu Jan 11 2018 Björn Esser <besser82@xxxxxxxxxxxxxxxxx> - 1.6-25
- Rebuilt for libOpenImageIO.so.1.8

* Wed Oct 25 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-24
- Rebase to more current snapshot for LLVM 5.0 support

* Sat Sep 23 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-23
- Rebuild for embree 2.17.0

* Thu Sep 14 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-22
- bump

* Wed Sep 13 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-21
- Rebuild for Blender 2.79

* Wed Aug 16 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-20
- Rebuilt for embree 2.15

* Wed Aug 02 2017 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> - 1.6-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> - 1.6-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Jul 22 2017 Björn Esser <besser82@xxxxxxxxxxxxxxxxx> - 1.6-17
- Rebuilt for Boost 1.64

* Sat Jul 01 2017 Luya Tshimbalanga <luya_tfz@xxxxxxxxxxxxxxxx> - 1.6-16
- Rebuild from embree 2.16.4

* Fri Jun 16 2017 Luya Tshimbalanga <luya_tfz@xxxxxxxxxxxxxxxx> - 1.6-15
- Rebuild from embree 2.16.2

* Wed May 17 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-14
- Rebuild for embree 2.16.0

* Sat Mar 25 2017 Mamoru TASAKA <mtasaka@xxxxxxxxxxxxxxxxx> - 1.6-13
- Fix FTBFS with g++-7 (rhbz#1423080)

* Fri Mar 24 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-12
- Rebuild for embree

* Fri Mar 10 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-11
- Further fix scriplets errors (rhbz#1430843)

* Thu Mar 02 2017 Rex Dieter <rdieter@xxxxxxxxxxxxxxxxx> - 1.6-10
- -lib: fix scriptlet errors

* Mon Feb 27 2017 Luya Tshimbalanga <luya_tfz@xxxxxxxxxxxxxxxx> - 1.6-9
- Build for newer Blender version

* Tue Feb 14 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-8
- Fix appdata naming file
- Add missing metainfo files

* Sun Feb 12 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-7
- Include presets for Blender add-on

* Tue Feb 07 2017 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 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 <besser82@xxxxxxxxxxxxxxxxx> - 1.6-5
- Rebuilt for Boost 1.63

* Wed Nov 23 2016 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-4
- Rebuild for embree 2.13.0

* Thu Oct 27 2016 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-3
- Rebuild from Blender 2.78a

* Wed Oct 19 2016 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.6-2
- Built on embree 2.12 addressing large memory consumption

* Mon Oct 17 2016 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 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 <luya@xxxxxxxxxxxxxxxxx> - 1.4-1
- Rebuilt for blender 2.78 version
- Updated to 1.4
- Added OpenImageIO dependency

* Mon Aug 01 2016 Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> - 1.3.1-32
- Rebuilt for latest blender version

* Mon May 16 2016 Jonathan Wakely <jwakely@xxxxxxxxxx> - 1.3.1-31
- Rebuilt for linker errors in boost (#1331983)

* Tue Mar 08 2016 Yaakov Selkowitz <yselkowi@xxxxxxxxxx> - 1.3.1-30
- Fix FTBFS with GCC 6 (#1307281)

* Wed Feb 03 2016 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> - 1.3.1-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Jan 25 2016 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-28
- Rebuilt to fix dep. issues

* Thu Jan 14 2016 Jonathan Wakely <jwakely@xxxxxxxxxx> 1.3.1-27
- Patched and rebuilt for Boost 1.60

* Wed Oct 14 2015 Nicolas Chauvet <kwizart@xxxxxxxxx> - 1.3.1-26
- Rebuilt for blender

* Thu Aug 27 2015 Jonathan Wakely <jwakely@xxxxxxxxxx> - 1.3.1-25
- Rebuilt for Boost 1.59

* Wed Aug 05 2015 Jonathan Wakely <jwakely@xxxxxxxxxx> 1.3.1-24
- Rebuilt for Boost 1.58

* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.3.1-23
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159

* Mon Jul 27 2015 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-22
- Rebuilt for blender-2.75

* Wed Jul 22 2015 David Tardon <dtardon@xxxxxxxxxx> - 1.3.1-21
- rebuild for Boost 1.58

* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.3.1-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat May 02 2015 Kalev Lember <kalevlember@xxxxxxxxx> - 1.3.1-19
- Rebuilt for GCC 5 C++11 ABI change

* Thu Apr  2 2015 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-18
- Rebuilt again to solve dependencies issues

* Wed Apr  1 2015 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-17
- Rebuilt for blender-2.74

* Thu Mar 26 2015 Richard Hughes <rhughes@xxxxxxxxxx> - 1.3.1-16
- Add an AppData file for the software center

* Thu Feb 19 2015 Rex Dieter <rdieter@xxxxxxxxxxxxxxxxx> 1.3.1-15
- rebuild (fltk)

* Mon Jan 26 2015 Petr Machata <pmachata@xxxxxxxxxx> - 1.3.1-14
- Rebuild for boost 1.57.0

* Thu Jan  8 2015 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-13
- Rebuilt for new blender release

* Wed Nov 26 2014 Rex Dieter <rdieter@xxxxxxxxxxxxxxxxx> - 1.3.1-12
- rebuild(openexr), s/qt-devel/qt4-devel/

* Thu Oct  9 2014 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-11
- Rebuilt for blender-2.72

* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.3.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sun Jun 29 2014 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-9
- Rebuilt for blender-2.71

* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri May 23 2014 Petr Machata <pmachata@xxxxxxxxxx> - 1.3.1-7
- Rebuild for boost 1.55.0

* Sun Mar 23 2014 Jochen Schmitt <Jochen herr-schmitt de> - 1.3.1-6
- Rebuilt for blender-2.70

* Thu Jan 02 2014 François Cami <fcami@xxxxxxxxxxxxxxxxx> - 1.3.1-5
- Enable OpenCL.

* Wed Jan 01 2014 François Cami <fcami@xxxxxxxxxxxxxxxxx> - 1.3.1-4
- Fix FTBS.

* Tue Dec 10 2013 Björn Esser <bjoern.esser@xxxxxxxxx> - 1.3.1-3
- rebuilt to fix several broken dependencies in Rawhide

* Wed Nov 27 2013 Rex Dieter <rdieter@xxxxxxxxxxxxxxxxx> - 1.3.1-2
- rebuild (openexr)

* Tue Nov 19 2013 Nicolas Chauvet <kwizart@xxxxxxxxx> - 1.3.1-1
- Update to 1.3.1

* Thu Oct 31 2013 Jochen Schmitt <Jochen herr-schmitt de> - 1.0-16
- Rebuilt for blender-2.69

* Sat Sep 14 2013 Bruno Wolff III <bruno@xxxxxxxx> 1.0-15
- Rebuild for ilmbase related soname bumps

* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.0-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Sat Jul 27 2013 pmachata@xxxxxxxxxx - 1.0-13
- Rebuild for boost 1.54.0

* Sat Jul 20 2013 Jochen Schmitt <Jochen herr-schmitt de> - 1.0-12
- Rebuilt for blender-2.68

* Thu May 16 2013 Jochen Schmitt <Jochen herr-schmitt de> - 1.0-11
- Rebuilt for blender-2.67

* Sun Mar 10 2013 Rex Dieter <rdieter@xxxxxxxxxxxxxxxxx> - 1.0-10
- rebuild (OpenEXR)

* Sun Feb 24 2013 Jochen Schmitt <Jochen herr-schmitt de> - 1.0-9
- Rebuilt for blender-2.66

* Sat Feb 23 2013 Kevin Fenzi <kevin@xxxxxxxxx> - 1.0-8
- Rebuild for broken deps in rawhide

* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@xxxxxxx> - 1.0-7
- Rebuild for Boost-1.53.0

* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@xxxxxxx> - 1.0-6
- Rebuild for Boost-1.53.0

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux