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