f1e5805
Name:           k3d
1c05b84
Version:        0.7.11.0
38a8859
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/
38a8859
Source0:        http://downloads.sourceforge.net/k3d/k3d-source-%{version}.tar.gz
b5f4f19
Source1:        k3d.desktop
1c05b84
Patch0:         k3d-0.7.11.0-potfiles.patch
b5f4f19
Patch1:         k3d-0.7.10.0-warn.patch
1c05b84
Patch2:         k3d-0.7.11.0-fontpath.patch
1c05b84
Patch3:         k3d-0.7.11.0-gcc44.patch
f1e5805
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f1e5805
38a8859
# This list is alpha sorted.
38a8859
BuildRequires:  boost-devel
38a8859
BuildRequires:  bzip2-devel
38a8859
BuildRequires:  cairomm-devel
b5f4f19
BuildRequires:  cmake
f1e5805
BuildRequires:  desktop-file-utils
f1e5805
BuildRequires:  expat-devel
f1e5805
BuildRequires:  freetype-devel
2f11992
BuildRequires:  gnome-vfs2-devel
38a8859
BuildRequires:  gtkglext-devel
38a8859
BuildRequires:  gtkmm24-devel
f1e5805
BuildRequires:  gts-devel
38a8859
BuildRequires:  ImageMagick-c++-devel
38a8859
BuildRequires:  libtiff-devel
9490656
BuildRequires:  libtool doxygen gettext
38a8859
BuildRequires:  mesa-libGL-devel
38a8859
BuildRequires:  OpenEXR-devel
38a8859
BuildRequires:  pkgconfig(uuid)
38a8859
BuildRequires:  plib-devel
38a8859
BuildRequires:  python-devel
38a8859
38a8859
Requires:       aqsis
b5f4f19
1c05b84
# Text widget uses bitstream font by default
dc2fc57
Requires:       bitstream-vera-sans-fonts
f1e5805
f1e5805
Requires(post):   /sbin/ldconfig
f1e5805
Requires(post):   desktop-file-utils
f1e5805
Requires(postun): /sbin/ldconfig
f1e5805
Requires(postun): desktop-file-utils
f1e5805
b5f4f19
Obsoletes: k3d-examples < 0.7.10.0
b5f4f19
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}
38a8859
%patch0 -p1
38a8859
%patch1 -p1
38a8859
%patch2 -p1
38a8859
%patch3 -p1
1c05b84
rm -f CMakeCache.txt
38a8859
find . \( -type f -a -executable \) -exec chmod -x "{}" \;
f1e5805
38a8859
sed -i -e "s,\${k3d_BINARY_DIR}/lib,\${k3d_BINARY_DIR}/%{_lib}," k3dsdk/ftgl/CMakeLists.txt
f1e5805
f1e5805
%build
38a8859
mkdir BUILD
38a8859
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.
38a8859
export LD_LIBRARY_PATH=%{_builddir}/k3d-source-%{version}/BUILD/%{_lib}
b5f4f19
make VERBOSE=1 %{?_smp_mflags}
38a8859
cd ..
f1e5805
f1e5805
%install
b5f4f19
rm -rf $RPM_BUILD_ROOT
38a8859
cd BUILD
f1e5805
make install DESTDIR=$RPM_BUILD_ROOT
38a8859
cd ..
b5f4f19
# Workaround for install bug
8a86e42
rm -f $RPM_BUILD_ROOT%{_datadir}/k3d/locale/chef/LC_MESSAGES/k3d.mo
b5f4f19
# Remove fonts, we use Fedora-shipped fonts instead
38a8859
rm -fr $RPM_BUILD_ROOT%{_datadir}/k3d/fonts
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
f1e5805
%clean
f1e5805
rm -rf $RPM_BUILD_ROOT
f1e5805
f1e5805
b5f4f19
%check
38a8859
# 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
f1e5805
%files
f1e5805
%defattr(-, root, root, -)
b5f4f19
%doc AUTHORS COPYING README
b5f4f19
%{_bindir}/k3d*
38a8859
%dir %{_libdir}/k3d
38a8859
%{_libdir}/k3d/plugins
38a8859
%{_libdir}/k3d/uiplugins
38a8859
%{_libdir}/*.so
38a8859
%dir %{_datadir}/k3d
38a8859
%{_datadir}/k3d/*.k3d
38a8859
%{_datadir}/k3d/documents
38a8859
%{_datadir}/k3d/icons
38a8859
%{_datadir}/k3d/locale
38a8859
%{_datadir}/k3d/logo
38a8859
%{_datadir}/k3d/lsystem
38a8859
%{_datadir}/k3d/ngui
38a8859
%{_datadir}/k3d/qtui
38a8859
%{_datadir}/k3d/scripts
38a8859
%dir %{_datadir}/k3d/shaders
38a8859
%{_datadir}/k3d/shaders/displacemnt
38a8859
%{_datadir}/k3d/shaders/glsl
38a8859
%{_datadir}/k3d/shaders/imager
38a8859
%{_datadir}/k3d/shaders/light
38a8859
%{_datadir}/k3d/shaders/surface
38a8859
%{_datadir}/k3d/shaders/volume
38a8859
%{_datadir}/k3d/textures
38a8859
%{_datadir}/k3d/tutorials
f1e5805
%{_mandir}/man1/k3d*
1ebe48d
%{_datadir}/applications/*.desktop
f1e5805
f1e5805
f1e5805
%files devel
f1e5805
%defattr(-, root, root, -)
f1e5805
%{_includedir}/k3d
38a8859
%{_libdir}/k3d/include
38a8859
%{_datadir}/k3d/shaders/*.h
f1e5805
f1e5805
f1e5805
%changelog
38a8859
* Tue Feb 09 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.7.11.0-6
38a8859
- Add BR: pkgconfig(uuid).
38a8859
- Remove BR: libuuid-devel, libgnome-devel, graphviz-devel.
38a8859
- Remove broken fontdir removal.
38a8859
38a8859
* Tue Feb 09 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.7.11.0-5
38a8859
- Switch back to using to using libuuid (Remove k3d-0.7.11.0-ossp-uuid.patch).
38a8859
- Remove BR: e2fsprogs-devel, librsvg2, libsigc++20-devel, libpng-devel.
38a8859
38a8859
* Tue Feb 09 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.7.11.0-4
38a8859
- Rebase uuid-generation against ossp-uuid (Address FTBS BZ #539048).
38a8859
- Misc. spec-file clean up.
38a8859
- Move %%{_libdir}/*.so into base-package (BZ #513773).
38a8859
- Move %%{_libdir}/k3d/include into devel-package.
38a8859
- Move %%{_datadir}/k3d/shaders/*.h into devel-package.
38a8859
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