]> git.pld-linux.org Git - packages/blender.git/blame - blender.spec
- updated to 3.2.2
[packages/blender.git] / blender.spec
CommitLineData
38c09fc8
AF
1# TODO:
2# - enable internalization support (BR libftgl)
38c09fc8 3# - libsolid/libqhull/libode BR ?
f0b20dc2
JB
4# - DRACO (requires WITH_PYTHON_INSTALL?)
5# - OSL, Cycles
6# - Alembic
7# - USD
8# - OpenImageDenoise
9# - OpenSubdiv
10# - XR_OpenXR_SDK
3805364c 11# - OptiX >= 7.3.0
273da9c9
JB
12#
13# Conditional build:
14%bcond_with openvdb # OpenVDB support (3.1.x is not ready for openvdb 10)
15
4d72b1dc 16Summary: 3D modeling, rendering, animation and game creation package
3701d8b9 17Summary(pl.UTF-8): Pakiet do tworzenia animacji 3D oraz gier
4d72b1dc 18Name: blender
3805364c 19Version: 3.2.2
273da9c9 20Release: 1
364ec725 21License: GPL v2+
d2866530 22Group: X11/Applications/Graphics
ba7734fe 23Source0: https://download.blender.org/source/%{name}-%{version}.tar.xz
3805364c 24# Source0-md5: 245de23f60dddc2b7be09142bcd3fbbf
6cb9e722 25Patch0: %{name}-2.76-droid.patch
4b097357 26Patch1: format-security.patch
938d797a 27Patch2: boost1.81.patch
b47b8bab 28Patch3: gcc13.patch
ba7734fe 29URL: https://www.blender.org/
126ba6ff 30BuildRequires: OpenAL-devel
f0b20dc2 31BuildRequires: OpenCOLLADA-devel
3805364c 32BuildRequires: OpenColorIO-devel >= 2.0.0
ef63d3ab 33BuildRequires: OpenEXR-devel
9605d1bf 34BuildRequires: OpenGL-devel
4b097357 35BuildRequires: OpenGL-GLU-devel
6cb9e722 36BuildRequires: OpenImageIO-devel
490622c7 37BuildRequires: SDL2-devel
4b097357 38BuildRequires: boost-devel
fcdd8f69 39BuildRequires: cmake >= 3.10
3805364c 40BuildRequires: embree-devel >= 3.8.0
8de72679 41BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
3805364c 42BuildRequires: fftw3-devel >= 3
fdc7d606 43BuildRequires: freealut-devel
3805364c 44BuildRequires: freetype-devel >= 2
f313c0b5 45BuildRequires: ftgl-devel
126ba6ff 46BuildRequires: gcc >= 5:3.4.0
88d42750 47BuildRequires: gettext-tools
4b097357 48BuildRequires: glew-devel
3805364c 49BuildRequires: gmp-devel
4b097357
JR
50BuildRequires: jack-audio-connection-kit-devel
51BuildRequires: jemalloc-devel
3805364c
JB
52BuildRequires: libgomp-devel
53BuildRequires: libharu-devel
9605d1bf 54BuildRequires: libjpeg-devel
55BuildRequires: libpng-devel
4b097357
JR
56BuildRequires: libsndfile-devel
57BuildRequires: libspnav-devel
dfc2b368 58BuildRequires: libstdc++-devel
fdc7d606 59BuildRequires: libtiff-devel
dfc2b368 60BuildRequires: libvorbis-devel
3805364c
JB
61BuildRequires: libwebp-devel
62BuildRequires: libxml2-devel >= 2.0
4b097357 63BuildRequires: openjpeg2-devel
273da9c9 64%{?with_openvdb:BuildRequires: openvdb-devel}
2a53466d 65BuildRequires: openssl-devel >= 0.9.7d
3805364c 66BuildRequires: pcre-devel
f0b20dc2 67BuildRequires: potrace-devel
54675d1f 68BuildRequires: pugixml-devel
3805364c 69BuildRequires: pulseaudio-devel
ba7734fe
JR
70BuildRequires: python3 >= 1:3.10
71BuildRequires: python3-devel >= 1:3.10
4b097357 72BuildRequires: python3-numpy-devel
08055d90 73BuildRequires: rpm-pythonprov
731ec88b 74BuildRequires: rpmbuild(macros) >= 1.605
dd78d76e 75BuildRequires: sed >= 4.0
a6ef6de9 76BuildRequires: tar >= 1:1.22
f0b20dc2 77BuildRequires: tbb-devel
3805364c 78BuildRequires: xorg-lib-libX11-devel
4d805379 79BuildRequires: xorg-lib-libXi-devel
a6ef6de9 80BuildRequires: xz
9605d1bf 81BuildRequires: zlib-devel
3805364c 82BuildRequires: zstd-devel
97c2fd28 83Requires(post,postun): desktop-file-utils
ff884909 84Requires: OpenGL
7bc683ce 85Requires: freetype
ba7734fe 86Requires: python3-modules >= 1:3.10
4ec3633d 87ExclusiveArch: %{x8664}
4d72b1dc
JK
88BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
89
b1097d8e 90%define _noautoreqdep libGL.so.1 libGLU.so.1
4d72b1dc
JK
91
92%description
93Blender is a free and fully functional 3D modeling, rendering,
94animation and game creation package for Unix, Windows and BeOS
9071f685 95systems.
4d72b1dc 96
d3ad026c
JR
97%description -l pl.UTF-8
98Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
993D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
4d72b1dc
JK
100
101%prep
811f0f5d 102%setup -q
a374ab50 103%patch0 -p1
061abd18 104%patch1 -p1
938d797a 105%patch2 -p1
b47b8bab 106%patch3 -p1
4d72b1dc 107
de35b31a 108%{__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,' \
de35b31a
JR
109 release/scripts/addons/io_curve_svg/svg_util_test.py \
110 release/scripts/addons/io_scene_fbx/fbx2json.py \
111 release/scripts/addons/io_scene_fbx/json2fbx.py \
112 release/scripts/addons/sun_position/geo.py \
113 release/scripts/modules/bl_i18n_utils/merge_po.py \
114 release/scripts/modules/bl_i18n_utils/utils_rtl.py \
115 release/scripts/modules/blend_render_info.py
116
c3538bdb 117%build
490622c7
AM
118install -d build
119cd build
120%cmake \
273da9c9 121 -DBOOST_ROOT=%{_prefix} \
4b097357 122 -DBUILD_SHARED_LIBS:BOOL=OFF \
273da9c9 123 -DCMAKE_SKIP_RPATH:BOOL=ON \
273da9c9
JB
124 -DPYTHON_VERSION:STRING=%{py3_ver} \
125 -DWITH_CODEC_FFMPEG:BOOL=ON \
126 -DWITH_CODEC_SNDFILE:BOOL=ON \
127 -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
128 -DWITH_CYCLES:BOOL=ON \
490622c7 129 -DWITH_FFTW3:BOOL=ON \
273da9c9
JB
130 -DWITH_IMAGE_OPENJPEG:BOOL=ON \
131 -DWITH_INPUT_NDOF:BOOL=ON \
132 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
490622c7 133 -DWITH_JACK:BOOL=ON \
4b097357 134 -DWITH_JACK_DYNLOAD:BOOL=ON \
273da9c9
JB
135 -DWITH_MEM_JEMALLOC:BOOL=ON \
136 -DWITH_MOD_OCEANSIM:BOOL=ON \
490622c7 137 -DWITH_OPENCOLLADA:BOOL=ON \
4b097357 138 -DWITH_OPENCOLORIO:BOOL=ON \
273da9c9 139 %{!?with_openvdb:-DWITH_OPENVDB:BOOL=OFF} \
490622c7 140 -DWITH_PYTHON:BOOL=ON \
490622c7 141 -DWITH_PYTHON_INSTALL:BOOL=OFF \
4b097357 142 -DWITH_PYTHON_SAFETY:BOOL=ON \
490622c7 143 -DWITH_SDL:BOOL=ON \
4b097357 144 -DWITH_SDL_DYNLOAD:BOOL=ON \
273da9c9 145 -DWITH_SYSTEM_GLEW:BOOL=ON \
490622c7
AM
146 ..
147
148%{__make} V=1
aeb8eec7 149
4d72b1dc
JK
150%install
151rm -rf $RPM_BUILD_ROOT
490622c7
AM
152install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
153
154%{__make} -C build install \
155 DESTDIR=$RPM_BUILD_ROOT
156
4ec3633d
JR
157./doc/manpage/blender.1.py \
158 --blender $RPM_BUILD_ROOT%{_bindir}/blender \
159 --output $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
7bc683ce 160
490622c7 161#%find_lang %{name}
3e6b0a09 162
4d72b1dc
JK
163%clean
164rm -rf $RPM_BUILD_ROOT
165
97c2fd28
MB
166%post
167%update_desktop_database_post
168
169%postun
170%update_desktop_database_postun
171
490622c7 172%files
4d72b1dc 173%defattr(644,root,root,755)
6cb9e722 174# -f %{name}.lang
490622c7
AM
175%doc doc/license/bf-members.txt doc/guides/*.txt
176%attr(755,root,root) %{_bindir}/blender
4ec3633d 177%attr(755,root,root) %{_bindir}/blender-thumbnailer
961f6430 178%attr(755,root,root) %{_datadir}/%{name}
98471f49 179%{_desktopdir}/*.desktop
4b097357
JR
180%{_iconsdir}/hicolor/scalable/apps/blender.svg
181%{_iconsdir}/hicolor/symbolic/apps/blender-symbolic.svg
b643ae44 182%{_mandir}/man1/*
This page took 0.301959 seconds and 4 git commands to generate.