]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
- release 0.2,
[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.2
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 Patch2:         %{name}-python-fix.patch
23 URL:            http://www.blender.org/
24 BuildRequires:  OpenGL-devel
25 BuildRequires:  SDL-devel
26 BuildRequires:  freealut-devel
27 BuildRequires:  freetype-devel
28 BuildRequires:  ftgl-devel
29 BuildRequires:  gettext-devel
30 #BuildRequires: esound-devel
31 BuildRequires:  libjpeg-devel
32 BuildRequires:  libpng-devel
33 BuildRequires:  libstdc++-devel
34 BuildRequires:  libtiff-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:       freetype
45 Requires:       python-modules
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}%{version}
61 %patch0 -p1
62 %patch1 -p1
63 %patch2 -p1
64 mv -f po/pt_{br,BR}.po
65 install %{SOURCE3} config.opts
66
67 %build
68 rm -f missing
69
70 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
71 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
72
73 sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
74         -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
75         -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
76         config.opts
77 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
78         -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
79         config.opts
80 sed -i 's/python2\.3/python%{py_ver}/' config.opts
81
82 cp config.opts user-config.py
83
84 scons
85 %{__make} -C po OCGDIR=..
86
87 install -d release/plugins/include
88 install source/blender/blenpluginapi/*.h release/plugins/include
89 chmod +x release/plugins/bmake
90 %{__make} -C release/plugins/
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
95
96 install blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
97 install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
98 install blenderplayer $RPM_BUILD_ROOT%{_bindir}
99 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
100 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
101 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
102 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
103 install ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
104 install ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
105 install -d $RPM_BUILD_ROOT%{_datadir}/blender
106 cp -aR ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender
107 install ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender
108 install ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender
109 install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
110 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}/blender
111 install -d $RPM_BUILD_ROOT%{_mandir}/man1
112 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %files
118 %defattr(644,root,root,755)
119 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
120 %doc release/text/{blender.html,release*.txt}
121 %attr(755,root,root) %{_bindir}/*
122 %attr(755,root,root) %{_datadir}/%{name}
123 %attr(755,root,root) %{_libdir}/%{name}
124 %{_desktopdir}/*.desktop
125 %{_pixmapsdir}/*.png
126 %{_mandir}/man1/*
This page took 0.058908 seconds and 4 git commands to generate.