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