%define blenderlib %{_datadir}/blender %define plugins %{_libdir}/blender/plugins %define fontname blender Name: blender Version: 2.48a Release: 9%{?dist} Summary: 3D modeling, animation, rendering and post-production Group: Applications/Multimedia License: GPLv2 URL: http://www.blender.org # This is a customized source package without ffmpeg, which is # patent encumbered (#239476) # wget http://download.blender.org/source/blender-2.48.tar.gz # cd blender-2-47/extern # rm -rf ffmpeg libmp3lame # cd ../.. # tar -zcf blender-2.48-noffmpeg.tar.gz blender-2-48/ Source0: blender-%{version}-noffmpeg.tar.gz Source1: http://bane.servebeer.com/programming/blender/import-3ds-0.7.py Source2: http://bane.servebeer.com/programming/blender/export-3ds-0.71.py Source3: blender.png Source4: blender.desktop Source5: blender.xml Source6: blender-wrapper Source7: blender-2.47.config Patch1: blender-2.47-scons.patch Patch2: blender-2.44-bid.patch Patch100: blender-2.46rc3-cve-2008-1103-1.patch Patch101: blender-2.48a-cve-2008-4863.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: esound-devel BuildRequires: freeglut-devel BuildRequires: gettext-devel BuildRequires: libjpeg-devel BuildRequires: libogg-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: libvorbis-devel BuildRequires: freealut-devel BuildRequires: openssl-devel BuildRequires: python-devel BuildRequires: scons BuildRequires: SDL-devel BuildRequires: zlib-devel BuildRequires: libtiff-devel BuildRequires: libXi-devel BuildRequires: xorg-x11-proto-devel BuildRequires: mesa-libGL-devel BuildRequires: mesa-libGLU-devel buildRequires: freetype-devel BuildRequires: OpenEXR-devel BuildRequires: glew-devel BuildRequires: fontpackages-devel Requires(post): desktop-file-utils Requires(post): shared-mime-info Requires(postun): desktop-file-utils Requires(postun): shared-mime-info Requires: blender-fonts = %{version}-%{release} %description Blender is the essential software solution you need for 3D, from modeling, animation, rendering and post-production to interactive creation and playback. Professionals and novices can easily and inexpensively publish stand-alone, secure, multi-platform content to the web, CD-ROMs, and other media. This version doesn't contains ffmpeg support. %package fonts Summary: Fonts for the blender package Requires: fontpackages-filesystem Group: User Interface/X License: Bitstream Veta Fonts %description fonts This package contains a font which will be used be blender %prep %setup -q %patch1 -p1 -b .org %patch2 -p1 -b .bid %patch100 -p1 %patch101 -p1 PYVER=$(%{__python} -c "import sys ; print sys.version[:3]") sed -e 's|@LIB@|%{_libdir}|g' -e "s/@PYVER@/$PYVER/g" \ <%{SOURCE7} >user-config.py %build scons %{?_smp_mflags} blenderplayer BF_QUIET=0 install -d release/plugins/include install -m 644 source/blender/blenpluginapi/*.h release/plugins/include chmod +x release/plugins/bmake make -C release/plugins/ %install rm -rf ${RPM_BUILD_ROOT} install -D -m 755 build/linux2/bin/blender ${RPM_BUILD_ROOT}/%{_bindir}/blender.bin install -D -m 755 build/linux2/bin/blenderplayer ${RPM_BUILD_ROOT}/%{_bindir}/blenderplayer install -D -m 755 %{SOURCE6} ${RPM_BUILD_ROOT}/%{_bindir}/blender # install -D -m 755 blenderplayer ${RPM_BUILD_ROOT}/%{_bindir}/blenderplayer # # Install miscellanous files to /usr/lib/blender # mkdir -p ${RPM_BUILD_ROOT}/%{blenderlib} pushd bin/.blender/locale rm -rf $(find -name '.svn' -print) popd cp -a bin/.blender/locale ${RPM_BUILD_ROOT}/%{_datadir} install -d ${RPM_BUILD_ROOT}/%{blenderlib}/scripts cp -R -a -p release/scripts/* ${RPM_BUILD_ROOT}/%{blenderlib}/scripts install -m 644 release/VERSION ${RPM_BUILD_ROOT}/%{blenderlib} install -m 644 bin/.blender/.Blanguages ${RPM_BUILD_ROOT}/%{blenderlib} install -m 644 bin/.blender/.bfont.ttf ${RPM_BUILD_ROOT}/%{blenderlib} install -p -D -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{blenderlib}/scripts/import-3ds-0.7.py install -p -D -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{blenderlib}/scripts/export-3ds-0.71.py install -p -D -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/blender.png install -p -D -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_datadir}/mime/packages/blender.xml # # Install plugins # install -d ${RPM_BUILD_ROOT}/%{plugins}/sequence install -d ${RPM_BUILD_ROOT}/%{plugins}/texture install -m 644 release/plugins/sequence/*.so ${RPM_BUILD_ROOT}/%{plugins}/sequence install -m 655 release/plugins/texture/*.so ${RPM_BUILD_ROOT}/%{plugins}/texture desktop-file-install --vendor fedora \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE4} # # Create empty %%{_libdir}/blender/scripts to claim ownership # install -d ${RPM_BUILD_ROOT}%{_libdir}/blender/scripts # # Install fonts # install -m 0755 -d ${RPM_BUILD_ROOT}/%{_fontdir} install -m 0644 -p release/datafiles/bfont.ttf ${RPM_BUILD_ROOT}/%{_fontdir} rm ${RPM_BUILD_ROOT}/%{_datadir}/blender/.bfont.ttf (cd ${RPM_BUILD_ROOT}; ln -sf %{_fontdir}/bfont.ttf ${RPM_BUILD_ROOT}/%{_datadir}/blender/.bfont.ttf) mv release/datafiles/LICENSE-bfont.ttf.txt release/datafiles/LICENSE %find_lang %name %clean rm -rf ${RPM_BUILD_ROOT} %post update-mime-database %{_datadir}/mime > /dev/null 2>&1 || : update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %postun update-mime-database %{_datadir}/mime > /dev/null 2>&1 || : update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %files -f %name.lang %defattr(-,root,root,-) %doc COPYING README doc/python-dev-guide.txt doc/GPL-license.txt doc/bf-members.txt %{_bindir}/* %{_datadir}/applications/fedora-blender.desktop %{_datadir}/pixmaps/*.png %{blenderlib}/ %{_libdir}/blender/ %{_datadir}/mime/packages/blender.xml %files fonts %defattr(-,root,root,-) %doc release/datafiles/LICENSE %{_fontdir}/ %changelog * Tue Jan 6 2009 Jochen Schmitt 2.48a-9 - Create fonts sub-package (#477370) * Sat Dec 27 2008 Lubomir Rintel 2.48a-7 - Fix optflags use, this time for real * Sat Dec 27 2008 Lubomir Rintel 2.48a-6 - Use proper compiler flags (see #199418) - Minor grammar & language fixes and tidy-ups * Sun Nov 30 2008 Ignacio Vazquez-Abrams 2.48a-5 - Rebuild for Python 2.6 * Mon Nov 3 2008 Jochen Schmitt 2.48a-4 - Fix security issue (#469655, CVE-2008-4863) * Sun Oct 26 2008 Jochen Schmitt 2.48a-3 - Create %%{_libdir}/blender/scripts/ to claim ownership * Sun Oct 26 2008 Jochen Schmitt 2.48a-1 - New upstream release * Wed Oct 15 2008 Jochen Schmitt 2.48-1 - New upstream release - Build agains system glew library (#466755) * Tue Oct 7 2008 Jochen Schmitt 2.47-5 - Reorganisation directory structure to fix sysinfo.py issue * Tue Oct 7 2008 Jochen Schmitt 2.47-4 - Avoid duplicate python script (#465810) * Sun Sep 7 2008 Jochen Schmitt 2.47-3 - Fix prerelease SPEC file * Thu Aug 14 2008 Jochen Schmitt 2.47-1 - New upstream release * Tue Aug 12 2008 Jochen Schmitt 2.47-0.2 - New upstream release (blender-2.47rc) * Mon May 19 2008 Jochen Schmitt 2.46-1 - New upstream release * Wed May 7 2008 Jochen Schmitt 2.46-0.3.1 - Some fixes for CVE-2008-1003 * Tue May 6 2008 Jochen Schmitt 2.46-0.3 - Release Canditate for 2.46 * Sun Apr 27 2008 Jochen Schmitt 2.45-13 - More generic patch for scons issue * Thu Apr 24 2008 Jochen Schmitt 2.45-12 - Fix odd scons compatibility issue * Thu Apr 24 2008 Jochen Schmitt 2.45-11 - Fix CVS-2008-1102 (#443937) * Wed Mar 12 2008 Jochen Schmitt 2.45-10 - Clarification of restrictions caused by legal issues * Tue Mar 4 2008 Jochen Schmitt 2.45-9 - Apply yafray patch only on 64-bit systems * Thu Feb 28 2008 Jochen Schmitt 2.45-8 - Fix yafray load bug (#451571) * Sun Feb 10 2008 Jochen Schmitt 2.45-7 - Rebuild for gcc-4.3 * Sat Jan 26 2008 Alex Lancaster 2.45-6 - Rebuild for new gettext * Thu Jan 17 2008 Jochen Schmitt 2.45-5 - Fix gcc-4.3 related issues * Tue Oct 16 2007 Jochen Schmitt 2.45-4 - Rebuild again for OpenEXR * Sun Oct 14 2007 Jochen Schmitt 2.45-3 - Rebuild * Sun Sep 23 2007 Jochen Schmitt 2.45-2 - Change method how to determinate python version * Thu Sep 20 2007 Jochen Schmitt 2.45-1 - New upstream release * Thu Aug 9 2007 Jochen Schmitt 2.44-8 - Fix koji-python issue * Wed Aug 8 2007 Jochen Schmitt 2.44-6 - Changing license tag - Add python as an BR * Mon May 21 2007 Jochen Schmitt 2.44-4 - Use of $$RPM_OPT_FLAGS to compile blender * Sun May 20 2007 Jochen Schmitt 2.44-2 - Increase release number * Tue May 15 2007 Jochen Schmitt 2.44-1 - New upstream release * Wed May 9 2007 Jochen Schmitt 2.42a-24 - Remove ffmpeg lib during a legal issue (#239476) * Tue May 8 2007 Jochen Schmitt 2.42a-23 - Exclude ppc64 arch * Mon May 7 2007 Jochen Schmitt 2.42a-21 - Fix security issue (#239338) * Sun Apr 22 2007 Jochen Schmitt 2.42a-20 - Romove package from the x86_64 arch (#237423) * Mon Jan 8 2007 Jochen Schmitt 2.42a-18 - Rebult * Thu Dec 14 2006 Jochen Schmitt 2.42a-17 - Replace x86-patch with one from the blender project * Thu Dec 14 2006 Jochen Schmitt 2.42a-16 - Rebuild * Tue Dec 12 2006 Jochen Schmitt 2.42a-12 - Fix typo * Tue Dec 12 2006 Jochen Schmitt 2.42a-11 - Try x64-patch for complle with python-2.5 * Tue Dec 12 2006 Jochen Schmitt 2.42a-10 - Exclude x86_64 arch (#219329) * Mon Dec 11 2006 Jochen Schmitt 2.42a-9 - New build to solve broken deps * Wed Nov 29 2006 Jochen Schmitt 2.42a-6 - Rebuild to solve broken deps * Tue Oct 31 2006 Jochen Schmitt 2.42a-5 - Rebuilt to fix broken deps * Mon Oct 16 2006 Jochen Schmitt 2.42a-4 - /usr/lib/blender should own by the package * Wed Oct 11 2006 Jochen Schmitt 2.42a-3 - Correct invalid locale paths (#210209) * Wed Sep 13 2006 Jochen Schmitt 2.42a-2 - Update to new upstream release * Tue Sep 12 2006 Jochen Schmitt 2.42-10 - Rebuild to solve broken deps * Sun Sep 3 2006 Jochen Schmitt 2.42-9 - Rebuild for FC-6 * Thu Aug 10 2006 Jochen Schmitt 2.42-7 - Remove %%ghost for pyo files for fullfilling new packaging guidelines * Thu Aug 10 2006 Jochen Schmitt 2.42-6 - Rebuilt to solve broken deps * Wed Jul 26 2006 Jochen Schmitt 2.42-5 - Fix symlink in blender-wrapper to locale * Thu Jul 20 2006 Jochen Schmitt 2.42-4 - Fix UI Problem (#199418) * Mon Jul 17 2006 Jochen Schmitt 2.42-3 - Fix some BR stuff. * Sun Jul 16 2006 Jochen Schmitt 2.42-1 - New upstream release. * Sun Feb 19 2006 Jochen Schmitt 2.41-3 - Rebuild for FC-5. * Mon Feb 6 2006 Jochen Schmitt 2.41-2 - Add freealut as dependancy. * Sun Jan 30 2006 Jochen Schmitt 2.41-1 - Update to new upstream release. * Wed Jan 18 2006 Jochen Schmitt 2.40-2 - New upstream release. - adapting to mudular X. - add libtiff-devel as BuildRequires. * Mon Jun 6 2005 Toshio Kuratomi 2.37-3 - Bump release for development. * Sun Jun 5 2005 Toshio Kuratomi 2.37-2 - Patch to fix compilation errors on x86_64. * Sun Jun 5 2005 Toshio Kuratomi 2.37-1 - Update to 2.37. - Drop gcc4 patch. * Mon May 16 2005 Toshio Kuratomi 2.36-3 - Bump and rebuild now that scons is available on all platforms. * Sat May 14 2005 Toshio Kuratomi 2.36-2 - Fix a gcc4 error. * Fri May 13 2005 Toshio Kuratomi 2.36-1 - Update to 2.36. - Rebuild with new gcc4. * Fri Apr 7 2005 Michael Schwendt - rebuilt * Mon Nov 15 2004 Phillip Compton 2.35-1 - 2.35. * Thu Nov 11 2004 Phillip Compton 2.34-0.fdr.3 - Mime-type corrections for FC3. - Dropped redundent BR XFree86-devel. * Thu Aug 05 2004 Phillip Compton 0:2.34-0.fdr.2 - blender.applications file. - blender.xml file. - post/postun update-mime-database. * Thu Aug 05 2004 Phillip Compton 0:2.34-0.fdr.1 - Updated to 2.34. * Thu Aug 05 2004 Phillip Compton 0:2.33-0.fdr.2.a - Include 3ds import/export scripts. - Added mime info. - Added mime icon (from yattacier theme). * Wed Aug 04 2004 Phillip Compton 0:2.33-0.fdr.1.a - 2.33a. - Now building with scons. * Tue Feb 10 2004 Phillip Compton 0:2.32-0.fdr.2 - Now including scripts. * Thu Feb 05 2004 Phillip Compton 0:2.32-0.fdr.1 - Updated to 2.32. * Sun Jan 11 2004 Phillip Compton 0:2.31-0.fdr.3.a - --enable-openal. - --disable-rpath. - remove --enable-international. - modify .desktop to execute with -w. * Thu Dec 04 2003 Phillip Compton 0:2.31-0.fdr.2.a - Updated to 2.31a. * Sun Nov 30 2003 Phillip Compton 0:2.31-0.fdr.1 - Updated to 2.31. - enable-international. * Tue Nov 18 2003 Phillip Compton 0:2.30-0.fdr.1 - Updated to 2.30. * Fri Oct 10 2003 Phillip Compton 0:2.28-0.fdr.5.c - Updated to 2.28c. * Tue Oct 07 2003 Phillip Compton 0:2.28-0.fdr.4.a - Removed BuildReq smpeg-devel * Mon Sep 15 2003 Phillip Compton 0:2.28-0.fdr.3.a - Moved 'a' out of version according to naming guidelines. * Fri Sep 12 2003 Phillip Compton 0:2.28a-0.fdr.2 - changed file permission on tarball. - dropped redundant messages about aclocal, etc. - configure --disable-shared. - automake --foreign. - added doc/python-dev-guide.txt doc/GPL-license.txt doc/bf-members.txt to %%doc. * Wed Sep 10 2003 Phillip Compton 0:2.28a-0.fdr.1 - Updated to 2.28a. * Wed Aug 13 2003 Phillip Compton 0:2.28-0.fdr.2 - New Icon. * Thu Jul 24 2003 Phillip Compton 0:2.28-0.fdr.1 - Updated to 2.28. - BuildReq libvorbis-devel. - BuildReq smpeg-devel. - BuildReq esound-devel. - BuildReq libogg-devel. - BuildReq vorbis-tools. - BuildReq openal-devel - BuildReq libtool * Mon May 26 2003 Phillip Compton 0:2.27-0.fdr.2 - Removed post/postun ldconfig. - Added autoconf workaround. * Mon May 19 2003 Phillip Compton 0:2.27-0.fdr.1 - Updated to 2.27. - Removed devel package. * Wed Apr 09 2003 Phillip Compton 0:2.26-0.fdr.9 - Corrected devel Group. * Tue Apr 01 2003 Phillip Compton 0:2.26-0.fdr.8 - Added desktop-file-utils to BuildRequires. - Changed category to X-Fedora-Extra. * Mon Mar 31 2003 Phillip Compton 0:2.26-0.fdr.7 - Added Missing BuildRequires. * Sun Mar 30 2003 Phillip Compton 0:2.26-0.fdr.6 - Cleaned up BuildRequires. - Added Epoch:0. * Sat Mar 22 2003 Phillip Compton 2.26-0.fdr.5 - Spec file cleanup. * Sat Mar 08 2003 Phillip Compton 2.26-1.fdr.4 - Spec file cleanup. * Wed Feb 26 2003 Phillip Compton 2.26-1.fedora.3 - Spec file cleanup. * Thu Feb 20 2003 Warren Togami - Add BuildRequires python-devel * Wed Feb 19 2003 Phillip Compton - Initial RPM release.