]> git.pld-linux.org Git - packages/blender.git/blame - blender.spec
- release 2
[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
e3f5011b 7Version: 2.48a
2f234a56 8Release: 2
d2866530 9License: GPL
10Group: X11/Applications/Graphics
e9e23885 11Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz
e3f5011b 12# Source0-md5: 055d68d244458e9e429e4e492fc9b4ad
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
8de72679 19Patch2: %{name}-ffmpeg.patch
b98aa62c 20URL: http://www.blender.org/
ef63d3ab 21BuildRequires: OpenEXR-devel
9605d1bf 22BuildRequires: OpenGL-devel
23BuildRequires: SDL-devel
8a655622 24BuildRequires: gcc >= 5:3.4.0
8de72679 25BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
fdc7d606 26BuildRequires: freealut-devel
7bc683ce 27BuildRequires: freetype-devel
f313c0b5 28BuildRequires: ftgl-devel
fdc7d606 29BuildRequires: gettext-devel
42794eef 30#BuildRequires: esound-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
8de72679 65%patch2 -p0
4d72b1dc 66
dfc2b368 67rm -f missing
811f0f5d 68rm -f user-config.py
3e6b0a09 69rm -rf bin/.blender/locale
8e17c17b 70
38c09fc8
AF
71RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\""
72RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\""
73
811f0f5d 74cat > user-config.py <<END
cbc6c68b
MB
75CCFLAGS = [$RPMCFLAGS, "-funsigned-char", "-fPIC"]
76CXXFLAGS = [$RPMCFLAGS, "-funsigned-char", "-fPIC"]
811f0f5d 77LDFLAGS = [$RPMLDFLAGS]
78TARGET_CC = '%{__cc}'
79TARGET_CXX = '%{__cxx}'
38c09fc8 80
28353fda 81BF_PYTHON_VERSION = '%{py_ver}'
811f0f5d 82
3e6b0a09
MB
83BF_FFMPEG = '/usr'
84BF_FFMPEG_INC = '%{_includedir}/ffmpeg'
85BF_FFMPEG_LIBPATH = '%{_libdir}'
86BF_FFMPEG_LIB = 'avformat avcodec swscale avutil'
87
811f0f5d 88LCGDIR = 'lib/linux2'
89BF_BUILDDIR = 'build/linux2'
90BF_INSTALLDIR = 'install/linux2'
91END
f99bddf4 92
c3538bdb 93%build
3e6b0a09 94%scons BF_OPENGL_LIBPATH=%{_x_libraries}
71a78563 95%{__make} -C po OCGDIR=..
4d72b1dc 96
aeb8eec7 97install -d release/plugins/include
dd78d76e 98install source/blender/blenpluginapi/*.h release/plugins/include
aeb8eec7 99chmod +x release/plugins/bmake
23e28f47 100%{__make} -C release/plugins/
aeb8eec7 101
4d72b1dc
JK
102%install
103rm -rf $RPM_BUILD_ROOT
811f0f5d 104install -d $RPM_BUILD_ROOT{%{_datadir},%{_desktopdir},%{_pixmapsdir},%{_bindir}} \
105 $RPM_BUILD_ROOT%{_datadir}/blender/bpydata
dfc2b368 106
811f0f5d 107install ./install/linux2/blender $RPM_BUILD_ROOT%{_bindir}/blender-bin
dd78d76e 108install %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/blender
811f0f5d 109#install blenderplayer $RPM_BUILD_ROOT%{_bindir}
dd78d76e 110install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
111install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
aeb8eec7
GJ
112install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
113install -d $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
23e28f47
GJ
114install ./release/plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
115install ./release/plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
dd78d76e 116install -d $RPM_BUILD_ROOT%{_datadir}/blender
4cdc09f2 117cp -aR ./release/scripts $RPM_BUILD_ROOT%{_datadir}/blender
dd78d76e 118install ./release/VERSION $RPM_BUILD_ROOT%{_datadir}/blender
119install ./bin/.blender/.Blanguages $RPM_BUILD_ROOT%{_datadir}/blender
120install ./bin/.blender/.bfont.ttf $RPM_BUILD_ROOT%{_datadir}/blender
3e6b0a09 121cp -a bin/.blender/locale $RPM_BUILD_ROOT%{_datadir}
b643ae44 122install -d $RPM_BUILD_ROOT%{_mandir}/man1
23e28f47 123install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
7bc683ce 124
3e6b0a09
MB
125%find_lang %{name}
126
4d72b1dc
JK
127%clean
128rm -rf $RPM_BUILD_ROOT
129
97c2fd28
MB
130%post
131%update_desktop_database_post
132
133%postun
134%update_desktop_database_postun
135
3e6b0a09 136%files -f %{name}.lang
4d72b1dc 137%defattr(644,root,root,755)
7bc683ce 138%doc README doc/bf-members.txt doc/python-dev-guide.txt doc/oldbugs.txt doc/interface_API.txt
38c09fc8 139%doc release/text/{blender.html,release*.txt}
9605d1bf 140%attr(755,root,root) %{_bindir}/*
961f6430 141%attr(755,root,root) %{_datadir}/%{name}
142%attr(755,root,root) %{_libdir}/%{name}
98471f49 143%{_desktopdir}/*.desktop
144%{_pixmapsdir}/*.png
b643ae44 145%{_mandir}/man1/*
This page took 0.101928 seconds and 4 git commands to generate.