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