Summary: 3D modeling, rendering, animation and game creation package
Summary(pl.UTF-8): Pakiet do tworzenia animacji 3D oraz gier
Name: blender
-Version: 2.48a
-Release: 2
+Version: 2.49b
+Release: 7
License: GPL
Group: X11/Applications/Graphics
Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
-# Source0-md5: 055d68d244458e9e429e4e492fc9b4ad
+# Source0-md5: 718eef6a4ff377989e829b92a886cc5b
Source1: %{name}.desktop
Source2: %{name}.png
Source4: %{name}-wrapper
Source5: %{name}.manpage
Patch0: %{name}-po_and_locale_names.patch
Patch1: %{name}-noxml-yafray.patch
-Patch2: %{name}-ffmpeg.patch
URL: http://www.blender.org/
+BuildRequires: OpenAL-devel
BuildRequires: OpenEXR-devel
BuildRequires: OpenGL-devel
BuildRequires: SDL-devel
-BuildRequires: gcc >= 5:3.4.0
+#BuildRequires: esound-devel
BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
BuildRequires: freealut-devel
BuildRequires: freetype-devel
BuildRequires: ftgl-devel
+BuildRequires: gcc >= 5:3.4.0
BuildRequires: gettext-devel
-#BuildRequires: esound-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libstdc++-devel
BuildRequires: libvorbis-devel
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: python-devel >= 1:2.3
+BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.385
BuildRequires: scons
BuildRequires: sed >= 4.0
#BuildRequires: smpeg-devel
+BuildRequires: xorg-lib-libXi-devel
BuildRequires: zlib-devel
Requires(post,postun): desktop-file-utils
Requires: OpenGL
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p0
rm -f missing
rm -f user-config.py
rm -rf bin/.blender/locale
+sed 's/\(BUILD_REV :=\).*/\1 unknown/' -i source/Makefile
+sed 's/\(build_rev =\).*/\1 "unknown"/' -i tools/Blender.py
+
RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
BF_PYTHON_VERSION = '%{py_ver}'
-BF_FFMPEG = '/usr'
+BF_FFMPEG = '%{_prefix}'
BF_FFMPEG_INC = '%{_includedir}/ffmpeg'
BF_FFMPEG_LIBPATH = '%{_libdir}'
-BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
+BF_FFMPEG_LIB = 'avformat avcodec avdevice swscale avutil'
LCGDIR = 'lib/linux2'
BF_BUILDDIR = 'build/linux2'
%build
%scons BF_OPENGL_LIBPATH=%{_x_libraries}
-%{__make} -C po OCGDIR=..
+%{__make} -C po \
+ OCGDIR=.. \
+ SRCHOME=$(pwd)/source \
+ NANBLENDERHOME=$(pwd)
install -d release/plugins/include
install source/blender/blenpluginapi/*.h release/plugins/include