2 # - enable internalization support (BR libftgl)
3 # - enable OpenAL support
4 # - libsolid/libqhull/libode BR ?
5 # - package python scripts
7 Summary: 3D modeling, rendering, animation and game creation package
8 Summary(pl): Pakiet do tworzenia animacji 3D oraz gier
13 Group: X11/Applications/Graphics
14 Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
15 # Source0-md5: 8e2237c86b12e6061935632495aec875
16 Source1: %{name}.desktop
18 Source3: %{name}-config.opts
19 Patch0: %{name}-po_and_locale_names.patch
20 Patch1: %{name}-blanguages.patch
21 Patch2: %{name}-noxml-yafray.patch
22 URL: http://www.blender.org/
23 BuildRequires: OpenAL-devel
24 BuildRequires: OpenGL-devel
25 BuildRequires: SDL-devel
26 BuildRequires: ftgl-devel
27 #BuildRequires: autoconf
28 #BuildRequires: automake
29 #BuildRequires: esound-devel
30 BuildRequires: libjpeg-devel
31 BuildRequires: libpng-devel
32 BuildRequires: libstdc++-devel
33 BuildRequires: freetype-devel
34 BuildRequires: libtool
35 BuildRequires: libvorbis-devel
36 BuildRequires: openssl-devel >= 0.9.7d
37 BuildRequires: python-devel >= 1:2.3
39 #BuildRequires: smpeg-devel
40 BuildRequires: zlib-devel
42 Requires: python-modules
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _noautoreqdep libGL.so.1 libGLU.so.1
49 Blender is a free and fully functional 3D modeling, rendering,
50 animation and game creation package for Unix, Windows and BeOS
54 Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
55 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=..
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
88 install -m755 blender $RPM_BUILD_ROOT%{_bindir}
89 install -m755 blenderplayer $RPM_BUILD_ROOT%{_bindir}
90 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
91 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
92 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}
93 cp -a bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/BlenderLanguages
95 %find_lang %{name} --all-name
98 rm -rf $RPM_BUILD_ROOT
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
103 %doc release/text/{blender.html,release*.txt}
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_datadir}
106 %{_desktopdir}/*.desktop