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