]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
9cc36bcc5561d2eb892d3f752dbde42c69089a85
[packages/blender.git] / blender.spec
1 # TODO:
2 # - enable internalization support (BR libftgl)
3 # - libsolid/libqhull/libode BR ?
4 Summary:        3D modeling, rendering, animation and game creation package
5 Summary(pl.UTF-8):      Pakiet do tworzenia animacji 3D oraz gier
6 Name:           blender
7 Version:        2.76
8 Release:        2
9 License:        GPL
10 Group:          X11/Applications/Graphics
11 Source0:        http://download.blender.org/source/%{name}-%{version}.tar.gz
12 # Source0-md5:  1f35ae56bb221bbeb21e89501fbd6c6a
13 Source1:        %{name}.desktop
14 Source2:        %{name}.png
15 Source3:        %{name}.manpage
16 Patch0:         blender-2.76-droid.patch
17 URL:            http://www.blender.org/
18 BuildRequires:  OpenAL-devel
19 BuildRequires:  OpenEXR-devel
20 BuildRequires:  OpenGL-devel
21 BuildRequires:  SDL2-devel
22 #BuildRequires: esound-devel
23 BuildRequires:  ffmpeg-devel >= 0.4.9-4.20080930.1
24 BuildRequires:  freealut-devel
25 BuildRequires:  freetype-devel
26 BuildRequires:  ftgl-devel
27 BuildRequires:  gcc >= 5:3.4.0
28 BuildRequires:  gettext-tools
29 BuildRequires:  libjpeg-devel
30 BuildRequires:  libpng-devel
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  libtiff-devel
33 BuildRequires:  libtool
34 BuildRequires:  libvorbis-devel
35 BuildRequires:  openssl-devel >= 0.9.7d
36 BuildRequires:  python3-devel
37 BuildRequires:  rpm-pythonprov
38 BuildRequires:  rpmbuild(macros) >= 1.385
39 BuildRequires:  cmake
40 BuildRequires:  sed >= 4.0
41 #BuildRequires: smpeg-devel
42 BuildRequires:  xorg-lib-libXi-devel
43 BuildRequires:  zlib-devel
44 Requires(post,postun):  desktop-file-utils
45 Requires:       OpenGL
46 Requires:       freetype
47 Requires:       python-modules
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
51
52 %description
53 Blender is a free and fully functional 3D modeling, rendering,
54 animation and game creation package for Unix, Windows and BeOS
55 systems.
56
57 %description -l pl.UTF-8
58 Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
59 3D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64
65 %build
66 install -d build
67 cd 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
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
102
103 %{__make} -C build install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
107 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
108 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
109
110 #%find_lang %{name}
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 %update_desktop_database_post
117
118 %postun
119 %update_desktop_database_postun
120
121 %files
122 # -f %{name}.lang
123 %defattr(644,root,root,755)
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
128 %attr(755,root,root) %{_datadir}/%{name}
129 %{_desktopdir}/*.desktop
130 %{_pixmapsdir}/*.png
131 %{_iconsdir}/*/*x*/apps/blender.png
132 %{_iconsdir}/*/scalable/apps/blender.svg
133 %{_mandir}/man1/*
This page took 0.062141 seconds and 3 git commands to generate.