]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
- blender is 3D graphics editor
[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.34
10 Release:        1
11 License:        GPL
12 Group:          X11/Applications/Graphics
13 Source0:        http://download.blender.org/source/%{name}-%{version}.tar.bz2
14 # Source0-md5:  dad5ac3d415abefad9c52f7b814339d8
15 Source1:        %{name}.desktop
16 Source2:        %{name}.png
17 Source3:        %{name}-config.opts
18 Patch0:         %{name}-po_and_locale_names.patch
19 URL:            http://www.blender.org/
20 #BuildRequires: OpenAL-devel
21 BuildRequires:  OpenGL-devel
22 BuildRequires:  SDL-devel
23 #BuildRequires: autoconf
24 #BuildRequires: automake
25 #BuildRequires: esound-devel
26 BuildRequires:  libjpeg-devel
27 BuildRequires:  libpng-devel
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  libtool
30 BuildRequires:  libvorbis-devel
31 BuildRequires:  openssl-devel >= 0.9.7d
32 BuildRequires:  python-devel
33 BuildRequires:  scons
34 #BuildRequires: smpeg-devel
35 BuildRequires:  zlib-devel
36 Requires:       OpenGL
37 Requires:       python-modules
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
41
42 %description
43 Blender is a free and fully functional 3D modeling, rendering,
44 animation and game creation package for Unix, Windows and BeOS
45 systems.
46
47 %description -l pl
48 Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
49 3D oraz gier, dostêpny dla systemów Unix, Windows i BeOS.
50
51 %prep
52 %setup -q
53 %patch0 -p1
54
55 mv -f po/pt_{br,BR}.po
56 rm -rf bin/.blender/locale
57 install %{SOURCE3} config.opts
58
59 %build
60 rm -f missing
61
62 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
63 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
64
65 sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
66         -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \
67         -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \
68         config.opts
69 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
70         -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
71         config.opts
72 # TODO fix PYTHON_* vars in config.opts
73
74 scons
75 %{__make} -C po OCGDIR=..
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}}
80
81 install -m755 blender $RPM_BUILD_ROOT%{_bindir}
82 install -m755 blenderplayer $RPM_BUILD_ROOT%{_bindir}
83 install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
84 install -c %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
85 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}
86
87 %find_lang %{name} --all-name
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files -f %{name}.lang
93 %defattr(644,root,root,755)
94 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt 
95 %doc release/text/{blender.html,release*.txt}
96 %attr(755,root,root) %{_bindir}/*
97 %{_desktopdir}/*.desktop
98 %{_pixmapsdir}/*.png
This page took 0.048208 seconds and 3 git commands to generate.