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