]> git.pld-linux.org Git - packages/blender.git/blame - blender.spec
- release 2 (by relup.sh)
[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
7ecf8194 7Version: 2.81a
5e4c02ea 8Release: 2
d2866530 9License: GPL
10Group: X11/Applications/Graphics
7ecf8194
JR
11Source0: http://download.blender.org/source/%{name}-%{version}.tar.xz
12# Source0-md5: fd106a2c3debfd215617d31197883173
6cb9e722 13Patch0: %{name}-2.76-droid.patch
4b097357 14Patch1: format-security.patch
54675d1f 15Patch2: python-3.8.patch
7ecf8194 16Patch3: struct-alignment.patch
b98aa62c 17URL: http://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
6cb9e722 26BuildRequires: cmake
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
4b097357 48BuildRequires: python3
490622c7 49BuildRequires: python3-devel
4b097357 50BuildRequires: python3-numpy-devel
08055d90 51BuildRequires: rpm-pythonprov
97c2fd28 52BuildRequires: rpmbuild(macros) >= 1.385
dd78d76e 53BuildRequires: sed >= 4.0
4d805379 54BuildRequires: xorg-lib-libXi-devel
9605d1bf 55BuildRequires: zlib-devel
97c2fd28 56Requires(post,postun): desktop-file-utils
ff884909 57Requires: OpenGL
7bc683ce 58Requires: freetype
2c0478d0 59Requires: python-modules
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
54675d1f 77%patch2 -p1
7ecf8194
JR
78%ifarch x32
79%patch3 -p1
80%endif
4d72b1dc 81
c3538bdb 82%build
490622c7
AM
83install -d build
84cd build
85%cmake \
4b097357
JR
86 -DCMAKE_SKIP_RPATH:BOOL=ON \
87 -DBUILD_SHARED_LIBS:BOOL=OFF \
490622c7
AM
88 -DWITH_FFTW3:BOOL=ON \
89 -DWITH_JACK:BOOL=ON \
4b097357 90 -DWITH_JACK_DYNLOAD:BOOL=ON \
490622c7
AM
91 -DWITH_CODEC_SNDFILE:BOOL=ON \
92 -DWITH_IMAGE_OPENJPEG:BOOL=ON \
93 -DWITH_OPENCOLLADA:BOOL=ON \
4b097357 94 -DWITH_OPENCOLORIO:BOOL=ON \
490622c7
AM
95 -DWITH_CYCLES:BOOL=ON \
96 -DWITH_FFTW3:BOOL=ON \
97 -DWITH_MOD_OCEANSIM:BOOL=ON \
98 -DOPENCOLLADA=%{_includedir} \
99 -DWITH_PYTHON:BOOL=ON \
100 -DPYTHON_VERSION:STRING=%{py3_ver} \
101 -DWITH_PYTHON_INSTALL:BOOL=OFF \
102 -DWITH_CODEC_FFMPEG:BOOL=ON \
103 -DWITH_GAMEENGINE:BOOL=ON \
104 -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
4b097357
JR
105 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
106 -DWITH_PYTHON_SAFETY:BOOL=ON \
107 -DWITH_PLAYER:BOOL=ON \
108 -DWITH_MEM_JEMALLOC:BOOL=ON \
109 -DWITH_SYSTEM_GLEW:BOOL=ON \
490622c7 110 -DBOOST_ROOT=%{_prefix} \
4b097357 111 -DWITH_INPUT_NDOF:BOOL=ON \
490622c7 112 -DWITH_SDL:BOOL=ON \
4b097357 113 -DWITH_SDL_DYNLOAD:BOOL=ON \
490622c7
AM
114 ..
115
116%{__make} V=1
aeb8eec7 117
4d72b1dc
JK
118%install
119rm -rf $RPM_BUILD_ROOT
dfc2b368 120
490622c7
AM
121install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
122
123%{__make} -C build install \
124 DESTDIR=$RPM_BUILD_ROOT
125
4b097357 126./doc/manpage/blender.1.py $RPM_BUILD_ROOT%{_bindir}/blender $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
7bc683ce 127
490622c7 128#%find_lang %{name}
3e6b0a09 129
4d72b1dc
JK
130%clean
131rm -rf $RPM_BUILD_ROOT
132
97c2fd28
MB
133%post
134%update_desktop_database_post
135
136%postun
137%update_desktop_database_postun
138
490622c7 139%files
4d72b1dc 140%defattr(644,root,root,755)
6cb9e722 141# -f %{name}.lang
490622c7
AM
142%doc doc/license/bf-members.txt doc/guides/*.txt
143%attr(755,root,root) %{_bindir}/blender
144%attr(755,root,root) %{_bindir}/blender-thumbnailer.py
961f6430 145%attr(755,root,root) %{_datadir}/%{name}
98471f49 146%{_desktopdir}/*.desktop
4b097357
JR
147%{_iconsdir}/hicolor/scalable/apps/blender.svg
148%{_iconsdir}/hicolor/symbolic/apps/blender-symbolic.svg
b643ae44 149%{_mandir}/man1/*
This page took 0.112542 seconds and 4 git commands to generate.