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