f1e5805
f1e5805
Name:           k3d
2f11992
Version:        0.6.7.0
2b77660
Release:        6%{?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/
f1e5805
Source0:        http://dl.sourceforge.net/k3d/k3d-%{version}-src.tar.bz2
f1e5805
Patch0:         k3d-0.5.15.0-gl64.patch
2f11992
Patch1:         k3d-0.6.6.0-vfs.patch
5d64840
Patch2:         k3d-0.6.7.0-desktop.patch
9ef6a17
Patch3:         k3d-0.6.7.0-gcc43.patch
1bedbbe
Patch4:         k3d-0.6.7.0-sigc2.patch
f1e5805
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f1e5805
2f11992
Requires:       aqsis
2f11992
f1e5805
BuildRequires:  desktop-file-utils
f1e5805
BuildRequires:  mesa-libGL-devel
f1e5805
BuildRequires:  expat-devel
f1e5805
BuildRequires:  libsigc++20-devel
f1e5805
BuildRequires:  gtkmm24-devel
f1e5805
BuildRequires:  gtkglext-devel
f1e5805
BuildRequires:  plib-devel
f1e5805
BuildRequires:  freetype-devel
f1e5805
BuildRequires:  python-devel
f1e5805
BuildRequires:  libgnome-devel
2f11992
BuildRequires:  gnome-vfs2-devel
f1e5805
BuildRequires:  OpenEXR-devel
f1e5805
BuildRequires:  libtiff-devel
f1e5805
BuildRequires:  ImageMagick-c++-devel
f1e5805
BuildRequires:  graphviz-devel
f1e5805
BuildRequires:  boost-devel
f1e5805
BuildRequires:  gts-devel
f1e5805
BuildRequires:  librsvg2
f1e5805
BuildRequires:  bzip2-devel
2f11992
BuildRequires:  libtool
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
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
b32f0f2
%package examples
b32f0f2
Summary:    Examples for K-3D
b32f0f2
Group:      Development/Demos
b32f0f2
b32f0f2
b32f0f2
%description examples
b32f0f2
This package contains examples of K-3D documents.
b32f0f2
b32f0f2
f1e5805
%prep
f1e5805
%setup -q
2f11992
%patch0 -p1 -b .gl64
2f11992
%patch1 -p1 -b .vfs
5d64840
%patch2 -p1 -b .desktop
9ef6a17
%patch3 -p1 -b .gcc43
1bedbbe
%patch4 -p1 -b .sigc2
f1e5805
f1e5805
f1e5805
%build
f1e5805
%configure --disable-static --with-external-boost
f1e5805
make %{?_smp_mflags}
f1e5805
f1e5805
f1e5805
%install
f1e5805
f1e5805
find -type f -regex '.*\.\(cpp\|h\|svg\)' -perm +111 -exec chmod -x {} ';'
f1e5805
f1e5805
make install DESTDIR=$RPM_BUILD_ROOT
f1e5805
f1e5805
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
f1e5805
f1e5805
desktop-file-install \
f1e5805
  --vendor fedora \
f1e5805
  --mode 644 \
f1e5805
  --delete-original \
f1e5805
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
f1e5805
  $RPM_BUILD_ROOT%{_datadir}/applications/k3d.desktop
f1e5805
f1e5805
f1e5805
%clean
f1e5805
rm -rf $RPM_BUILD_ROOT
f1e5805
f1e5805
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
f1e5805
%files
f1e5805
%defattr(-, root, root, -)
f1e5805
%doc AUTHORS COPYING NEWS README
f1e5805
%{_bindir}/k3d
f1e5805
%{_bindir}/k3d-[bd-z]*
f1e5805
%{_libdir}/libHapy.so.*
f1e5805
%{_libdir}/libk3dngui.so*
f1e5805
%{_libdir}/libk3dnui.so*
f1e5805
%{_libdir}/libk3dsdk.so.*
f1e5805
%{_libdir}/libsubdivision_surface.so.*
f1e5805
%{_libdir}/libsurface_polygonizer.so.*
f1e5805
%{_libdir}/k3d
f1e5805
%{_datadir}/applications/fedora-k3d.desktop
b32f0f2
%dir %{_datadir}/k3d
b32f0f2
%{_datadir}/k3d/*.k3d
b32f0f2
%{_datadir}/k3d/fonts
b32f0f2
%{_datadir}/k3d/icons
b32f0f2
%{_datadir}/k3d/logo
b32f0f2
%{_datadir}/k3d/lsystem
b32f0f2
%{_datadir}/k3d/ngui
b32f0f2
%{_datadir}/k3d/qtui
b32f0f2
%{_datadir}/k3d/scripts
b32f0f2
%{_datadir}/k3d/shaders
b32f0f2
%{_datadir}/k3d/textures
b32f0f2
%{_datadir}/k3d/tutorials
f1e5805
%{_mandir}/man1/k3d*
f1e5805
f1e5805
b32f0f2
%files examples
b32f0f2
%defattr(-, root, root, -)
b32f0f2
%{_datadir}/k3d/documents
b32f0f2
b32f0f2
f1e5805
%files devel
f1e5805
%defattr(-, root, root, -)
b32f0f2
%doc ChangeLog
f1e5805
%{_bindir}/k3d-config
f1e5805
%{_includedir}/k3d
f1e5805
%{_libdir}/libHapy.so
f1e5805
%{_libdir}/libk3dsdk.so
f1e5805
%{_libdir}/libsubdivision_surface.so
f1e5805
%{_libdir}/libsurface_polygonizer.so
f1e5805
f1e5805
f1e5805
%changelog
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