2 # - enable internalization support (BR libftgl)
3 # - libsolid/libqhull/libode BR ?
4 Summary: 3D modeling, rendering, animation and game creation package
5 Summary(pl.UTF-8): Pakiet do tworzenia animacji 3D oraz gier
10 Group: X11/Applications/Graphics
11 Source0: http://download.blender.org/source/%{name}-%{version}.tar.xz
12 # Source0-md5: fd106a2c3debfd215617d31197883173
13 Patch0: %{name}-2.76-droid.patch
14 Patch1: format-security.patch
15 Patch2: python-3.8.patch
16 Patch3: struct-alignment.patch
17 URL: http://www.blender.org/
18 BuildRequires: OpenAL-devel
19 BuildRequires: OpenColorIO-devel
20 BuildRequires: OpenEXR-devel
21 BuildRequires: OpenGL-devel
22 BuildRequires: OpenGL-GLU-devel
23 BuildRequires: OpenImageIO-devel
24 BuildRequires: SDL2-devel
25 BuildRequires: boost-devel
27 BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
28 BuildRequires: fftw3-devel
29 BuildRequires: freealut-devel
30 BuildRequires: freetype-devel
31 BuildRequires: ftgl-devel
32 BuildRequires: gcc >= 5:3.4.0
33 BuildRequires: gettext-tools
34 BuildRequires: glew-devel
35 BuildRequires: jack-audio-connection-kit-devel
36 BuildRequires: jemalloc-devel
37 BuildRequires: libjpeg-devel
38 BuildRequires: libpng-devel
39 BuildRequires: libsndfile-devel
40 BuildRequires: libspnav-devel
41 BuildRequires: libstdc++-devel
42 BuildRequires: libtiff-devel
43 BuildRequires: libtool
44 BuildRequires: libvorbis-devel
45 BuildRequires: openjpeg2-devel
46 BuildRequires: openssl-devel >= 0.9.7d
47 BuildRequires: pugixml-devel
48 BuildRequires: python3
49 BuildRequires: python3-devel
50 BuildRequires: python3-numpy-devel
51 BuildRequires: rpm-pythonprov
52 BuildRequires: rpmbuild(macros) >= 1.385
53 BuildRequires: sed >= 4.0
54 BuildRequires: xorg-lib-libXi-devel
55 BuildRequires: zlib-devel
56 Requires(post,postun): desktop-file-utils
59 Requires: python-modules
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 %define _noautoreqdep libGL.so.1 libGLU.so.1
65 Blender is a free and fully functional 3D modeling, rendering,
66 animation and game creation package for Unix, Windows and BeOS
69 %description -l pl.UTF-8
70 Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
71 3D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
86 -DCMAKE_SKIP_RPATH:BOOL=ON \
87 -DBUILD_SHARED_LIBS:BOOL=OFF \
88 -DWITH_FFTW3:BOOL=ON \
90 -DWITH_JACK_DYNLOAD:BOOL=ON \
91 -DWITH_CODEC_SNDFILE:BOOL=ON \
92 -DWITH_IMAGE_OPENJPEG:BOOL=ON \
93 -DWITH_OPENCOLLADA:BOOL=ON \
94 -DWITH_OPENCOLORIO:BOOL=ON \
95 -DWITH_CYCLES:BOOL=ON \
96 -DWITH_FFTW3:BOOL=ON \
97 -DWITH_MOD_OCEANSIM:BOOL=ON \
98 -DOPENCOLLADA=%{_includedir} \
99 -DWITH_PYTHON:BOOL=ON \
100 -DPYTHON_VERSION:STRING=%{py3_ver} \
101 -DWITH_PYTHON_INSTALL:BOOL=OFF \
102 -DWITH_CODEC_FFMPEG:BOOL=ON \
103 -DWITH_GAMEENGINE:BOOL=ON \
104 -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
105 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
106 -DWITH_PYTHON_SAFETY:BOOL=ON \
107 -DWITH_PLAYER:BOOL=ON \
108 -DWITH_MEM_JEMALLOC:BOOL=ON \
109 -DWITH_SYSTEM_GLEW:BOOL=ON \
110 -DBOOST_ROOT=%{_prefix} \
111 -DWITH_INPUT_NDOF:BOOL=ON \
113 -DWITH_SDL_DYNLOAD:BOOL=ON \
119 rm -rf $RPM_BUILD_ROOT
121 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
123 %{__make} -C build install \
124 DESTDIR=$RPM_BUILD_ROOT
126 ./doc/manpage/blender.1.py $RPM_BUILD_ROOT%{_bindir}/blender $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
131 rm -rf $RPM_BUILD_ROOT
134 %update_desktop_database_post
137 %update_desktop_database_postun
140 %defattr(644,root,root,755)
142 %doc doc/license/bf-members.txt doc/guides/*.txt
143 %attr(755,root,root) %{_bindir}/blender
144 %attr(755,root,root) %{_bindir}/blender-thumbnailer.py
145 %attr(755,root,root) %{_datadir}/%{name}
146 %{_desktopdir}/*.desktop
147 %{_iconsdir}/hicolor/scalable/apps/blender.svg
148 %{_iconsdir}/hicolor/symbolic/apps/blender-symbolic.svg