# Spec file for constructing installation package in RPM format. # # Quick instructions: # # * run configure with the "--prefix" option set to the final # installation directory (typically "/usr") # # * copy the top_builddir/build/simage.spec file to the # /usr/src/redhat/SPECS directory (on RedHat Linux, may differ # on other system (on Mandrake, for instance, you should swap # /usr/src/redhat/ with /usr/src/RPM)) # # * "cd /usr/src/redhat/SPECS", "rpm -bb simage.spec" # # There should now be a file simage-something.rpm below # /usr/src/redhat/RPMS. # # 20000705 mortene. Summary: Tiny library for loading texture bitmaps. Name: simage Version: @VERSION@ Release: @simage_configure_date@ Copyright: Public Domain Group: Development/Libraries URL: http://www.coin3d.org Vendor: Systems in Motion Packager: Morten Eriksen %description simage is a library for loading texture bitmaps for 3D applications. It contains "wrappers" for libjpeg, libpng, libtiff and libungif, as well as native code for parsing bitmap files in SGI RGB, PIC and TARGA. simage is used by the Coin 3D library. %prep cd $RPM_SOURCE_DIR export CVSROOT=:pserver:cvs@cvs.sim.no:/export/cvsroot if test ! -d simage; then cvs checkout -P simage else cvs update -dP simage fi %build cd $RPM_BUILD_DIR test -d simage || mkdir simage cd simage # Errors might go unnoticed if configuration info is taken from # an old cache. rm -f ./config.cache # The options must cover the set of install-directories in the %files section. $RPM_SOURCE_DIR/simage/configure \ --bindir=@bindir@ --includedir=@includedir@ \ --libdir=@libdir@ --datadir=@datadir@ make %install cd $RPM_BUILD_DIR/simage make install-strip %files @bindir@/simage-config @includedir@/simage.h @libdir@/libsimage.so.@LT_CURRENT@ @libdir@/libsimage.so.@LT_CURRENT@.@LT_AGE@.@LT_REVISION@ @libdir@/libsimage.la @libdir@/libsimage.so @datadir@/aclocal/simage.m4 %clean cd $RPM_BUILD_DIR/simage make uninstall