%global hash 45f2ed7f09f7 %global hash2 f1dfbb50db27 Name: LuxRender Version: 0.7 Release: 1%{?dist} Summary: Lux Renderer, an unbiased rendering system Group: Applications/Multimedia License: GPLv3+ and BSD URL: http://www.luxrender.net #Taken from http://src.luxrender.net/lux/archive/45f2ed7f09f7.tar.bz2 AKA 7.0 release Source0: http://src.luxrender.net/lux/archive/%{hash}.tar.bz2 Source1: http://src.luxrender.net/luxblend/archive/%{hash2}.tar.bz2 Source2: luxblend-default.cfg Patch0: lux-0.7-shared.patch BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: cmake BuildRequires: bison BuildRequires: boost-devel BuildRequires: flex BuildRequires: fltk-devel BuildRequires: freeimage-devel BuildRequires: qt-devel BuildRequires: libpng-devel BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: OpenEXR-devel BuildRequires: python-devel BuildRequires: wxGTK-devel BuildRequires: libXdamage-devel Requires: %{name}-core = %{version}-%{release} %description LuxRender is a rendering system for physically correct image synthesis. %package lib Summary: Libraries for %{name} Group: System Environment/Libraries %description lib The %{name}-lib package contains shared library for %{name}. %package core Summary: Core binaries for %{name} Group: Applications/Multimedia Requires: %{name}-lib = %{version}-%{release} %description core The %{name}-core package contains core binaries for using %{name}. %package blender Summary: Blender export plugin to %{name} Group: Applications/Multimedia Requires: %{name} = %{version}-%{release} Requires: blender >= 2.48a-22 %description blender The %{name}-blender package contains the plugin for Blender to export into %{name} %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{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 %setup -q -n lux-%{hash} %setup -q -D -T -a 1 -n lux-%{hash} %patch0 -p1 -b .shared #Disable tweaking sed -i -e 's/-O3//' CMakeLists.txt %build mkdir -p build pushd build %cmake \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \ -DCMAKE_SKIP_RPATH:BOOL=ON \ %if %{?_lib} == "lib64" -DLIBDIR=%{_lib} \ %endif .. make %{?_smp_mflags} VERBOSE=1 popd %install pushd build make install DESTDIR=$RPM_BUILD_ROOT popd desktop-file-install --vendor "" --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --remove-category Application \ $RPM_BUILD_ROOT%{_datadir}/applications/luxrender.desktop mkdir -p $RPM_BUILD_ROOT%{_datadir}/blender/scripts/bpydata/config install -pm 0644 luxblend-%{hash2}/LuxBlend_0.1.py \ $RPM_BUILD_ROOT%{_datadir}/blender/scripts/ install -pm 0644 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/blender/scripts/bpydata/config/luxblend.cfg %post lib -p /sbin/ldconfig %postun lib -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS.txt COPYING.txt %{_bindir}/luxrenderwx %{_bindir}/luxrender %{_datadir}/pixmaps/luxrender.svg %{_datadir}/applications/luxrender.desktop %files lib %defattr(-,root,root,-) %{_libdir}/*.so.* %files core %defattr(-,root,root,-) %{_bindir}/luxconsole %{_bindir}/luxmerger %files blender %defattr(-,root,root,-) %{_datadir}/blender/scripts/LuxBlend_0.1.py* %{_datadir}/blender/scripts/bpydata/config/luxblend.cfg %files devel %defattr(-,root,root,-) %{_includedir}/luxrender/ %{_libdir}/*.so %changelog * Sun Aug 22 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.7-1 - Update to 0.7 - Obsoletes LuxRender-devel-docs * Wed Aug 04 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.6.1-4 - Rebuild for Boost soname bump - Updated spec to match current guidelines * Mon Jul 12 2010 Dan Horák <dan@danny.cz> - 0.6.1-3 - rebuilt against wxGTK-2.8.11-2 * Sun Feb 14 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 0.6.1-2 - Update to 0.6.1 - Built using SSE2 by default (required for now). * Fri Jan 22 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.5-6 - Rebuild for Boost soname bump * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed May 13 2009 kwizart < kwizart at gmail.com > - 0.5-4 - Move %%doc from -lib to main - Remove Requires main from -devel-docs - Disable wrong-end-of-line-encoding for LuxBlend_0.1.py - Add Requires: blender >= 2.48a-22 so the script will copy the default settings in the end-user directory. * Tue Mar 17 2009 kwizart < kwizart at gmail.com > - 0.5-3 - Add luxblend-default.cfg * Tue Jan 20 2009 kwizart < kwizart at gmail.com > - 0.5-2 - Fix compilation with boost 1.34 - (backport) - Subpackage the Blender_Exporter plugin - Subpackage -devel-docs for doxygen docs. * Wed Jul 23 2008 kwizart < kwizart at gmail.com > - 0.5-1 - Update to 0.5 * Mon Dec 17 2007 Romang Jean-Francois <jeanfrancois.romang@laposte.net> 0.1-rc4 -Initial version