]> git.pld-linux.org Git - packages/blender.git/blobdiff - blender.spec
- x32 builds with default setting again
[packages/blender.git] / blender.spec
index 9cc36bcc5561d2eb892d3f752dbde42c69089a85..bc7ddeae30152ff1be72b02bdd9ecd1eb3498242 100644 (file)
@@ -4,50 +4,60 @@
 Summary:       3D modeling, rendering, animation and game creation package
 Summary(pl.UTF-8):     Pakiet do tworzenia animacji 3D oraz gier
 Name:          blender
-Version:       2.76
+Version:       2.82a
 Release:       2
 License:       GPL
 Group:         X11/Applications/Graphics
-Source0:       http://download.blender.org/source/%{name}-%{version}.tar.gz
-# Source0-md5: 1f35ae56bb221bbeb21e89501fbd6c6a
-Source1:       %{name}.desktop
-Source2:       %{name}.png
-Source3:       %{name}.manpage
-Patch0:                blender-2.76-droid.patch
+Source0:       http://download.blender.org/source/%{name}-%{version}.tar.xz
+# Source0-md5: 3e9d669185b83d5d2cb1b38dcf64d5ec
+Patch0:                %{name}-2.76-droid.patch
+Patch1:                format-security.patch
 URL:           http://www.blender.org/
 BuildRequires: OpenAL-devel
+BuildRequires: OpenColorIO-devel
 BuildRequires: OpenEXR-devel
 BuildRequires: OpenGL-devel
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: OpenImageIO-devel
 BuildRequires: SDL2-devel
-#BuildRequires:        esound-devel
+BuildRequires: boost-devel
+BuildRequires: cmake
 BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
+BuildRequires: fftw3-devel
 BuildRequires: freealut-devel
 BuildRequires: freetype-devel
 BuildRequires: ftgl-devel
 BuildRequires: gcc >= 5:3.4.0
 BuildRequires: gettext-tools
+BuildRequires: glew-devel
+BuildRequires: jack-audio-connection-kit-devel
+BuildRequires: jemalloc-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libspnav-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtiff-devel
 BuildRequires: libtool
 BuildRequires: libvorbis-devel
+BuildRequires: openjpeg2-devel
 BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pugixml-devel
+BuildRequires: python3
 BuildRequires: python3-devel
+BuildRequires: python3-numpy-devel
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.385
-BuildRequires: cmake
 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
+Requires:      python3-modules
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        _noautoreqdep   libGL.so.1 libGLU.so.1
+%define                _noautoreqdep   libGL.so.1 libGLU.so.1
 
 %description
 Blender is a free and fully functional 3D modeling, rendering,
@@ -61,18 +71,31 @@ Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
+      release/bin/blender-thumbnailer.py \
+      release/scripts/addons/io_curve_svg/svg_util_test.py \
+      release/scripts/addons/io_scene_fbx/fbx2json.py \
+      release/scripts/addons/io_scene_fbx/json2fbx.py \
+      release/scripts/addons/sun_position/geo.py \
+      release/scripts/modules/bl_i18n_utils/merge_po.py \
+      release/scripts/modules/bl_i18n_utils/utils_rtl.py \
+      release/scripts/modules/blend_render_info.py
 
 %build
 install -d build
 cd build
 %cmake \
-       -DCMAKE_SKIP_RPATH=ON \
-       -DBUILD_SHARED_LIBS=OFF \
+       -DCMAKE_SKIP_RPATH:BOOL=ON \
+       -DBUILD_SHARED_LIBS:BOOL=OFF \
        -DWITH_FFTW3:BOOL=ON \
        -DWITH_JACK:BOOL=ON \
+       -DWITH_JACK_DYNLOAD:BOOL=ON \
        -DWITH_CODEC_SNDFILE:BOOL=ON \
        -DWITH_IMAGE_OPENJPEG:BOOL=ON \
        -DWITH_OPENCOLLADA:BOOL=ON \
+       -DWITH_OPENCOLORIO:BOOL=ON \
        -DWITH_CYCLES:BOOL=ON \
        -DWITH_FFTW3:BOOL=ON \
        -DWITH_MOD_OCEANSIM:BOOL=ON \
@@ -83,14 +106,15 @@ cd build
        -DWITH_CODEC_FFMPEG:BOOL=ON \
        -DWITH_GAMEENGINE:BOOL=ON \
        -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
-       -DWITH_BUILTIN_GLEW=OFF \
-       -DWITH_INSTALL_PORTABLE=OFF \
-       -DWITH_PYTHON_SAFETY=ON \
-       -DWITH_PLAYER=ON \
-       -DWITH_MEM_JEMALLOC=ON \
+       -DWITH_INSTALL_PORTABLE:BOOL=OFF \
+       -DWITH_PYTHON_SAFETY:BOOL=ON \
+       -DWITH_PLAYER:BOOL=ON \
+       -DWITH_MEM_JEMALLOC:BOOL=ON \
+       -DWITH_SYSTEM_GLEW:BOOL=ON \
        -DBOOST_ROOT=%{_prefix} \
-       -DWITH_INPUT_NDOF=ON \
+       -DWITH_INPUT_NDOF:BOOL=ON \
        -DWITH_SDL:BOOL=ON \
+       -DWITH_SDL_DYNLOAD:BOOL=ON \
        ..
 
 %{__make} V=1
@@ -103,9 +127,7 @@ install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
 %{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
+./doc/manpage/blender.1.py $RPM_BUILD_ROOT%{_bindir}/blender $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
 
 #%find_lang %{name}
 
@@ -119,15 +141,13 @@ rm -rf $RPM_BUILD_ROOT
 %update_desktop_database_postun
 
 %files
-# -f %{name}.lang
 %defattr(644,root,root,755)
+# -f %{name}.lang
 %doc doc/license/bf-members.txt doc/guides/*.txt
 %attr(755,root,root) %{_bindir}/blender
 %attr(755,root,root) %{_bindir}/blender-thumbnailer.py
-%attr(755,root,root) %{_bindir}/blenderplayer
 %attr(755,root,root) %{_datadir}/%{name}
 %{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.png
-%{_iconsdir}/*/*x*/apps/blender.png
-%{_iconsdir}/*/scalable/apps/blender.svg
+%{_iconsdir}/hicolor/scalable/apps/blender.svg
+%{_iconsdir}/hicolor/symbolic/apps/blender-symbolic.svg
 %{_mandir}/man1/*
This page took 0.066762 seconds and 4 git commands to generate.