Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: blender.spec
- ===================================================================
- --- blender.spec (révision 812963)
- +++ blender.spec (copie de travail)
- @@ -1,52 +1,54 @@
- %define __python %{__python3}
- Name: blender
- -Version: 2.71
- -Release: %mkrel 11
- +Version: 2.73a
- +Release: %mkrel 0.1
- Summary: A fully functional 3D modeling/rendering/animation package
- +License: GPLv2+
- Group: Graphics/3D
- -Source0: http://download.blender.org/source/blender-v%{version}.tar.gz
- -Patch0: blender-2.67a-localedir.patch
- +URL: http://www.blender.org/
- +Source0: http://download.blender.org/source/blender-%{version}.tar.gz
- +Patch0: blender-2.73a-localedir.patch
- Patch1: blender-2.60-error-when-missing-sse.patch
- Patch2: blender-2.58-static-lib.patch
- Patch3: blender-2.65-openjpeg_stdbool.patch
- # Patch submitted upstream - Blender Patches item #19234,
- -Patch6: blender-2.67a-uninit-var.patch
- -Patch7: blender-2.71-link.patch
- -Patch8: blender-2.67-jack-libname.patch
- -Patch9: harbour-3.2.0-mga-minilzo-2.8.patch
- -Patch10: blender-2.71-parallel.patch
- -Patch11: blender-2.71-sse2.patch
- -URL: http://www.blender.org/
- -License: GPLv2+
- +Patch4: blender-2.67a-uninit-var.patch
- +Patch5: blender-2.67-jack-libname.patch
- +Patch6: blender-2.71-sse2.patch
- +Patch7: blender-2.73a-link.patch
- +
- BuildRequires: cmake >= 2.8
- BuildRequires: ffmpeg-devel
- -BuildRequires: glew-devel
- -BuildRequires: OpenEXR-devel
- -BuildRequires: SDL-devel
- -BuildRequires: libx11-devel
- -BuildRequires: libxi-devel
- -BuildRequires: freetype2-devel
- BuildRequires: libgomp-devel
- BuildRequires: jpeg-devel
- -BuildRequires: png-devel
- -BuildRequires: openjpeg-devel
- -BuildRequires: openal-devel
- -BuildRequires: libsamplerate-devel
- -BuildRequires: sndfile-devel
- -BuildRequires: libjack-devel
- -BuildRequires: tiff-devel
- -BuildRequires: fftw3-devel
- -BuildRequires: python3-devel >= 3.2
- BuildRequires: boost-devel
- +BuildRequires: jemalloc-devel
- +BuildRequires: openCOLLADA-devel
- BuildRequires: openimageio-devel
- -BuildRequires: opencolorio-devel
- +BuildRequires: pkgconfig(OpenColorIO)
- +BuildRequires: pkgconfig(libopenjpeg1)
- +BuildRequires: pkgconfig(jack)
- +BuildRequires: pkgconfig(libtiff-4)
- +BuildRequires: pkgconfig(glew)
- +BuildRequires: pkgconfig(glu)
- +BuildRequires: pkgconfig(OpenEXR)
- +BuildRequires: pkgconfig(sdl)
- +BuildRequires: pkgconfig(x11)
- +BuildRequires: pkgconfig(xi)
- +BuildRequires: pkgconfig(freetype2)
- +BuildRequires: pkgconfig(libpng)
- +BuildRequires: pkgconfig(openal)
- +BuildRequires: pkgconfig(samplerate)
- +BuildRequires: pkgconfig(sndfile)
- +BuildRequires: pkgconfig(fftw3)
- +BuildRequires: pkgconfig(python3) >= 3.2
- # ovitters: pkgconfig(gobject-introspection-1.0) includes script to determine typelib() auto buildrequires
- BuildRequires: pkgconfig(gobject-introspection-1.0)
- -Requires: python(abi) >= 3.2
- -Recommends: %{_lib}jack0
- -Requires(post,preun): GConf2
- +Requires: python(abi) >= 3.2
- +Requires(post,preun): GConf2
- +
- %description
- Blender is the in-house software of a high quality animation studio.
- It has proven to be an extremely fast and versatile design instrument.
- @@ -59,32 +61,51 @@
- implemented.
- %prep
- -%setup -qn %{name}-v%{version}
- -#patch0 -p1 -b .localedir
- +%setup -qn %{name}-%{version}
- +
- +%patch0 -p1 -b .localedir
- %patch1 -p0 -b .sse
- %patch2 -p0 -b .static
- %patch3 -p1 -b .bool
- -%patch6 -p0
- -%patch7 -p0
- -%patch8 -p0
- -pushd extern/lzo/minilzo
- -%patch9 -p5 -b .lzo
- -popd
- -%patch10 -p1
- -%patch11 -p0 -b .sse2
- +%patch4 -p0 -b .uninit
- +%patch5 -p0 -b .jack
- +%patch6 -p0 -b .sse2
- +%patch7 -p1 -b .link
- +find -name '.svn' -print | xargs rm -rf
- +
- %build
- export LD=/usr/bin/ld.gold
- %ifarch %{ix86}
- # build non-sse flavour
- -%cmake -DWITH_INSTALL_PORTABLE=OFF -DWITH_PLAYER=ON \
- - -DWITH_PYTHON=ON -DWITH_PYTHON_INSTALL=OFF \
- - -DPYTHON_VERSION=%{py3ver} -DWITH_BUILTIN_GLEW=OFF \
- - -DWITH_CODEC_FFMPEG=ON -DWITH_CODEC_SNDFILE=ON \
- +%cmake \
- + -DCMAKE_SKIP_RPATH=ON \
- + -DBUILD_SHARED_LIBS=OFF \
- + -DWITH_INSTALL_PORTABLE=OFF \
- + -DWITH_GAMEENGINE:BOOL=ON \
- + -DWITH_PLAYER:BOOL=ON \
- + -DWITH_PYTHON:BOOL=ON \
- + -DPYTHON_VERSION:STRING=%{py3_ver} \
- + -DWITH_PYTHON_INSTALL:BOOL=OFF \
- + -DWITH_BUILTIN_GLEW:BOOL=OFF \
- + -DWITH_CODEC_FFMPEG:BOOL=ON \
- + -DWITH_CODEC_SNDFILE:BOOL=ON \
- + -DWITH_IMAGE_OPENJPEG:BOOL=ON \
- + -DWITH_OPENCOLLADA:BOOL=ON \
- + -DOPENCOLLADA=%{_includedir} \
- + -DWITH_FFTW3:BOOL=ON \
- + -DWITH_MOD_OCEANSIM:BOOL=ON \
- + -DWITH_CYCLES:BOOL=ON \
- + -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
- + -DWITH_MEM_JEMALLOC:BOOL=ON \
- + -DWITH_OPENCOLORIO:BOOL=ON \
- + -DWITH_DOC_MANPAGE:BOOL=ON \
- %ifarch %{ix86}
- - -DSUPPORT_SSE2_BUILD=OFF -DSUPPORT_SSE_BUILD=OFF \
- + -DSUPPORT_SSE2_BUILD=OFF \
- + -DSUPPORT_SSE_BUILD=OFF \
- %endif
- - -DWITH_RAYOPTIMIZATION=OFF -DWITH_JACK_DYNLOAD=ON
- + -DWITH_RAYOPTIMIZATION:BOOL=OFF \
- + -DWITH_JACK:BOOL=ON
- %make
- cd ..
- mv build non-sse
- @@ -91,14 +112,33 @@
- %endif
- #build sse flavour
- -%cmake -DWITH_INSTALL_PORTABLE=OFF -DWITH_PLAYER=ON \
- - -DWITH_PYTHON=ON -DWITH_PYTHON_INSTALL=OFF \
- - -DPYTHON_VERSION=%{py3ver} -DWITH_BUILTIN_GLEW=OFF \
- - -DWITH_CODEC_FFMPEG=ON -DWITH_CODEC_SNDFILE=ON \
- +%cmake \
- + -DCMAKE_SKIP_RPATH=ON \
- + -DBUILD_SHARED_LIBS=OFF \
- + -DWITH_INSTALL_PORTABLE=OFF \
- + -DWITH_GAMEENGINE:BOOL=ON \
- + -DWITH_PLAYER:BOOL=ON \
- + -DWITH_PYTHON:BOOL=ON \
- + -DPYTHON_VERSION:STRING=%{py3_ver} \
- + -DWITH_PYTHON_INSTALL:BOOL=OFF \
- + -DWITH_BUILTIN_GLEW:BOOL=OFF \
- + -DWITH_CODEC_FFMPEG:BOOL=ON \
- + -DWITH_CODEC_SNDFILE:BOOL=ON \
- + -DWITH_IMAGE_OPENJPEG:BOOL=ON \
- + -DWITH_OPENCOLLADA:BOOL=ON \
- + -DOPENCOLLADA=%{_includedir} \
- + -DWITH_FFTW3:BOOL=ON \
- + -DWITH_MOD_OCEANSIM:BOOL=ON \
- + -DWITH_CYCLES:BOOL=ON \
- + -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
- + -DWITH_MEM_JEMALLOC:BOOL=ON \
- + -DWITH_OPENCOLORIO:BOOL=ON \
- + -DWITH_DOC_MANPAGE:BOOL=ON \
- %ifarch %{ix86}
- -DSUPPORT_SSE2_BUILD=OFF \
- %endif
- - -DWITH_RAYOPTIMIZATION=ON -DWITH_JACK_DYNLOAD=ON
- + -DWITH_RAYOPTIMIZATION:BOOL=ON \
- + -DWITH_JACK:BOOL=ON
- %make
- %install
- @@ -117,13 +157,13 @@
- %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
- %ifarch %{ix86}
- -mv %buildroot%_bindir/%name %buildroot%_bindir/%name.sse
- +mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.sse
- #install non-sse flavour
- rm -fr build
- mv non-sse build
- %makeinstall_std -C build
- -mv %buildroot%_bindir/%name %buildroot%_bindir/%name.nonsse
- +mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.nonsse
- # install wrapper
- cat >> %{buildroot}%{_bindir}/blender <<EOF
- @@ -142,7 +182,7 @@
- sed -i -e 's,#!/usr/bin/python,#!/usr/bin/python3,' %{buildroot}%{_bindir}/blender-thumbnailer.py %{buildroot}%{_datadir}/%{name}/*/scripts/modules/blend_render_info.py
- -%find_lang %name
- +%find_lang %{name}
- %post
- if [ -x %{_gconftool_bin} ]; then
- @@ -156,10 +196,10 @@
- %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/command
- fi
- -%files -f %name.lang
- +%files -f %{name}.lang
- %doc release/text/*
- %{_bindir}/*
- %{_datadir}/applications/*.desktop
- -%{_datadir}/%{name}
- +%{_datadir}/%{name}/
- %{_mandir}/man1/%{name}.1.*
- %{_iconsdir}/hicolor/*/apps/%{name}.*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement