]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
- use BlenderLanguages file, I had a chat with blender devels, and they don't find...
[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:        2
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 Patch0:         %{name}-po_and_locale_names.patch
20 Patch1:         %{name}-blanguages.patch
21 Patch2:         %{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 %patch2 -p1
62
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
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
87
88 install -m755 blender $RPM_BUILD_ROOT%{_bindir}
89 install -m755 blenderplayer $RPM_BUILD_ROOT%{_bindir}
90 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
91 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
92 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}
93 cp -a bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/BlenderLanguages
94
95 %find_lang %{name} --all-name
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt 
103 %doc release/text/{blender.html,release*.txt}
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_datadir}
106 %{_desktopdir}/*.desktop
107 %{_pixmapsdir}/*.png
This page took 0.041978 seconds and 4 git commands to generate.