2 %include /usr/lib/rpm/macros.python
4 Summary: 3D modeling, rendering, animation and game creation package
5 Summary(pl): Pakiet do tworzenia animacji 3D oraz robienia gier
10 Group: X11/Applications/Graphics
11 Vendor: http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
12 Source0: http://www.linux.ucla.edu/~phaethon/blender/blender-creator-ph-%{version}.tar.gz
13 URL: http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
14 #!#Vendor: Blender Foundation
15 #!#Source0: ftp://dl.xs4all.nl/pub/mirror/blender/%{name}-source-%{version}.tar.gz
16 #!#http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
17 Patch0: %{name}-python.patch
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: libtool
22 BuildRequires: OpenGL-devel
23 BuildRequires: SDL-devel
24 BuildRequires: libjpeg-devel
25 BuildRequires: libpng-devel
26 BuildRequires: openssl-devel
27 BuildRequires: python-devel
28 BuildRequires: smpeg-devel
29 BuildRequires: zlib-devel
30 BuildRequires: nas-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _noautoreqdep libGL.so.1 libGLU.so.1
34 %define _prefix /usr/X11R6
37 Blender is a free and fully functional 3D modeling, rendering,
38 animation and game creation package for Unix, Windows and BeOS
42 Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
43 3D oraz robienia gier, dostêpny dla systemów Unix, Windows i BeOS.
46 %setup -q -n %{name}-creator-ph-%{version}
50 CPPFLAGS="-I/usr/X11R6/include"
51 LDFLAGS="-L/usr/X11R6/lib"
52 export CPPFLAGS LDFLAGS
61 rm -rf $RPM_BUILD_ROOT
62 %{__make} install DESTDIR=$RPM_BUILD_ROOT
63 echo blender-creator-ph > $RPM_BUILD_ROOT%{py_sitedir}/blender.pth
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_bindir}/*
72 %dir %{py_sitedir}/blender-creator-ph
73 %attr(755,root,root) %{py_sitedir}/blender-creator-ph/*.so
74 %{py_sitedir}/blender.pth