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