Name: assimp Version: 3.3.1 Release: 8%{?dist} Summary: Library to import various 3D model formats into applications Group: Development/Libraries # Assimp is BSD, the bundled openddlparser is MIT. License: BSD and MIT URL: http://assimp.sourceforge.net #Source0: https://github.com/assimp/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz # Github releases include nonfree models, source tarball must be re-generated # using assimp_generate_tarball.sh Source0: %{name}-%{version}-free.tar.xz Source1: assimp_generate_tarball.sh # Current 3.3.1 not compilable under s390x and ppc64le - BigEndian issues Patch0: %{name}-3.3.1-unbundle.patch # Add /usr/lib64 to library lookup paths for python modules Patch1: %{name}-3.2.0-pythonpath.patch # Fix library and include paths in assimp-config.cmake # Fixes rhbz#1263698, not submitted upstream # Rehashed to 3.3.1 Patch2: 0001-Assimp-cmake-provider-fix.patch # fix FTBFS on bigendian platform s390x/ppc64 Patch3: assimp-3.3.1-namespace-bigendian.patch Patch10: assimp-3.3.1-install-pkgconfig.patch #Upstream backports # Collada morph animation Patch100: 0001-Morph-animation-support-for-collada.patch # Generate doc from CMakeFiles. Backported from Upstream Patch101: 0001-Enable-doxygen-been-properly-used-from-cmake-build-a.patch # Strips bundled irrXML out of build files, and allows project to build # against system versions of the libraries (not yet submitted upstream) Patch102: 0001-Apply-mechanism-to-decide-use-for-IrrXML-external-or.patch BuildRequires: boost-devel BuildRequires: cmake BuildRequires: dos2unix BuildRequires: irrlicht-devel BuildRequires: irrXML-devel BuildRequires: doxygen BuildRequires: poly2tri-devel BuildRequires: gtest-devel BuildRequires: pkgconfig(zzip-zlib-config) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(minizip) # Incompatible - https://github.com/assimp/assimp/issues/788 #BuildRequires: pkgconfig(polyclipping) Provides: bundled(polyclipping) = 4.8.8 BuildRequires: pkgconfig(python2) %if 0%{?fedora} > 23 BuildRequires: pkgconfig(ILUT) BuildRequires: pkgconfig(python3) %endif Provides: bundled(openddl-parser) %description Assimp, the Open Asset Import Library, is a free library to import various well-known 3D model formats into applications. Assimp aims to provide a full asset conversion pipeline for use in game engines and real-time rendering systems, but is not limited to these applications. %package devel Summary: Header files and libraries for assimp Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the header files and libraries for assimp. If you would like to develop programs using assimp, you will need to install assimp-devel. %package -n python2-%{name} Summary: Python bindings for assimp Group: Development/Libraries BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: python2 Provides: %{name}-python = %{version}-%{release} Obsoletes: %{name}-python < 3.1.1 %description -n python2-%{name} This package contains the PyAssimp python bindings %if 0%{?fedora} > 23 %package -n python3-%{name} Summary: Python 3 bindings for assimp Group: Development/Libraries BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: python3 Provides: %{name}-python3 = %{version}-%{release} Obsoletes: %{name}-python3 < 3.1.1 %description -n python3-%{name} This package contains the PyAssimp3 python bindings %endif %package doc Summary: Assimp documentation BuildArch: noarch %description doc %{summary}. %prep %setup -q # Get rid of bundled libs so we can't accidently build against them #rm -r contrib/clipper rm -r contrib/irrXML rm -r contrib/zlib rm -r contrib/unzip rm -r contrib/poly2tri %patch0 -p1 -b .unbundle %patch1 -p1 -b .pythonpath %patch2 -p1 -b .cmakefix %patch3 -p1 -b .bigendian # Need to be upstreamed %patch10 -p1 -b .pkgconfig # Backported from upstream %patch100 -p1 -b .docfix %patch101 -p1 -b .qt3d %patch102 -p1 -b .systemirrxml %build mkdir build pushd build %cmake .. \ -DASSIMP_LIB_INSTALL_DIR=%{_libdir} \ -DASSIMP_BIN_INSTALL_DIR=%{_bindir} \ -DASSIMP_INCLUDE_INSTALL_DIR=%{_includedir} \ %ifarch s390x ppc64 -DAI_BUILD_BIG_ENDIAN=TRUE \ %endif -DBUILD_DOCS=ON \ -DHTML_OUTPUT=%{name}-%{version} \ -DCMAKE_INSTALL_DOCDIR=%{_docdir} \ -DPOLY2TRI_INCLUDE_PATH=%{_includedir}/poly2tri \ -DSYSTEM_IRRXML=ON popd # To use system polyclipping if assimp ever becomes compatible: # -DCLIPPER_INCLUDE_PATH=%{_includedir}/polyclipping make %{?_smp_mflags} -C build # Fix file encoding dos2unix README LICENSE CREDITS port/PyAssimp/README.md iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.conv && mv -f CREDITS.conv CREDITS %install rm -rf %{buildroot} make -C build install DESTDIR=%{buildroot} mkdir -p %{buildroot}%{python2_sitelib}/pyassimp/ install -m0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python2_sitelib}/pyassimp/ %if 0%{?fedora} > 23 mkdir -p %{buildroot}%{python3_sitelib}/pyassimp/ install -m0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python3_sitelib}/pyassimp/ %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc README CREDITS %{_bindir}/assimp %{_libdir}/*.so.* %files devel %{_includedir}/assimp %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/cmake/* %files doc %{_docdir}/* %files -n python2-%{name} %doc port/PyAssimp/README.md %{python_sitelib}/pyassimp %if 0%{?fedora} > 23 %files -n python3-%{name} %doc port/PyAssimp/README.md %{python3_sitelib}/pyassimp %endif %changelog * Thu May 18 2017 Helio Chissini de Castro - 3.3.1-8 - Fix invalid pkgconfig generation * Mon May 15 2017 Fedora Release Engineering - 3.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Sat May 13 2017 Orion Poplawski - 3.3.1-6 - Properly find poly2tri and note use of bundled polyclipping * Fri May 05 2017 Than Ngo - 3.3.1-5 - fixed build issue on bigendian platform s390x/ppc64 - dropped excludearch s390x ppc64 * Fri May 05 2017 Helio Chissini de Castro - 3.3.1-4 - Disable ppc64le and s390x arches due bigendian issue not yet solved * Sat Apr 29 2017 Helio Chissini de Castro - 3.3.1-3 - Compile assimp with current exterbal irrXML * Wed Apr 19 2017 Helio Chissini de Castro - 3.3.1-2 - Revamp assimp with new upstream release 3.3.1 plus new upstreamed doc patches * Fri Feb 10 2017 Fedora Release Engineering - 3.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 27 2017 Jonathan Wakely - 3.2.0-6 - Rebuilt for Boost 1.63 * Mon Dec 19 2016 Miro Hrončok - 3.2.0-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 3.2.0-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri Jul 01 2016 Dan Horák - 3.2.0-3 - Fix build on big endian platforms * Fri Jun 03 2016 Rich Mattes - 3.2.0-2 - Fix pkgconfig and cmake files (rhbz#1340656) * Mon May 09 2016 Rich Mattes - 3.2.0-1 - Update to release 3.2.0 (rhbz#1332434) * Wed Feb 03 2016 Fedora Release Engineering - 3.1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 14 2016 Jonathan Wakely - 3.1.1-8 - Rebuilt for Boost 1.60 * Wed Dec 09 2015 Rich Mattes - 3.1.1-7 - Add patch to fix build on big-endian architectures * Tue Nov 10 2015 Fedora Release Engineering - 3.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Sep 17 2015 Rich Mattes - 3.1.1-5 - Fix assimp-config paths (rhbz#1263698) - Build against system boost instead of using included workaround * Thu Aug 27 2015 Jonathan Wakely - 3.1.1-4 - Rebuilt for Boost 1.59 * Wed Jul 29 2015 Fedora Release Engineering - 3.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Wed Jul 22 2015 David Tardon - 3.1.1-2 - rebuild for Boost 1.58 * Fri Jul 03 2015 Rich Mattes - 3.1.1-1 - Update to release 3.1.1 (rhbz#1206371) - Remove upstreamed patches - Correct python package names - Use license macro * Wed Jun 17 2015 Fedora Release Engineering - 3.0.1270-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 3.0.1270-10 - Rebuilt for GCC 5 C++11 ABI change * Mon Jan 26 2015 Petr Machata - 3.0.1270-9 - Rebuild for boost 1.57.0 * Fri Aug 15 2014 Fedora Release Engineering - 3.0.1270-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 3.0.1270-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 3.0.1270-6 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Thu May 22 2014 Petr Machata - 3.0.1270-5 - Rebuild for boost 1.55.0 * Sun Mar 02 2014 Scott K Logan - 3.0.1270-4 - Changed upstream source to Github - Un-commented assimp-python, added python-devel to build deps - Added assimp-python3 subpackage * Sat Aug 03 2013 Fedora Release Engineering - 3.0.1270-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 30 2013 Petr Machata - 3.0.1270-2 - Rebuild for boost 1.54.0 * Wed May 01 2013 Rich Mattes 3.0.1270-1 - Update to release 3.0.1270 * Wed Feb 13 2013 Fedora Release Engineering - 2.0.863-9.20110824svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Oct 25 2012 Rich Mattes - 2.0.863-8.20110824svn - Install python bindings * Wed Jul 18 2012 Fedora Release Engineering - 2.0.863-7.20110824svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jul 3 2012 Tom Callaway - 2.0.863-6.20110824svn - rebuild against new irrlicht/irrxml * Wed Apr 11 2012 Rich Mattes - 2.0.863-5.20110824svn - Changed spec to use buildroot macro * Sat Dec 17 2011 Rich Mattes - 2.0.863-4.20110824svn - Fixed pkgconfig paths * Wed Aug 24 2011 Rich Mattes - 2.0.863-3.20110824svn - Upgrade to latest svn snapshot - Port changes to link against system irrXML - Removed upstreamed zlib/unzip unbundling patches * Thu Mar 24 2011 Rich Mattes - 2.0.863-2.20110324svn - Upgrade to latest svn snapshot - Port changes to link against libIrrXML * Sat Dec 18 2010 Rich Mattes - 2.0.863-1 - Upgrade to release 2.0 * Mon Sep 20 2010 Rich Mattes - 1.1.700-3 - Remove extra buildrequires - Generate doxygen docs manually * Mon Sep 20 2010 Rich Mattes - 1.1.700-2 - Included doxygen-generated docs - Using original .zip file from project download page * Sun Sep 19 2010 Rich Mattes - 1.1.700-1 - First build