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