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