%define svndate 20080915 Summary: A high-performance terrain rendering library Name: mini Version: 8.8.6 Release: 1.%{svndate}svn%{?dist} License: LGPLv2 Group: System Environment/Libraries URL: http://www.stereofx.org/terrain.html # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # YEAR=`date "+%Y"` # MONTH=`date "+%m"` # DAY=`date "+%d"` # MINI="mini-${YEAR}${MONTH}${DAY}" # svn co http://libmini.googlecode.com/svn/libmini/mini mini # rm -rf mini/data mini/.svn mini/GL/.svn mini/tools/.svn # rm -f mini/*.vcproj mini/*.sln mini/freeglut_static.lib \ # mini/build.bat mini/build.sh mini/Makefile \ # mini/libMini.rc mini/tabify.sh # tar -cjf ${MINI}.tar.bz2 mini Source0: mini-%{svndate}.tar.bz2 Patch0: mini-squishbase.cpp.patch Patch1: mini-Makefile.am.patch Patch2: mini-tools-Makefile.am.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake autoconf libtool BuildRequires: mesa-libGL-devel mesa-libGLU-devel freeglut-devel curl-devel BuildRequires: libXmu-devel libjpeg-devel libpng-devel BuildRequires: ImageMagick %description The Mini library is the core of the high-performance terrain renderer which is described in the paper "Real-Time Generation of Continuous Levels of Detail for Height Fields". The Mini library applies a view-dependent mesh simplification scheme to render large-scale terrain data at real-time. For this purpose, a quadtree representation of a height field is built. This quadtree is also utilized for fast view frustum culling and geomorphing. %package devel Summary: Development files for the mini terrain rendering library Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig Requires: mesa-libGL-devel mesa-libGLU-devel freeglut-devel curl-devel Requires: libXmu-devel libjpeg-devel libpng-devel %description devel This package contains the libraries and header files needed for developing applications which use libMini. The Mini library is the core of the high-performance terrain renderer which is described in the paper "Real-Time Generation of Continuous Levels of Detail for Height Fields". The Mini library applies a view-dependent mesh simplification scheme to render large-scale terrain data at real-time. For this purpose, a quadtree representation of a height field is built. This quadtree is also utilized for fast view frustum culling and geomorphing. %prep %setup -q -n %{name} %patch0 %patch1 %patch2 %{__rm} -rf mini/GL %build sh autogen.sh %configure --disable-static --with-squish=no %{__make} %install %{__rm} -rf %{buildroot} %{__make} DESTDIR=%{buildroot} INSTALL="%{__install} -p" install find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc LICENSE.txt %{_libdir}/libMini.so.* %{_libdir}/libMiniSFX.so.* %files devel %defattr(-,root,root,-) %doc README.html libMini.css libMini.ico libMini.jpg libMini.ppm %{_includedir}/mini %{_libdir}/libMini.so %{_libdir}/libMiniSFX.so %{_libdir}/pkgconfig/Mini.pc %changelog * Mon Sep 15 2008 Rick L Vinyard Jr - 8.8.6-1.20080915svn - Removed Yukon and Stuttgart subpackages - Removed autotools files that are included upstream - Added build off of svn - Changed name to mini per Fedora naming guidelines to match tarball * Thu May 22 2008 Rick L Vinyard Jr - 8.7.5-1 - New upstream release - Added libpng-devel dependency - Added ImageMagick BR - Added desktop-file-utils BR * Mon Mar 24 2008 Rick L Vinyard Jr - 8.7-1 - New upstream release * Wed Dec 19 2007 Rick L Vinyard Jr - 8.6-1 - New upstream release - Removed squish dependency - Added yukon and stuttgart subpackages * Wed Nov 07 2007 Rick L Vinyard Jr - 8.5-1 - New upstream release fixes license issue - Moved autotools patch files into separate files - Added squish dependency * Tue Jul 03 2007 Rick L Vinyard Jr - 8.1-3 - Added a copy of the LGPL v2.1 to the patch - Revised the pkgconfig .pc file in the patch to add x11 dependencies - Renamed to autotools patch - Remove mini/GL prior to building * Mon Jul 02 2007 Rick L Vinyard Jr - 8.1-2 - Changed source and patch to use version tag - Changed package name to libMini - Added dist tag - Added pkgconfig requires devel - Fixed X11 include header in Mini.pc - Changed enable-static=no to disable-static in configure * Sat Jun 30 2007 Rick L Vinyard Jr - 8.1-1 - Initial version