]> git.pld-linux.org Git - packages/blender.git/blame - blender.spec
- updated to 2.46 (fixes CVE-2008-1102)
[packages/blender.git] / blender.spec
CommitLineData
38c09fc8
AF
1# TODO:
2# - enable internalization support (BR libftgl)
38c09fc8 3# - libsolid/libqhull/libode BR ?
4d72b1dc 4Summary: 3D modeling, rendering, animation and game creation package
3701d8b9 5Summary(pl.UTF-8): Pakiet do tworzenia animacji 3D oraz gier
4d72b1dc 6Name: blender
3e6b0a09
MB
7Version: 2.46
8Release: 1
d2866530 9License: GPL
10Group: X11/Applications/Graphics
e9e23885 11Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
3e6b0a09 12# Source0-md5: e90543a5ca5db8b04498ab0abe7bbd2c
dfc2b368 13Source1: %{name}.desktop
14Source2: %{name}.png
aeb8eec7 15Source4: %{name}-wrapper
b643ae44 16Source5: %{name}.manpage
a374ab50 17Patch0: %{name}-po_and_locale_names.patch
aeb8eec7 18Patch1: %{name}-noxml-yafray.patch
b98aa62c 19URL: http://www.blender.org/
ef63d3ab 20BuildRequires: OpenEXR-devel
9605d1bf 21BuildRequires: OpenGL-devel
22BuildRequires: SDL-devel
8a655622 23BuildRequires: gcc >= 5:3.4.0
3e6b0a09 24BuildRequires: ffmpeg-devel
fdc7d606 25BuildRequires: freealut-devel
7bc683ce 26BuildRequires: freetype-devel
f313c0b5 27BuildRequires: ftgl-devel
fdc7d606 28BuildRequires: gettext-devel
42794eef 29#BuildRequires: esound-devel
9605d1bf 30BuildRequires: libjpeg-devel
31BuildRequires: libpng-devel
dfc2b368 32BuildRequires: libstdc++-devel
fdc7d606 33BuildRequires: libtiff-devel
ff884909 34BuildRequires: libtool
dfc2b368 35BuildRequires: libvorbis-devel
2a53466d 36BuildRequires: openssl-devel >= 0.9.7d
72944b38 37BuildRequires: python-devel >= 1:2.3
38c09fc8 38BuildRequires: scons
dd78d76e 39BuildRequires: sed >= 4.0
42794eef 40#BuildRequires: smpeg-devel
9605d1bf 41BuildRequires: zlib-devel
ff884909 42Requires: OpenGL
7bc683ce 43Requires: freetype
2c0478d0 44Requires: python-modules
4d72b1dc
JK
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%define _noautoreqdep libGL.so.1 libGLU.so.1
4d72b1dc
JK
48
49%description
50Blender is a free and fully functional 3D modeling, rendering,
51animation and game creation package for Unix, Windows and BeOS
9071f685 52systems.
4d72b1dc 53
d3ad026c
JR
54%description -l pl.UTF-8
55Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
563D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
4d72b1dc
JK
57
58%prep
811f0f5d 59%setup -q
a374ab50 60%patch0 -p1
e73b0ea3 61%patch1 -p1
4d72b1dc 62
dfc2b368 63rm -f missing
811f0f5d 64rm -f user-config.py
3e6b0a09 65rm -rf bin/.blender/locale
8e17c17b 66
38c09fc8
AF
67RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
68RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
69
811f0f5d 70cat > user-config.py <<END
cbc6c68b
MB
71CCFLAGS = [$RPMCFLAGS, "-funsigned-char", "-fPIC"]
72CXXFLAGS = [$RPMCFLAGS, "-funsigned-char", "-fPIC"]
811f0f5d 73LDFLAGS = [$RPMLDFLAGS]
74TARGET_CC = '%{__cc}'
75TARGET_CXX = '%{__cxx}'
38c09fc8 76
28353fda 77BF_PYTHON_VERSION = '%{py_ver}'
811f0f5d 78
3e6b0a09
MB
79BF_FFMPEG = '/usr'
80BF_FFMPEG_INC = '%{_includedir}/ffmpeg'
81BF_FFMPEG_LIBPATH = '%{_libdir}'
82BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
83
811f0f5d 84LCGDIR = 'lib/linux2'
85BF_BUILDDIR = 'build/linux2'
86BF_INSTALLDIR = 'install/linux2'
87END
f99bddf4 88
c3538bdb 89%build
3e6b0a09 90%scons BF_OPENGL_LIBPATH=%{_x_libraries}
71a78563 91%{__make} -C po OCGDIR=..
4d72b1dc 92
aeb8eec7 93install -d release/plugins/include
dd78d76e 94install source/blender/blenpluginapi/*.h release/plugins/include
aeb8eec7 95chmod +x release/plugins/bmake
23e28f47 96%{__make} -C release/plugins/
aeb8eec7 97
4d72b1dc
JK
98%install
99rm -rf $RPM_BUILD_ROOT
811f0f5d 100install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}} \
101 $RPM_BUILD_ROOT%{_datadir}/blender/bpydata
dfc2b368 102
811f0f5d 103install ./install/linux2/blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
dd78d76e 104install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
811f0f5d 105#install blenderplayer $RPM_BUILD_ROOT%{_bindir}
dd78d76e 106install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
107install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
aeb8eec7
GJ
108install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
109install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
23e28f47
GJ
110install ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
111install ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
dd78d76e 112install -d $RPM_BUILD_ROOT%{_datadir}/blender
4cdc09f2 113cp -aR ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender
dd78d76e 114install ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender
115install ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender
116install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
3e6b0a09 117cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}
b643ae44 118install -d $RPM_BUILD_ROOT%{_mandir}/man1
23e28f47 119install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
7bc683ce 120
3e6b0a09
MB
121%find_lang %{name}
122
4d72b1dc
JK
123%clean
124rm -rf $RPM_BUILD_ROOT
125
3e6b0a09 126%files -f %{name}.lang
4d72b1dc 127%defattr(644,root,root,755)
7bc683ce 128%doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
38c09fc8 129%doc release/text/{blender.html,release*.txt}
9605d1bf 130%attr(755,root,root) %{_bindir}/*
961f6430 131%attr(755,root,root) %{_datadir}/%{name}
132%attr(755,root,root) %{_libdir}/%{name}
98471f49 133%{_desktopdir}/*.desktop
134%{_pixmapsdir}/*.png
b643ae44 135%{_mandir}/man1/*
This page took 0.108794 seconds and 4 git commands to generate.