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