01fbb64
%global svnrev 1071
01fbb64
01fbb64
Name:           assimp
01fbb64
Version:        2.0.863
d284d8d
Release:        9.20110824svn%{?dist}
01fbb64
Summary:        Library to import various 3D model formats into applications
01fbb64
01fbb64
Group:          Development/Libraries
01fbb64
License:        BSD
01fbb64
URL:            http://assimp.sourceforge.net
01fbb64
# Used 'assimp_generate_tarball svnrev' to generate source
01fbb64
Source0:        %{name}-%{svnrev}.tar.bz2
01fbb64
Source1:        assimp_generate_tarball.sh
01fbb64
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
01fbb64
01fbb64
# Strips bundled irrXML out of build files, and allows project to build
01fbb64
# against system versions of the libraries (not yet submitted upstream) 
01fbb64
Patch0:         %{name}-2.0.863.unbundleirrxml.patch
01fbb64
# Change a doxygen setting so CHM help isn't generated
01fbb64
Patch1:         %{name}-1.1.700.docfix.patch
01fbb64
Patch2:         %{name}-2.0.863.pkgconfig.patch
01fbb64
Patch3:         %{name}-1071-gcc47.patch
e9e575f
Patch4:         %{name}-pythonpath.patch
d284d8d
Patch5:         %{name}-2.0.1071-version.patch
01fbb64
BuildRequires:  boost-devel
01fbb64
BuildRequires:  cmake
01fbb64
BuildRequires:  dos2unix
01fbb64
BuildRequires:  irrlicht-devel
01fbb64
BuildRequires:  irrXML-devel
01fbb64
BuildRequires:  zlib-devel
01fbb64
BuildRequires:  doxygen
01fbb64
BuildRequires:  minizip-devel
01fbb64
01fbb64
%description
01fbb64
Assimp, the Open Asset Import Library, is a free library to import 
01fbb64
various well-known 3D model formats into applications.  Assimp aims 
01fbb64
to provide a full asset conversion pipeline for use in game 
01fbb64
engines and real-time rendering systems, but is not limited 
01fbb64
to these applications.
01fbb64
01fbb64
%package devel
01fbb64
Summary: Header files and libraries for assimp
01fbb64
Group: Development/Libraries
01fbb64
Requires: %{name} = %{version}-%{release}
01fbb64
01fbb64
%description devel
01fbb64
This package contains the header files and libraries
01fbb64
for assimp. If you would like to develop programs using assimp,
01fbb64
you will need to install assimp-devel.
01fbb64
e9e575f
%package python
e9e575f
Summary: Python bindings for assimp
e9e575f
Group: Development/Libraries
e9e575f
BuildArch: noarch
e9e575f
Requires: %{name} = %{version}-%{release}
e9e575f
Requires: python
e9e575f
e9e575f
%description python
e9e575f
This package contains the PyAssimp python bindings
e9e575f
01fbb64
%prep
01fbb64
%setup -q -n %{name}
01fbb64
# Get rid of bundled libs so we can't accidently build against them
01fbb64
rm -rf contrib/irrXML
01fbb64
rm -rf contrib/zlib
01fbb64
rm -rf contrib/unzip
01fbb64
rm -rf code/fast_atof.h
01fbb64
%patch0 -p0
01fbb64
%patch1 -p1
01fbb64
%patch2 -p1
01fbb64
%patch3 -p0
e9e575f
%patch4 -p0
d284d8d
%patch5 -p0
01fbb64
%build
01fbb64
mkdir build
01fbb64
pushd build
01fbb64
%cmake  -DLIB_INSTALL_DIR=%{_libdir} -DINCLUDE_INSTALL_DIR=%{_includedir} -DBIN_INSTALL_DIR=%{_bindir} -DIRRXML_LIB_PATH=${_libdir} -DIRRXML_INCLUDE_PATH=%{_includedir}/irrlicht/ -DUSE_EXTERNAL_LIBS=ON ..
01fbb64
popd
01fbb64
make %{?_smp_mflags} -C build
01fbb64
01fbb64
# Generate docs, copy assimp logo image and stylesheet into generated docs
01fbb64
pushd doc
01fbb64
doxygen Doxyfile
01fbb64
dos2unix style.css
01fbb64
cp style.css html/style.css
01fbb64
cp AssimpDoc_Html/dragonsplash.png html/dragonsplash.png
01fbb64
popd
01fbb64
01fbb64
# Fix file encoding
01fbb64
dos2unix README LICENSE CREDITS
01fbb64
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.conv && mv -f CREDITS.conv CREDITS
01fbb64
01fbb64
%install
01fbb64
rm -rf %{buildroot}
01fbb64
make -C build install DESTDIR=%{buildroot}
e9e575f
mkdir -p %{buildroot}%{python_sitelib}/pyassimp/
e9e575f
install -p  port/PyAssimp/pyassimp/*.py %{buildroot}%{python_sitelib}/pyassimp/
01fbb64
01fbb64
%clean
01fbb64
rm -rf %{buildroot}
01fbb64
01fbb64
%post -p /sbin/ldconfig
01fbb64
01fbb64
%postun -p /sbin/ldconfig
01fbb64
01fbb64
01fbb64
%files
01fbb64
%defattr(-,root,root,-)
01fbb64
%doc README LICENSE CREDITS
01fbb64
%{_bindir}/assimp
01fbb64
%{_libdir}/*.so.*
01fbb64
01fbb64
%files devel
01fbb64
%defattr(-,root,root,-)
01fbb64
%doc doc/html
01fbb64
%{_includedir}/assimp
01fbb64
%{_libdir}/*.so
01fbb64
%{_libdir}/pkgconfig/*.pc
01fbb64
e9e575f
%files python
e9e575f
%{python_sitelib}/pyassimp
01fbb64
01fbb64
%changelog
d284d8d
* Fri Jul 05 2013 Rich Mattes <richmattes@gmail.com> - 2.0.863-9.20110824svn
d284d8d
- Update project version in pkgconfig to reflect SVN snapshot version
d284d8d
  (rhbz#972536)
d284d8d
e9e575f
* Thu Oct 25 2012 Rich Mattes <richmattes@gmail.com> - 2.0.863-8.20110824svn
e9e575f
- Install python bindings
e9e575f
60a2fef
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.863-7.20110824svn
60a2fef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
60a2fef
20437ea
* Tue Jul  3 2012 Tom Callaway <spot@fedoraproject.org> - 2.0.863-6.20110824svn
20437ea
- rebuild against new irrlicht/irrxml
20437ea
01fbb64
* Wed Apr 11 2012 Rich Mattes <richmattes@gmail.com> - 2.0.863-5.20110824svn
01fbb64
- Changed spec to use buildroot macro
01fbb64
01fbb64
* Sat Dec 17 2011 Rich Mattes <richmattes@gmail.com> - 2.0.863-4.20110824svn
01fbb64
- Fixed pkgconfig paths
01fbb64
01fbb64
* Wed Aug 24 2011 Rich Mattes <richmattes@gmail.com> - 2.0.863-3.20110824svn
01fbb64
- Upgrade to latest svn snapshot
01fbb64
- Port changes to link against system irrXML
01fbb64
- Removed upstreamed zlib/unzip unbundling patches
01fbb64
01fbb64
* Thu Mar 24 2011 Rich Mattes <richmattes@gmail.com> - 2.0.863-2.20110324svn
01fbb64
- Upgrade to latest svn snapshot
01fbb64
- Port changes to link against libIrrXML
01fbb64
01fbb64
* Sat Dec 18 2010 Rich Mattes <richmattes@gmail.com> - 2.0.863-1
01fbb64
- Upgrade to release 2.0
01fbb64
01fbb64
* Mon Sep 20 2010 Rich Mattes <richmattes@gmail.com> - 1.1.700-3
01fbb64
- Remove extra buildrequires
01fbb64
- Generate doxygen docs manually
01fbb64
01fbb64
* Mon Sep 20 2010 Rich Mattes <richmattes@gmail.com> - 1.1.700-2
01fbb64
- Included doxygen-generated docs
01fbb64
- Using original .zip file from project download page
01fbb64
01fbb64
* Sun Sep 19 2010 Rich Mattes <richmattes@gmail.com> - 1.1.700-1
01fbb64
- First build