]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
7966292300685168d3bdccb9f78c82297ced79aa
[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.42
10 Release:        0.1
11 License:        GPL
12 Group:          X11/Applications/Graphics
13 Source0:        http://download.blender.org/source/%{name}-%{version}.tar.gz
14 # Source0-md5:  232d714a64c3a2208f0ea999fe4a2440
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:  OpenGL-devel
24 BuildRequires:  SDL-devel
25 BuildRequires:  freealut-devel
26 BuildRequires:  freetype-devel
27 BuildRequires:  ftgl-devel
28 BuildRequires:  gettext-devel
29 #BuildRequires: esound-devel
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libpng-devel
32 BuildRequires:  libstdc++-devel
33 BuildRequires:  libtiff-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:       freetype
44 Requires:       python-modules
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}%{version}
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 cp config.opts user-config.py
81
82 scons
83 %{__make} -C po OCGDIR=..
84
85 install -d release/plugins/include
86 install source/blender/blenpluginapi/*.h release/plugins/include
87 chmod +x release/plugins/bmake
88 %{__make} -C release/plugins/
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
93
94 install blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
95 install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
96 install blenderplayer $RPM_BUILD_ROOT%{_bindir}
97 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
98 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
99 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
100 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
101 install ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
102 install ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
103 install -d $RPM_BUILD_ROOT%{_datadir}/blender
104 cp -aR ./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}/%{name}
121 %attr(755,root,root) %{_libdir}/%{name}
122 %{_desktopdir}/*.desktop
123 %{_pixmapsdir}/*.png
124 %{_mandir}/man1/*
This page took 0.029036 seconds and 3 git commands to generate.