Summary: 3D modeling, rendering, animation and game creation package
Summary(pl.UTF-8): Pakiet do tworzenia animacji 3D oraz gier
Name: blender
-Version: 2.46
+Version: 2.49b
Release: 1
License: GPL
Group: X11/Applications/Graphics
Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
-# Source0-md5: e90543a5ca5db8b04498ab0abe7bbd2c
+# Source0-md5: 718eef6a4ff377989e829b92a886cc5b
Source1: %{name}.desktop
Source2: %{name}.png
Source4: %{name}-wrapper
Patch0: %{name}-po_and_locale_names.patch
Patch1: %{name}-noxml-yafray.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: ffmpeg-devel
+#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
Requires: freetype
Requires: python-modules
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
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_desktop_database_post
+
+%postun
+%update_desktop_database_postun
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt