]> git.pld-linux.org Git - packages/blender.git/blobdiff - blender.spec
- up to 2.45
[packages/blender.git] / blender.spec
index 1d17637b5a3d2a6c5fa6863b4e0e094dcf7bb41b..668523b505bd092a767598a6d010c02015cd6e16 100644 (file)
@@ -4,34 +4,34 @@
 # - libsolid/libqhull/libode BR ?
 # - package python scripts
 Summary:       3D modeling, rendering, animation and game creation package
-Summary(pl):   Pakiet do tworzenia animacji 3D oraz gier
+Summary(pl.UTF-8):     Pakiet do tworzenia animacji 3D oraz gier
 Name:          blender
-Version:       2.37a
-# 2.37a is not alpha. Is the latest, STABLE version of blender.
-Release:       2
+Version:       2.45
+Release:       1
 License:       GPL
 Group:         X11/Applications/Graphics
 Source0:       http://download.blender.org/source/%{name}-%{version}.tar.gz
-# Source0-md5: dd0002c09ecd68b3cb3e3d8f4ce31e83
+# Source0-md5: 1358ca481b7f2b8eadd3327ebbd563ef
 Source1:       %{name}.desktop
 Source2:       %{name}.png
-Source3:       %{name}-config.opts
 Source4:       %{name}-wrapper
 Source5:       %{name}.manpage
 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: freealut-devel
+BuildRequires: freetype-devel
 BuildRequires: ftgl-devel
-#BuildRequires:        autoconf
-#BuildRequires:        automake
+BuildRequires: gettext-devel
 #BuildRequires:        esound-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
-BuildRequires: freetype-devel
+BuildRequires: libtiff-devel
 BuildRequires: libtool
 BuildRequires: libvorbis-devel
 BuildRequires: openssl-devel >= 0.9.7d
@@ -41,8 +41,8 @@ BuildRequires:        sed >= 4.0
 #BuildRequires:        smpeg-devel
 BuildRequires: zlib-devel
 Requires:      OpenGL
+Requires:      freetype
 Requires:      python-modules
-Requires:       freetype
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define        _noautoreqdep   libGL.so.1 libGLU.so.1
@@ -52,33 +52,38 @@ Blender is a free and fully functional 3D modeling, rendering,
 animation and game creation package for Unix, Windows and BeOS
 systems.
 
-%description -l pl
-Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
-3D oraz gier, dostêpny dla systemów Unix, Windows i BeOS.
+%description -l pl.UTF-8
+Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
+3D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
 
 %prep
-%setup -q -n %{name}
+%setup -q
 %patch0 -p1
 %patch1 -p1
 mv -f po/pt_{br,BR}.po
-install %{SOURCE3} config.opts
 
-%build
 rm -f missing
+rm -f user-config.py
 
 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
 
-sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
-       -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
-       -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
-       config.opts
-sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
-       -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
-       config.opts
-sed -i 's/python2\.3/python%{py_ver}/' config.opts
+cat > user-config.py <<END
+CCFLAGS           = [$RPMCFLAGS]
+CXXFLAGS          = [$RPMCFLAGS]
+LDFLAGS           = [$RPMLDFLAGS]
+TARGET_CC         = '%{__cc}'
+TARGET_CXX        = '%{__cxx}'
+
+BF_PYTHON_VERSION = '%{py_ver}'
 
-scons
+LCGDIR            = 'lib/linux2'
+BF_BUILDDIR       = 'build/linux2'
+BF_INSTALLDIR     = 'install/linux2'
+END
+
+%build
+scons BF_OPENGL_LIBPATH=%{_x_libraries}
 %{__make} -C po OCGDIR=..
 
 install -d release/plugins/include
@@ -88,11 +93,12 @@ chmod +x release/plugins/bmake
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}} \
+       $RPM_BUILD_ROOT%{_datadir}/blender/bpydata
 
-install blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
+install ./install/linux2/blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
 install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
-install blenderplayer $RPM_BUILD_ROOT%{_bindir}
+#install blenderplayer $RPM_BUILD_ROOT%{_bindir}
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
@@ -107,13 +113,13 @@ install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}/blender
 install -d $RPM_BUILD_ROOT%{_mandir}/man1
 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt 
+%doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
 %doc release/text/{blender.html,release*.txt}
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_datadir}/%{name}
This page took 0.034575 seconds and 4 git commands to generate.