]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
- up to 2.37a
[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 Summary:        3D modeling, rendering, animation and game creation package
7 Summary(pl):    Pakiet do tworzenia animacji 3D oraz gier
8 Name:           blender
9 Version:        2.37a
10 # 2.37a is not alpha. Is the latest, STABLE version of blender.
11 Release:        1
12 License:        GPL
13 Group:          X11/Applications/Graphics
14 Source0:        http://download.blender.org/source/%{name}-%{version}.tar.gz
15 # Source0-md5:  dd0002c09ecd68b3cb3e3d8f4ce31e83
16 Source1:        %{name}.desktop
17 Source2:        %{name}.png
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
39 BuildRequires:  scons
40 BuildRequires:  sed >= 4.0
41 #BuildRequires: smpeg-devel
42 BuildRequires:  zlib-devel
43 Requires:       OpenGL
44 Requires:       python-modules
45 Requires:       freetype
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
49
50 %description
51 Blender is a free and fully functional 3D modeling, rendering,
52 animation and game creation package for Unix, Windows and BeOS
53 systems.
54
55 %description -l pl
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.
58
59 %prep
60 %setup -q -n %{name}
61 %patch0 -p1
62 %patch1 -p1
63 mv -f po/pt_{br,BR}.po
64 install %{SOURCE3} config.opts
65
66 %build
67 rm -f missing
68
69 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
70 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
71
72 sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
73         -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
74         -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
75         config.opts
76 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
77         -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
78         config.opts
79 sed -i 's/python2\.3/python%{py_ver}/' config.opts
80
81 scons
82 %{__make} -C po OCGDIR=..
83
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/
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
92
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 -a ./release/bpydata $RPM_BUILD_ROOT%{_datadir}/blender
104 cp -a ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender
105 install ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender
106 install ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender
107 install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
108 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}/blender
109 install -d $RPM_BUILD_ROOT%{_mandir}/man1
110 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
111  
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files
116 %defattr(644,root,root,755)
117 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt 
118 %doc release/text/{blender.html,release*.txt}
119 %attr(755,root,root) %{_bindir}/*
120 %attr(755,root,root) %{_datadir}
121 %attr(755,root,root) %{_libdir}
122 %{_desktopdir}/*.desktop
123 %{_pixmapsdir}/*.png
124 %{_mandir}/man1/*
This page took 0.044205 seconds and 3 git commands to generate.