]> git.pld-linux.org Git - packages/blender.git/blobdiff - blender.spec
- release 2 (by relup.sh)
[packages/blender.git] / blender.spec
index e1d6b0a9459ccb5b5f6f9585ba9e2108647d85b0..04d5e9028cef250f38c60ff2d17acbab4caed706 100644 (file)
-
-%include /usr/lib/rpm/macros.python
-
+# TODO:
+# - enable internalization support (BR libftgl)
+# - libsolid/libqhull/libode BR ?
 Summary:       3D modeling, rendering, animation and game creation package
-Summary(pl):   Pakiet do tworzenia animacji 3D oraz robienia gier
+Summary(pl.UTF-8):     Pakiet do tworzenia animacji 3D oraz gier
 Name:          blender
-Version:       2.25b.9
-Release:       0.1
+Version:       2.81a
+Release:       2
 License:       GPL
 Group:         X11/Applications/Graphics
-Vendor:                http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
-Source0:       http://www.linux.ucla.edu/~phaethon/blender/blender-creator-ph-%{version}.tar.gz
-URL:           http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
-#!#Vendor:             Blender Foundation
-#!#Source0:    ftp://dl.xs4all.nl/pub/mirror/blender/%{name}-source-%{version}.tar.gz
-#!#http://www.linux.ucla.edu/~phaethon/blender/blender-autoconf.html
-Patch0:                %{name}-python.patch
-Requires:      OpenGL
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+Source0:       http://download.blender.org/source/%{name}-%{version}.tar.xz
+# Source0-md5: fd106a2c3debfd215617d31197883173
+Patch0:                %{name}-2.76-droid.patch
+Patch1:                format-security.patch
+Patch2:                python-3.8.patch
+Patch3:                struct-alignment.patch
+URL:           http://www.blender.org/
+BuildRequires: OpenAL-devel
+BuildRequires: OpenColorIO-devel
+BuildRequires: OpenEXR-devel
 BuildRequires: OpenGL-devel
-BuildRequires: SDL-devel
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: OpenImageIO-devel
+BuildRequires: SDL2-devel
+BuildRequires: boost-devel
+BuildRequires: cmake
+BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1
+BuildRequires: fftw3-devel
+BuildRequires: freealut-devel
+BuildRequires: freetype-devel
+BuildRequires: ftgl-devel
+BuildRequires: gcc >= 5:3.4.0
+BuildRequires: gettext-tools
+BuildRequires: glew-devel
+BuildRequires: jack-audio-connection-kit-devel
+BuildRequires: jemalloc-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
-BuildRequires: openssl-devel
-BuildRequires: python-devel
-BuildRequires: smpeg-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libspnav-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtiff-devel
+BuildRequires: libtool
+BuildRequires: libvorbis-devel
+BuildRequires: openjpeg2-devel
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: pugixml-devel
+BuildRequires: python3
+BuildRequires: python3-devel
+BuildRequires: python3-numpy-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.385
+BuildRequires: sed >= 4.0
+BuildRequires: xorg-lib-libXi-devel
 BuildRequires: zlib-devel
+Requires(post,postun): desktop-file-utils
+Requires:      OpenGL
+Requires:      freetype
+Requires:      python-modules
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        _noautoreqdep   libGL.so.1 libGLU.so.1
-%define                _prefix         /usr/X11R6
+%define                _noautoreqdep   libGL.so.1 libGLU.so.1
 
 %description
 Blender is a free and fully functional 3D modeling, rendering,
 animation and game creation package for Unix, Windows and BeOS
 systems.
 
-%description -l pl
-Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
-3D oraz robienia gier, dostêpny dla systemów Unix, Windows i BeOS.
+%description -l pl.UTF-8
+Blender to darmowy i w pełni funkcjonalny pakiet do tworzenia animacji
+3D oraz gier, dostępny dla systemów Unix, Windows i BeOS.
 
 %prep
-%setup -q -n %{name}-creator-ph-%{version}
+%setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%ifarch x32
+%patch3 -p1
+%endif
 
 %build
-CPPFLAGS="-I/usr/X11R6/include"
-LDFLAGS="-L/usr/X11R6/lib"
-export CPPFLAGS LDFLAGS
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-%configure
-%{__make}
+install -d build
+cd build
+%cmake \
+       -DCMAKE_SKIP_RPATH:BOOL=ON \
+       -DBUILD_SHARED_LIBS:BOOL=OFF \
+       -DWITH_FFTW3:BOOL=ON \
+       -DWITH_JACK:BOOL=ON \
+       -DWITH_JACK_DYNLOAD:BOOL=ON \
+       -DWITH_CODEC_SNDFILE:BOOL=ON \
+       -DWITH_IMAGE_OPENJPEG:BOOL=ON \
+       -DWITH_OPENCOLLADA:BOOL=ON \
+       -DWITH_OPENCOLORIO:BOOL=ON \
+       -DWITH_CYCLES:BOOL=ON \
+       -DWITH_FFTW3:BOOL=ON \
+       -DWITH_MOD_OCEANSIM:BOOL=ON \
+       -DOPENCOLLADA=%{_includedir} \
+       -DWITH_PYTHON:BOOL=ON \
+       -DPYTHON_VERSION:STRING=%{py3_ver} \
+       -DWITH_PYTHON_INSTALL:BOOL=OFF \
+       -DWITH_CODEC_FFMPEG:BOOL=ON \
+       -DWITH_GAMEENGINE:BOOL=ON \
+       -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \
+       -DWITH_INSTALL_PORTABLE:BOOL=OFF \
+       -DWITH_PYTHON_SAFETY:BOOL=ON \
+       -DWITH_PLAYER:BOOL=ON \
+       -DWITH_MEM_JEMALLOC:BOOL=ON \
+       -DWITH_SYSTEM_GLEW:BOOL=ON \
+       -DBOOST_ROOT=%{_prefix} \
+       -DWITH_INPUT_NDOF:BOOL=ON \
+       -DWITH_SDL:BOOL=ON \
+       -DWITH_SDL_DYNLOAD:BOOL=ON \
+       ..
+
+%{__make} V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-echo blender-creator-ph > $RPM_BUILD_ROOT%{py_sitedir}/blender.pth
+
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man1}
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+./doc/manpage/blender.1.py $RPM_BUILD_ROOT%{_bindir}/blender $RPM_BUILD_ROOT%{_mandir}/man1/blender.1
+
+#%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_desktop_database_post
+
+%postun
+%update_desktop_database_postun
+
 %files
 %defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) %{_bindir}/*
-%dir %{py_sitedir}/blender-creator-ph
-%attr(755,root,root) %{py_sitedir}/blender-creator-ph/*.so
-%{py_sitedir}/blender.pth
+# -f %{name}.lang
+%doc doc/license/bf-members.txt doc/guides/*.txt
+%attr(755,root,root) %{_bindir}/blender
+%attr(755,root,root) %{_bindir}/blender-thumbnailer.py
+%attr(755,root,root) %{_datadir}/%{name}
+%{_desktopdir}/*.desktop
+%{_iconsdir}/hicolor/scalable/apps/blender.svg
+%{_iconsdir}/hicolor/symbolic/apps/blender-symbolic.svg
+%{_mandir}/man1/*
This page took 0.055999 seconds and 4 git commands to generate.