]>
Commit | Line | Data |
---|---|---|
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 | 16 | Summary: 3D modeling, rendering, animation and game creation package |
3701d8b9 | 17 | Summary(pl.UTF-8): Pakiet do tworzenia animacji 3D oraz gier |
4d72b1dc | 18 | Name: blender |
76fa6c53 | 19 | # beware: don't use 3.3.17+, they have all the libs packaged (0.5GB compressed) |
fc8e8e89 | 20 | Version: 3.6.11 |
76fa6c53 | 21 | Release: 1 |
364ec725 | 22 | License: GPL v2+ |
d2866530 | 23 | Group: X11/Applications/Graphics |
ba7734fe | 24 | Source0: https://download.blender.org/source/%{name}-%{version}.tar.xz |
fc8e8e89 | 25 | # Source0-md5: 32ec8c8403ead5e843edc1a26bdecb03 |
6cb9e722 | 26 | Patch0: %{name}-2.76-droid.patch |
4b097357 | 27 | Patch1: format-security.patch |
ba7734fe | 28 | URL: https://www.blender.org/ |
126ba6ff | 29 | BuildRequires: OpenAL-devel |
f0b20dc2 | 30 | BuildRequires: OpenCOLLADA-devel |
3805364c | 31 | BuildRequires: OpenColorIO-devel >= 2.0.0 |
ef63d3ab | 32 | BuildRequires: OpenEXR-devel |
9605d1bf | 33 | BuildRequires: OpenGL-devel |
4b097357 | 34 | BuildRequires: OpenGL-GLU-devel |
6cb9e722 | 35 | BuildRequires: OpenImageIO-devel |
11142244 | 36 | BuildRequires: OpenXR-devel |
490622c7 | 37 | BuildRequires: SDL2-devel |
fc8e8e89 | 38 | BuildRequires: boost-devel >= 1.48 |
fcdd8f69 | 39 | BuildRequires: cmake >= 3.10 |
3805364c | 40 | BuildRequires: embree-devel >= 3.8.0 |
8de72679 | 41 | BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1 |
3805364c | 42 | BuildRequires: fftw3-devel >= 3 |
fdc7d606 | 43 | BuildRequires: freealut-devel |
3805364c | 44 | BuildRequires: freetype-devel >= 2 |
f313c0b5 | 45 | BuildRequires: ftgl-devel |
126ba6ff | 46 | BuildRequires: gcc >= 5:3.4.0 |
88d42750 | 47 | BuildRequires: gettext-tools |
3805364c | 48 | BuildRequires: gmp-devel |
4b097357 JR |
49 | BuildRequires: jack-audio-connection-kit-devel |
50 | BuildRequires: jemalloc-devel | |
fc8e8e89 JB |
51 | BuildRequires: libdecor-devel >= 0.1 |
52 | BuildRequires: libepoxy-devel | |
3805364c JB |
53 | BuildRequires: libgomp-devel |
54 | BuildRequires: libharu-devel | |
9605d1bf | 55 | BuildRequires: libjpeg-devel |
56 | BuildRequires: libpng-devel | |
4b097357 JR |
57 | BuildRequires: libsndfile-devel |
58 | BuildRequires: libspnav-devel | |
dfc2b368 | 59 | BuildRequires: libstdc++-devel |
fdc7d606 | 60 | BuildRequires: libtiff-devel |
dfc2b368 | 61 | BuildRequires: libvorbis-devel |
3805364c JB |
62 | BuildRequires: libwebp-devel |
63 | BuildRequires: libxml2-devel >= 2.0 | |
fc8e8e89 | 64 | BuildRequires: openjpeg2-devel >= 2 |
273da9c9 | 65 | %{?with_openvdb:BuildRequires: openvdb-devel} |
2a53466d | 66 | BuildRequires: openssl-devel >= 0.9.7d |
3805364c | 67 | BuildRequires: pcre-devel |
fc8e8e89 | 68 | BuildRequires: pkgconfig |
f0b20dc2 | 69 | BuildRequires: potrace-devel |
54675d1f | 70 | BuildRequires: pugixml-devel |
3805364c | 71 | BuildRequires: pulseaudio-devel |
ba7734fe JR |
72 | BuildRequires: python3 >= 1:3.10 |
73 | BuildRequires: python3-devel >= 1:3.10 | |
4b097357 | 74 | BuildRequires: python3-numpy-devel |
08055d90 | 75 | BuildRequires: rpm-pythonprov |
731ec88b | 76 | BuildRequires: rpmbuild(macros) >= 1.605 |
dd78d76e | 77 | BuildRequires: sed >= 4.0 |
a6ef6de9 | 78 | BuildRequires: tar >= 1:1.22 |
f0b20dc2 | 79 | BuildRequires: tbb-devel |
fc8e8e89 JB |
80 | # wayland-client, wayland-cursor, wayland-scanner |
81 | BuildRequires: wayland-devel >= 1.12 | |
82 | BuildRequires: wayland-egl-devel | |
83 | BuildRequires: wayland-protocols >= 1.31 | |
3805364c | 84 | BuildRequires: xorg-lib-libX11-devel |
fc8e8e89 | 85 | BuildRequires: xorg-lib-libXext-devel |
4d805379 | 86 | BuildRequires: xorg-lib-libXi-devel |
fc8e8e89 | 87 | BuildRequires: xorg-lib-libxkbcommon-devel |
a6ef6de9 | 88 | BuildRequires: xz |
9605d1bf | 89 | BuildRequires: zlib-devel |
3805364c | 90 | BuildRequires: zstd-devel |
97c2fd28 | 91 | Requires(post,postun): desktop-file-utils |
ff884909 | 92 | Requires: OpenGL |
ba7734fe | 93 | Requires: python3-modules >= 1:3.10 |
4ec3633d | 94 | ExclusiveArch: %{x8664} |
4d72b1dc JK |
95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
96 | ||
4d72b1dc JK |
97 | %description |
98 | Blender is a free and fully functional 3D modeling, rendering, | |
99 | animation and game creation package for Unix, Windows and BeOS | |
9071f685 | 100 | systems. |
4d72b1dc | 101 | |
d3ad026c JR |
102 | %description -l pl.UTF-8 |
103 | Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji | |
104 | 3D 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 |
121 | install -d build |
122 | cd 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 |
153 | rm -rf $RPM_BUILD_ROOT | |
490622c7 AM |
154 | install -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 |
166 | rm -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* |