Name: collada-dom Version: 2.3 Release: 1%{?dist} Summary: COLLADA Document Object Model Library Group: System Environment/Libraries License: MIT URL: http://www.collada.org # Still no tar files from project, to reproduce: # svn co -r 847 https://collada-dom.svn.sourceforge.net/svnroot/collada-dom/trunk collada-dom # cd collada-dom # svn export . ../collada-dom-2.3 # cd .. # tar cvfj collada-dom-2.3.tar.bz2 collada-dom-2.3 Source0: collada-dom-2.3.tar.bz2 Patch0: collada-dom-2.3-fedora.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake, gcc-c++, dos2unix BuildRequires: minizip-devel, zlib-devel, boost-devel, libxml2-devel, pcre-devel %description COLLADA is a royalty-free XML schema that enables digital asset exchange within the interactive 3D industry. The COLLADA Document Object Model (COLLADA DOM) is an application programming interface (API) that provides a C++ object representation of a COLLADA XML instance document. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch0 -p1 -b .fedora rm -rf dom/external-libs dos2unix Readme.txt dos2unix dom/license.txt dos2unix License_Folder/license_e.txt dos2unix dom/readme.txt %build mkdir build cd build %cmake \ -DCMAKE_SKIP_RPATH:BOOL=ON \ .. make %install rm -rf $RPM_BUILD_ROOT cd build make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc Readme.txt dom/license.txt License_Folder/license_e.txt dom/readme.txt %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Mon Mar 21 2011 Tim Niemueller - 2.3-1 - Initial package