]> git.pld-linux.org Git - packages/blender.git/blobdiff - blender.spec
- release 7
[packages/blender.git] / blender.spec
index 4189d2bef15c1973fa4d54c2ec3aab107c712415..6c560a29442e8c7e51fce79396070c50df657857 100644 (file)
@@ -4,30 +4,30 @@
 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
@@ -36,10 +36,12 @@ BuildRequires:      libtool
 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
@@ -62,12 +64,14 @@ Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
 %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'`\""
 
@@ -80,10 +84,10 @@ TARGET_CXX        = '%{__cxx}'
 
 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'
@@ -92,7 +96,10 @@ END
 
 %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
This page took 0.201208 seconds and 4 git commands to generate.