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