2011-05-06 23:59:15 +00:00
|
|
|
# -*- rpm-spec -*-
|
|
|
|
%global __python %{__python3}
|
2012-05-16 02:51:58 +00:00
|
|
|
%global blender_api @CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@
|
|
|
|
|
|
|
|
%define _rpmdir @CPACK_RPM_DIRECTORY@
|
|
|
|
%define _rpmfilename @CPACK_RPM_FILE_NAME@
|
|
|
|
%define _unpackaged_files_terminate_build 0
|
|
|
|
%define _topdir @CPACK_RPM_DIRECTORY@
|
2011-05-06 23:59:15 +00:00
|
|
|
|
|
|
|
BuildRoot: @CPACK_RPM_DIRECTORY@/@CPACK_PACKAGE_FILE_NAME@@CPACK_RPM_PACKAGE_COMPONENT_PART_PATH@
|
|
|
|
Summary: @CPACK_RPM_PACKAGE_SUMMARY@
|
|
|
|
Name: @CPACK_RPM_PACKAGE_NAME@
|
|
|
|
Version: @CPACK_RPM_PACKAGE_VERSION@
|
2011-05-10 21:59:11 +00:00
|
|
|
Release: @CPACK_RPM_PACKAGE_RELEASE@%{?dist}
|
2011-05-06 23:59:15 +00:00
|
|
|
License: @CPACK_RPM_PACKAGE_LICENSE@
|
|
|
|
Group: @CPACK_RPM_PACKAGE_GROUP@
|
|
|
|
Vendor: @CPACK_RPM_PACKAGE_VENDOR@
|
2012-05-16 02:51:58 +00:00
|
|
|
Epoch: 1
|
2011-05-06 23:59:15 +00:00
|
|
|
|
2012-05-16 02:51:58 +00:00
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): desktop-file-utils
|
|
|
|
Requires(postun): shared-mime-info
|
|
|
|
|
|
|
|
Provides: blender(ABI) = %{blender_api}
|
|
|
|
Provides: blender-fonts = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: blender-fonts <= 2.49a-9
|
2011-05-06 23:59:15 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Blender is an integrated 3d suite for modelling, animation, rendering,
|
|
|
|
post-production, interactive creation and playback (games). Blender has its
|
|
|
|
own particular user interface, which is implemented entirely in OpenGL and
|
|
|
|
designed with speed in mind. Python bindings are available for scripting;
|
|
|
|
import/export features for popular file formats like 3D Studio and Wavefront
|
|
|
|
Obj are implemented as scripts by the community. Stills, animations, models
|
|
|
|
for games or other third party engines and interactive content in the form of
|
|
|
|
a standalone binary and/or a web plug-in are common products of Blender use.
|
|
|
|
|
|
|
|
# This is a shortcutted spec file generated by CMake RPM generator
|
|
|
|
# we skip _install step because CPack does that for us.
|
|
|
|
# We do only save CPack installed tree in _prepr
|
|
|
|
# and then restore it in build.
|
|
|
|
%prep
|
|
|
|
mv ${RPM_BUILD_ROOT} "@CPACK_TOPLEVEL_DIRECTORY@/tmpBBroot"
|
|
|
|
|
|
|
|
%install
|
|
|
|
if [ -e ${RPM_BUILD_ROOT} ];
|
|
|
|
then
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
fi
|
|
|
|
mv "@CPACK_TOPLEVEL_DIRECTORY@/tmpBBroot" ${RPM_BUILD_ROOT}
|
|
|
|
|
2012-05-16 02:51:58 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}%{_bindir}/blender-thumbnailer.py
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
2011-05-06 23:59:15 +00:00
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%post
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
|
fi
|
|
|
|
%{_bindir}/update-desktop-database %{_datadir}/applications || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{_bindir}/update-desktop-database %{_datadir}/applications
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
|
fi || :
|
|
|
|
|
2012-05-16 02:51:58 +00:00
|
|
|
%files -f blender.lang
|
2011-05-06 23:59:15 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/%{name}
|
2012-05-16 02:51:58 +00:00
|
|
|
%{_datadir}/%{name}/%{blender_api}/datafiles/fonts
|
2012-10-04 15:14:15 +00:00
|
|
|
%{_datadir}/%{name}/%{blender_api}/datafiles/colormanagement
|
2012-12-28 23:30:34 +00:00
|
|
|
%{_datadir}/%{name}/%{blender_api}/datafiles/locale/languages
|
2012-05-16 02:51:58 +00:00
|
|
|
%{_datadir}/%{name}/%{blender_api}/scripts
|
2011-05-06 23:59:15 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2012-05-16 02:51:58 +00:00
|
|
|
%{_datadir}/doc/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.*
|
2011-05-06 23:59:15 +00:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
@CPACK_RPM_SPEC_CHANGELOG@
|