]>
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 |
7ecf8194 | 7 | Version: 2.81a |
5e4c02ea | 8 | Release: 2 |
d2866530 | 9 | License: GPL |
10 | Group: X11/Applications/Graphics | |
7ecf8194 JR |
11 | Source0: http://download.blender.org/source/%{name}-%{version}.tar.xz |
12 | # Source0-md5: fd106a2c3debfd215617d31197883173 | |
6cb9e722 | 13 | Patch0: %{name}-2.76-droid.patch |
4b097357 | 14 | Patch1: format-security.patch |
54675d1f | 15 | Patch2: python-3.8.patch |
7ecf8194 | 16 | Patch3: struct-alignment.patch |
b98aa62c | 17 | URL: http://www.blender.org/ |
126ba6ff | 18 | BuildRequires: OpenAL-devel |
4b097357 | 19 | BuildRequires: OpenColorIO-devel |
ef63d3ab | 20 | BuildRequires: OpenEXR-devel |
9605d1bf | 21 | BuildRequires: OpenGL-devel |
4b097357 | 22 | BuildRequires: OpenGL-GLU-devel |
6cb9e722 | 23 | BuildRequires: OpenImageIO-devel |
490622c7 | 24 | BuildRequires: SDL2-devel |
4b097357 | 25 | BuildRequires: boost-devel |
6cb9e722 | 26 | BuildRequires: cmake |
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 |
4b097357 | 48 | BuildRequires: python3 |
490622c7 | 49 | BuildRequires: python3-devel |
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 |
2c0478d0 | 59 | Requires: python-modules |
4d72b1dc JK |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
61 | ||
b1097d8e | 62 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
4d72b1dc JK |
63 | |
64 | %description | |
65 | Blender is a free and fully functional 3D modeling, rendering, | |
66 | animation and game creation package for Unix, Windows and BeOS | |
9071f685 | 67 | systems. |
4d72b1dc | 68 | |
d3ad026c JR |
69 | %description -l pl.UTF-8 |
70 | Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji | |
71 | 3D 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 |
83 | install -d build |
84 | cd 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 |
119 | rm -rf $RPM_BUILD_ROOT | |
dfc2b368 | 120 | |
490622c7 AM |
121 | install -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 |
131 | rm -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/* |