Name: k3d Version: 0.8.0.2 Release: 5%{?dist} Summary: A 3D Modeling, Animation and Rendering System Group: Applications/Multimedia License: GPLv2+ URL: http://www.k-3d.org/ Source0: http://downloads.sourceforge.net/k3d/k3d-source-%{version}.tar.bz2 Source1: k3d.desktop Patch0: k3d-0.8.0.2-gcc-4.6.diff Patch1: k3d-0.8.0.2-cmake.diff # From http://slackbuilds.org/slackbuilds/13.37/graphics/k3d/k3d_gtkmm224.patch Patch2: k3d-0.8.0.2-gtkmm2.24.diff # This list is alpha sorted. BuildRequires: boost-devel BuildRequires: bzip2-devel BuildRequires: cairomm-devel BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: expat-devel BuildRequires: freetype-devel BuildRequires: gnome-vfs2-devel BuildRequires: gtkglext-devel BuildRequires: gtkmm24-devel BuildRequires: gts-devel BuildRequires: ImageMagick-c++-devel BuildRequires: libtiff-devel BuildRequires: libtool doxygen gettext BuildRequires: mesa-libGL-devel BuildRequires: OpenEXR-devel BuildRequires: pkgconfig(uuid) BuildRequires: plib-devel BuildRequires: python-devel # Text widget uses bitstream font by default BuildRequires: /usr/share/fonts/bitstream-vera/Vera.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraBI.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraBd.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraIt.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraMoBI.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraMoBd.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraMoIt.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraMono.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraSe.ttf BuildRequires: /usr/share/fonts/bitstream-vera/VeraSeBd.ttf Requires: aqsis # Text widget uses bitstream font by default Requires: /usr/share/fonts/bitstream-vera/Vera.ttf Requires: /usr/share/fonts/bitstream-vera/VeraBI.ttf Requires: /usr/share/fonts/bitstream-vera/VeraBd.ttf Requires: /usr/share/fonts/bitstream-vera/VeraIt.ttf Requires: /usr/share/fonts/bitstream-vera/VeraMoBI.ttf Requires: /usr/share/fonts/bitstream-vera/VeraMoBd.ttf Requires: /usr/share/fonts/bitstream-vera/VeraMoIt.ttf Requires: /usr/share/fonts/bitstream-vera/VeraMono.ttf Requires: /usr/share/fonts/bitstream-vera/VeraSe.ttf Requires: /usr/share/fonts/bitstream-vera/VeraSeBd.ttf Requires(post): /sbin/ldconfig Requires(post): desktop-file-utils Requires(postun): /sbin/ldconfig Requires(postun): desktop-file-utils %description K-3D is a complete 3D modeling, animation and rendering system. K-3D features a robust, object oriented plugin architecture, designed to scale to the needs of professional artists. It is designed from the ground up to generate motion picture quality animation using RenderMan compliant render engines. %package devel Summary: Headers for rendering models written by K-3D Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the libraries and header files needed for rendering a model written by K-3D. %prep %setup -q -n k3d-source-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 # binaries in source tarball rm tests/*.pyc find . \( -type f -a -executable \) -exec chmod -x "{}" \; sed -i -e "s,\${k3d_BINARY_DIR}/lib,\${k3d_BINARY_DIR}/%{_lib}," k3dsdk/ftgl/CMakeLists.txt %build mkdir BUILD cd BUILD %cmake .. # Since our cmake macro disables rpath, we need to set some temp # library paths as the build invokes some built binaries to generate # proxy files. export LD_LIBRARY_PATH=%{_builddir}/k3d-source-%{version}/BUILD/%{_lib} make VERBOSE=1 %{?_smp_mflags} cd .. %install cd BUILD make install DESTDIR=$RPM_BUILD_ROOT cd .. # FIXME: Use Fedora-shipped fonts for f in $RPM_BUILD_ROOT%{_datadir}/k3d/fonts/Vera*.ttf; do b=$(basename "$f"); rm -f "$f" ln -s /usr/share/fonts/bitstream-vera/$b "$f"; done find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} %check # FIXME: This doesn't work. ctest %post /sbin/ldconfig update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %postun /sbin/ldconfig update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %files %defattr(-, root, root, -) %doc AUTHORS COPYING README %{_bindir}/k3d* %dir %{_libdir}/k3d %{_libdir}/k3d/plugins %{_libdir}/*.so.* %dir %{_datadir}/k3d %{_datadir}/k3d/*.k3d %{_datadir}/k3d/documents %{_datadir}/k3d/geometry %{_datadir}/k3d/fonts %{_datadir}/k3d/icons %{_datadir}/k3d/locale %{_datadir}/k3d/logo %{_datadir}/k3d/lsystem %{_datadir}/k3d/ngui %{_datadir}/k3d/scripts %dir %{_datadir}/k3d/shaders %{_datadir}/k3d/shaders/displacement %{_datadir}/k3d/shaders/glsl %{_datadir}/k3d/shaders/imager %{_datadir}/k3d/shaders/light %{_datadir}/k3d/shaders/surface %{_datadir}/k3d/shaders/volume %{_datadir}/k3d/textures %{_mandir}/man1/k3d* %{_datadir}/applications/*.desktop %files devel %defattr(-, root, root, -) %{_includedir}/k3d %{_libdir}/k3d/include %{_libdir}/*.so %{_datadir}/k3d/shaders/*.h %changelog * Sun Jun 3 2012 Pavel Alexeev - 0.8.0.2-4 - Rebuild for ImageMagick update http://lists.fedoraproject.org/pipermail/devel/2012-May/167462.html * Thu Jul 21 2011 Ralf Corsépius - 0.8.0.2-4 - Rebuild for boost-1.47. * Tue May 10 2011 Ralf Corsépius - 0.8.0.2-3 - Add k3d-0.8.0.2-gtkmm2.24.diff (Address FTBS caused by gtkmm24 incompatiblity). - Modernize spec. * Thu Feb 10 2011 Ralf Corsépius - 0.8.0.2-2 - Remove obsolete Obsoletes: k3d-examples. * Thu Feb 10 2011 Ralf Corsépius - 0.8.0.2-1 - Upstream update (contains boost-compatibility fixes). - Add k3d-0.8.0.2-gcc-4.6.diff (Work around g++ mutable changes). - Add k3d-0.8.0.2-cmake.diff (Work around cmake not getting libdir right). - Reflect upstream having switched to using versoned libs. * Mon Feb 07 2011 Fedora Release Engineering - 0.8.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Sep 29 2010 jkeating - 0.8.0.1-4 - Rebuilt for gcc bug 634757 * Tue Sep 16 2010 Ralf Corsépius - 0.8.0.1-3 - Rebuilt for libImageMagick.so.4. * Tue Jul 27 2010 David Malcolm - 0.8.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri May 14 2010 Ralf Corsépius - 0.8.0.1-1 - Upstream update. * Mon Mar 08 2010 Ralf Corsépius - 0.7.11.0-7 - Rebuild for ImageMagick SONAME change. * Tue Feb 09 2010 Ralf Corsépius - 0.7.11.0-6 - Add BR: pkgconfig(uuid). - Remove BR: libuuid-devel, libgnome-devel, graphviz-devel. - Remove broken fontdir removal. * Tue Feb 09 2010 Ralf Corsépius - 0.7.11.0-5 - Switch back to using to using libuuid (Remove k3d-0.7.11.0-ossp-uuid.patch). - Remove BR: e2fsprogs-devel, librsvg2, libsigc++20-devel, libpng-devel. * Tue Feb 09 2010 Ralf Corsépius - 0.7.11.0-4 - Rebase uuid-generation against ossp-uuid (Address FTBS BZ #539048). - Misc. spec-file clean up. - Move %%{_libdir}/*.so into base-package (BZ #513773). - Move %%{_libdir}/k3d/include into devel-package. - Move %%{_datadir}/k3d/shaders/*.h into devel-package. * Fri Jan 22 2010 Rahul Sundaram - 0.7.11.0-3 - Rebuild for Boost soname bump * Fri Jul 24 2009 Fedora Release Engineering - 0.7.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Mar 22 2009 Denis Leroy - 0.7.11.0-1 - Update to upstream 0.7.11.0 * Wed Mar 4 2009 Denis Leroy - 0.7.10.0-1 - Update to upstream 0.7.10.0 - Build system now based on cmake - All patches upstreamed or obsoleted - Added potfiles file list patch fix - Removed example subpackage - Removed packaged bitstream fonts, use Fedora ones instead * Wed Feb 25 2009 Fedora Release Engineering - 0.6.7.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Dec 18 2008 Petr Machata - 0.6.7.0-9 - Rebuild for new boost * Sun Nov 30 2008 Ignacio Vazquez-Abrams - 0.6.7.0-8 - Rebuild for Python 2.6 * Fri May 16 2008 Denis Leroy - 0.6.7.0-7 - Rebuild for new ImageMagick * Tue Apr 1 2008 Denis Leroy - 0.6.7.0-6 - Added patch to fix sigc++ include headers * Sat Feb 16 2008 Denis Leroy - 0.6.7.0-5 - Added patch for gcc 4.3 rebuild * Mon Oct 15 2007 Denis Leroy - 0.6.7.0-4 - Rebuild for OpenEXR 1.6 * Tue Aug 28 2007 Denis Leroy - 0.6.7.0-3 - Rebuild for expat 2.0 * Sat Aug 4 2007 Denis Leroy - 0.6.7.0-2 - Rebuild for newer boost library * Mon Jul 9 2007 Denis Leroy - 0.6.7.0-1 - Update to 0.6.7.0 - Removed patches that moved upstream - Added gnome-vfs2-devel, fixed gnome-vfs2 missing config - Fixed lib64 script to avoid autoreconf - Added aqsis dependency - Removed MultipleArgs from desktop file * Fri Dec 29 2006 Denis Leroy - 0.6.5.0-1 - Update to 0.6.5.0 - Added patch to fix x86_64 startup crash in viewport widget - Added patch to fix python 2.5 API changes * Mon Dec 11 2006 Denis Leroy - 0.6.4.0-2 - Rebuild with python 2.5 * Thu Nov 23 2006 Denis Leroy - 0.6.4.0-1 - Update to 0.6.4.0 * Tue Oct 10 2006 Denis Leroy - 0.6.3.1-1 - Update to 0.6.3.1 * Mon Oct 9 2006 Denis Leroy - 0.6.3.0-1 - Update to 0.6.3.0 * Thu Oct 05 2006 Christian Iseli 0.6.2.0-2 - rebuilt for unwind info generation, broken in gcc-4.1.1-21 * Sun Sep 24 2006 Denis Leroy - 0.6.2.0-1 - Update to 0.6.2.0 * Mon Sep 11 2006 Denis Leroy - 0.6.1.0-2 - Rebuild against new OpenEXR version * Wed Sep 6 2006 Denis Leroy - 0.6.1.0-1 - Update to 0.6.1.0 * Mon Aug 28 2006 Denis Leroy - 0.6.0.0-2 - FE6 Rebuild * Wed Aug 23 2006 Denis Leroy - 0.6.0.0-1 - Update to 0.6.0.0 - Split example documents into separate package * Fri Aug 11 2006 Denis Leroy - 0.5.16.0-3 - Added sample_document to devel pkg * Thu Aug 10 2006 Denis Leroy - 0.5.16.0-2 - Added ChangeLog to devel doc * Sat Aug 5 2006 Denis Leroy - 0.5.16.0-1 - Update to version 0.5.16.0 * Tue Aug 1 2006 Denis Leroy - 0.5.15.0-3 - Recreated devel package * Tue Aug 1 2006 Denis Leroy - 0.5.15.0-2 - Cleaned up files sections * Tue Jul 25 2006 root - 0.5.15.0-1 - Update to 0.5.15.0 - Added patch to detect opengl correctly on x86_64 * Tue Mar 7 2006 Denis Leroy - 0.5.0.39-1 - First version