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