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