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