]> git.pld-linux.org Git - packages/blender.git/blame - blender.spec
- rebuild with python 3.8
[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
4b097357 7Version: 2.80
e137a467 8Release: 2
d2866530 9License: GPL
10Group: X11/Applications/Graphics
e9e23885 11Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
4b097357 12# Source0-md5: 30dedaf688741d0d5d6fa1e3c331610c
6cb9e722 13Patch0: %{name}-2.76-droid.patch
4b097357 14Patch1: format-security.patch
b98aa62c 15URL: http://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
8de72679 25BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
4b097357 26BuildRequires: fftw3-devel
fdc7d606 27BuildRequires: freealut-devel
7bc683ce 28BuildRequires: freetype-devel
f313c0b5 29BuildRequires: ftgl-devel
126ba6ff 30BuildRequires: gcc >= 5:3.4.0
88d42750 31BuildRequires: gettext-tools
4b097357
JR
32BuildRequires: glew-devel
33BuildRequires: jack-audio-connection-kit-devel
34BuildRequires: jemalloc-devel
9605d1bf 35BuildRequires: libjpeg-devel
36BuildRequires: libpng-devel
4b097357
JR
37BuildRequires: libsndfile-devel
38BuildRequires: libspnav-devel
dfc2b368 39BuildRequires: libstdc++-devel
fdc7d606 40BuildRequires: libtiff-devel
ff884909 41BuildRequires: libtool
dfc2b368 42BuildRequires: libvorbis-devel
4b097357 43BuildRequires: openjpeg2-devel
2a53466d 44BuildRequires: openssl-devel >= 0.9.7d
4b097357 45BuildRequires: python3
490622c7 46BuildRequires: python3-devel
4b097357 47BuildRequires: python3-numpy-devel
08055d90 48BuildRequires: rpm-pythonprov
97c2fd28 49BuildRequires: rpmbuild(macros) >= 1.385
dd78d76e 50BuildRequires: sed >= 4.0
4d805379 51BuildRequires: xorg-lib-libXi-devel
9605d1bf 52BuildRequires: zlib-devel
97c2fd28 53Requires(post,postun): desktop-file-utils
ff884909 54Requires: OpenGL
7bc683ce 55Requires: freetype
2c0478d0 56Requires: python-modules
4d72b1dc
JK
57BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
b1097d8e 59%define _noautoreqdep libGL.so.1 libGLU.so.1
4d72b1dc
JK
60
61%description
62Blender is a free and fully functional 3D modeling, rendering,
63animation and game creation package for Unix, Windows and BeOS
9071f685 64systems.
4d72b1dc 65
d3ad026c
JR
66%description -l pl.UTF-8
67Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
683D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
4d72b1dc
JK
69
70%prep
811f0f5d 71%setup -q
a374ab50 72%patch0 -p1
061abd18 73%patch1 -p1
4d72b1dc 74
c3538bdb 75%build
490622c7
AM
76install -d build
77cd build
78%cmake \
4b097357
JR
79 -DCMAKE_SKIP_RPATH:BOOL=ON \
80 -DBUILD_SHARED_LIBS:BOOL=OFF \
490622c7
AM
81 -DWITH_FFTW3:BOOL=ON \
82 -DWITH_JACK:BOOL=ON \
4b097357 83 -DWITH_JACK_DYNLOAD:BOOL=ON \
490622c7
AM
84 -DWITH_CODEC_SNDFILE:BOOL=ON \
85 -DWITH_IMAGE_OPENJPEG:BOOL=ON \
86 -DWITH_OPENCOLLADA:BOOL=ON \
4b097357 87 -DWITH_OPENCOLORIO:BOOL=ON \
490622c7
AM
88 -DWITH_CYCLES:BOOL=ON \
89 -DWITH_FFTW3:BOOL=ON \
90 -DWITH_MOD_OCEANSIM:BOOL=ON \
91 -DOPENCOLLADA=%{_includedir} \
92 -DWITH_PYTHON:BOOL=ON \
93 -DPYTHON_VERSION:STRING=%{py3_ver} \
94 -DWITH_PYTHON_INSTALL:BOOL=OFF \
95 -DWITH_CODEC_FFMPEG:BOOL=ON \
96 -DWITH_GAMEENGINE:BOOL=ON \
97 -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
4b097357
JR
98 -DWITH_INSTALL_PORTABLE:BOOL=OFF \
99 -DWITH_PYTHON_SAFETY:BOOL=ON \
100 -DWITH_PLAYER:BOOL=ON \
101 -DWITH_MEM_JEMALLOC:BOOL=ON \
102 -DWITH_SYSTEM_GLEW:BOOL=ON \
490622c7 103 -DBOOST_ROOT=%{_prefix} \
4b097357 104 -DWITH_INPUT_NDOF:BOOL=ON \
490622c7 105 -DWITH_SDL:BOOL=ON \
4b097357 106 -DWITH_SDL_DYNLOAD:BOOL=ON \
490622c7
AM
107 ..
108
109%{__make} V=1
aeb8eec7 110
4d72b1dc
JK
111%install
112rm -rf $RPM_BUILD_ROOT
dfc2b368 113
490622c7
AM
114install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
115
116%{__make} -C build install \
117 DESTDIR=$RPM_BUILD_ROOT
118
4b097357 119./doc/manpage/blender.1.py $RPM_BUILD_ROOT%{_bindir}/blender $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
7bc683ce 120
490622c7 121#%find_lang %{name}
3e6b0a09 122
4d72b1dc
JK
123%clean
124rm -rf $RPM_BUILD_ROOT
125
97c2fd28
MB
126%post
127%update_desktop_database_post
128
129%postun
130%update_desktop_database_postun
131
490622c7 132%files
4d72b1dc 133%defattr(644,root,root,755)
6cb9e722 134# -f %{name}.lang
490622c7
AM
135%doc doc/license/bf-members.txt doc/guides/*.txt
136%attr(755,root,root) %{_bindir}/blender
137%attr(755,root,root) %{_bindir}/blender-thumbnailer.py
961f6430 138%attr(755,root,root) %{_datadir}/%{name}
98471f49 139%{_desktopdir}/*.desktop
4b097357
JR
140%{_iconsdir}/hicolor/scalable/apps/blender.svg
141%{_iconsdir}/hicolor/symbolic/apps/blender-symbolic.svg
b643ae44 142%{_mandir}/man1/*
This page took 0.081352 seconds and 4 git commands to generate.