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
12 Group: X11/Applications/Graphics
13 Source0: http://download.blender.org/source/%{name}-%{version}.tar.bz2
14 # Source0-md5: d451bb3047a9c2fe785c0b91f9769717
15 Source1: %{name}.desktop
17 Source3: %{name}-config.opts
18 Patch0: %{name}-po_and_locale_names.patch
19 URL: http://www.blender.org/
20 #BuildRequires: OpenAL-devel
21 BuildRequires: OpenGL-devel
22 BuildRequires: SDL-devel
23 #BuildRequires: autoconf
24 #BuildRequires: automake
25 #BuildRequires: esound-devel
26 BuildRequires: libjpeg-devel
27 BuildRequires: libpng-devel
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtool
30 BuildRequires: libvorbis-devel
31 BuildRequires: openssl-devel >= 0.9.7d
32 BuildRequires: python-devel
34 #BuildRequires: smpeg-devel
35 BuildRequires: zlib-devel
37 Requires: python-modules
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _noautoreqdep libGL.so.1 libGLU.so.1
43 Blender is a free and fully functional 3D modeling, rendering,
44 animation and game creation package for Unix, Windows and BeOS
48 Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
49 3D oraz gier, dostêpny dla systemów Unix, Windows i BeOS.
55 mv -f po/pt_{br,BR}.po
56 rm -rf bin/.blender/locale
57 install %{SOURCE3} config.opts
62 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
63 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
65 sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
66 -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
67 -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
69 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
70 -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
72 # TODO fix PYTHON_* vars in config.opts
75 %{__make} -C po OCGDIR=..
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
81 install -m755 blender $RPM_BUILD_ROOT%{_bindir}
82 install -m755 blenderplayer $RPM_BUILD_ROOT%{_bindir}
83 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
84 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
85 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}
87 %find_lang %{name} --all-name
90 rm -rf $RPM_BUILD_ROOT
92 %files -f %{name}.lang
93 %defattr(644,root,root,755)
94 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
95 %doc release/text/{blender.html,release*.txt}
96 %attr(755,root,root) %{_bindir}/*
97 %{_desktopdir}/*.desktop