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