2 # - enable internalization support (BR libftgl)
3 # - enable OpenAL support
4 # - libsolid/libqhull/libode BR ?
5 # - package python scripts
6 Summary: 3D modeling, rendering, animation and game creation package
7 Summary(pl): Pakiet do tworzenia animacji 3D oraz gier
10 # 2.37a is not alpha. Is the latest, STABLE version of blender.
13 Group: X11/Applications/Graphics
14 Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
15 # Source0-md5: dd0002c09ecd68b3cb3e3d8f4ce31e83
16 Source1: %{name}.desktop
18 Source3: %{name}-config.opts
19 Source4: %{name}-wrapper
20 Source5: %{name}.manpage
21 Patch0: %{name}-po_and_locale_names.patch
22 Patch1: %{name}-noxml-yafray.patch
23 URL: http://www.blender.org/
24 BuildRequires: OpenAL-devel
25 BuildRequires: OpenGL-devel
26 BuildRequires: SDL-devel
27 BuildRequires: ftgl-devel
28 #BuildRequires: autoconf
29 #BuildRequires: automake
30 #BuildRequires: esound-devel
31 BuildRequires: libjpeg-devel
32 BuildRequires: libpng-devel
33 BuildRequires: libstdc++-devel
34 BuildRequires: freetype-devel
35 BuildRequires: libtool
36 BuildRequires: libvorbis-devel
37 BuildRequires: openssl-devel >= 0.9.7d
38 BuildRequires: python-devel >= 1:2.3
40 BuildRequires: sed >= 4.0
41 #BuildRequires: smpeg-devel
42 BuildRequires: zlib-devel
44 Requires: python-modules
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define _noautoreqdep libGL.so.1 libGLU.so.1
51 Blender is a free and fully functional 3D modeling, rendering,
52 animation and game creation package for Unix, Windows and BeOS
56 Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
57 3D oraz gier, dostêpny dla systemów Unix, Windows i BeOS.
63 mv -f po/pt_{br,BR}.po
64 install %{SOURCE3} config.opts
69 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
70 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
72 sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
73 -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
74 -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
76 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
77 -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
79 sed -i 's/python2\.3/python%{py_ver}/' config.opts
82 %{__make} -C po OCGDIR=..
84 install -d release/plugins/include
85 install source/blender/blenpluginapi/*.h release/plugins/include
86 chmod +x release/plugins/bmake
87 %{__make} -C release/plugins/
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
93 install blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
94 install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
95 install blenderplayer $RPM_BUILD_ROOT%{_bindir}
96 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
97 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
98 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
99 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
100 install ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
101 install ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
102 install -d $RPM_BUILD_ROOT%{_datadir}/blender
103 cp -aR ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender
104 install ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender
105 install ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender
106 install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
107 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}/blender
108 install -d $RPM_BUILD_ROOT%{_mandir}/man1
109 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
117 %doc release/text/{blender.html,release*.txt}
118 %attr(755,root,root) %{_bindir}/*
119 %attr(755,root,root) %{_datadir}/%{name}
120 %attr(755,root,root) %{_libdir}/%{name}
121 %{_desktopdir}/*.desktop