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