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