]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
- 2.44
[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.UTF-8):      Pakiet do tworzenia animacji 3D oraz gier
8 Name:           blender
9 Version:        2.44
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:  7ac841f6feb27e9d7fb6d77cf137be12
15 Source1:        %{name}.desktop
16 Source2:        %{name}.png
17 Source4:        %{name}-wrapper
18 Source5:        %{name}.manpage
19 Patch0:         %{name}-po_and_locale_names.patch
20 Patch1:         %{name}-noxml-yafray.patch
21 URL:            http://www.blender.org/
22 BuildRequires:  OpenEXR-devel
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.UTF-8
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
60 %patch0 -p1
61 %patch1 -p1
62 mv -f po/pt_{br,BR}.po
63
64 rm -f missing
65 rm -f user-config.py
66
67 RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
68 RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
69
70 cat > user-config.py <<END
71 CCFLAGS           = [$RPMCFLAGS]
72 CXXFLAGS          = [$RPMCFLAGS]
73 LDFLAGS           = [$RPMLDFLAGS]
74 TARGET_CC         = '%{__cc}'
75 TARGET_CXX        = '%{__cxx}'
76
77 BF_PYTHON_VERSION = '%{py_ver}'
78
79 LCGDIR            = 'lib/linux2'
80 BF_BUILDDIR       = 'build/linux2'
81 BF_INSTALLDIR     = 'install/linux2'
82 END
83
84 %build
85 scons
86 %{__make} -C po OCGDIR=..
87
88 install -d release/plugins/include
89 install source/blender/blenpluginapi/*.h release/plugins/include
90 chmod +x release/plugins/bmake
91 %{__make} -C release/plugins/
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}} \
96         $RPM_BUILD_ROOT%{_datadir}/blender/bpydata
97
98 install ./install/linux2/blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
99 install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
100 #install blenderplayer $RPM_BUILD_ROOT%{_bindir}
101 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
102 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
103 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
104 install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
105 install ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
106 install ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
107 install -d $RPM_BUILD_ROOT%{_datadir}/blender
108 cp -aR ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender
109 install ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender
110 install ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender
111 install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
112 cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}/blender
113 install -d $RPM_BUILD_ROOT%{_mandir}/man1
114 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %files
120 %defattr(644,root,root,755)
121 %doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
122 %doc release/text/{blender.html,release*.txt}
123 %attr(755,root,root) %{_bindir}/*
124 %attr(755,root,root) %{_datadir}/%{name}
125 %attr(755,root,root) %{_libdir}/%{name}
126 %{_desktopdir}/*.desktop
127 %{_pixmapsdir}/*.png
128 %{_mandir}/man1/*
This page took 0.03145 seconds and 4 git commands to generate.