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