]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
- man page for blender, so some will know how to handle rendering from command line...
[packages/blender.git] / blender.spec
1 # TODO:
2 # - enable internalization support (BR libftgl)
3 # - enable OpenAL support
4 # - libsolid/libqhull/libode BR ?
5 # - package python scripts
6
7 Summary:        3D modeling, rendering, animation and game creation package
8 Summary(pl):    Pakiet do tworzenia animacji 3D oraz gier
9 Name:           blender
10 Version:        2.36
11 Release:        3
12 License:        GPL
13 Group:          X11/Applications/Graphics
14 Source0:        http://download.blender.org/source/%{name}-%{version}.tar.gz
15 # Source0-md5:  8e2237c86b12e6061935632495aec875
16 Source1:        %{name}.desktop
17 Source2:        %{name}.png
18 Source3:        %{name}-config.opts
19 Source4:        %{name}-wrapper
20 Patch0:         %{name}-po_and_locale_names.patch
21 Patch1:         %{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
38 BuildRequires:  scons
39 #BuildRequires: smpeg-devel
40 BuildRequires:  zlib-devel
41 Requires:       OpenGL
42 Requires:       python-modules
43 Requires:       freetype
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
47
48 %description
49 Blender is a free and fully functional 3D modeling, rendering,
50 animation and game creation package for Unix, Windows and BeOS
51 systems.
52
53 %description -l pl
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.
56
57 %prep
58 %setup -q -n %{name}
59 %patch0 -p1
60 %patch1 -p1
61 mv -f po/pt_{br,BR}.po
62 install %{SOURCE3} config.opts
63
64 %build
65 rm -f missing
66
67 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
68 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
69
70 sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
71         -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
72         -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
73         config.opts
74 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
75         -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
76         config.opts
77 sed -i 's/python2\.3/python%{py_ver}/' config.opts
78
79 scons
80 %{__make} -C po OCGDIR=..
81
82 install -d release/plugins/include
83 install -m 644 source/blender/blenpluginapi/*.h release/plugins/include
84 chmod +x release/plugins/bmake
85 make -C release/plugins/
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
90
91 install -m755 blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
92 install -m755 %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
93 install -m755 blenderplayer $RPM_BUILD_ROOT%{_bindir}
94 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
95 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
96 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
97 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
98 install -m644 ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
99 install -m644 ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
100 install -d $RPM_BUILD_ROOT%{_datadir}/blender/
101 cp -a ./release/bpydata $RPM_BUILD_ROOT%{_datadir}/blender/
102 cp -a ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender/
103 install -m644 ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender/
104 install -m644 ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender/
105 install -m644 ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender/
106 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}/blender
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %files
112 %defattr(644,root,root,755)
113 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt 
114 %doc release/text/{blender.html,release*.txt}
115 %attr(755,root,root) %{_bindir}/*
116 %attr(755,root,root) %{_datadir}
117 %attr(755,root,root) %{_libdir}
118 %{_desktopdir}/*.desktop
119 %{_pixmapsdir}/*.png
This page took 0.052745 seconds and 3 git commands to generate.