Summary: DIMSUM - IRAF DEEP INFRARED MOSAICING SOFTWARE Name: iraf-dimsum Version: 2.0 Release: 5.el5.uson License: Freely redistributable/modifiable if attributed, no warranty Group: Applications/Scientific Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON Source0: dimsum.tar.Z Source1: dimsum-bin.redhat.gz Url: http://iraf.noao.edu/iraf/web/extern.html BuildRoot: %{_tmppath}/dimsum-root Provides: iraf-dimsum Requires: iraf %description The DIMSUM external package is used to produce accurate sky subtracted images from dithered observations. The package was developed by P. Eisenhardt (prme@kromos.jpl.nasa.gov), M. Dickinson (med@stsci.edu), S. A. Standford, and J. Ward with assistance from F. Valdes (fvaldes@noao.edu). This user-contributed package is distributed with minimal documentation and support. Technical questions and suggestions may be sent to the above authors. %prep # set up dirs mkdir -p $RPM_BUILD_DIR/iraf/dimsum # unpack the main sources cd $RPM_BUILD_DIR/iraf/dimsum tar xvvzf $RPM_SOURCE_DIR/dimsum.tar.Z # unpack the binaries mkdir -p $RPM_BUILD_DIR/iraf/dimsum/bin.redhat cd $RPM_BUILD_DIR/iraf/dimsum/bin.redhat tar xvvzf $RPM_SOURCE_DIR/dimsum-bin.redhat.gz %build # nuke unnecessary files and strip static libs cd $RPM_BUILD_DIR/iraf find . -path "*bin.sunos/*" -exec rm -rf {} \; find . -path "*bin.freebsd/*" -exec rm -rf {} \; find . -path "*bin.suse/*" -exec rm -rf {} \; find . -path "*bin.linux/*" -exec rm -rf {} \; find . -name "*OBJS.arc*" -exec rm {} \; find . -name ".nfs*" -exec rm {} \; %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/iraf cd $RPM_BUILD_DIR/iraf mv * $RPM_BUILD_ROOT/iraf/. # diddle with extern.pkg mkdir -p $RPM_BUILD_ROOT/iraf/iraf/unix/hlib cd $RPM_BUILD_ROOT/iraf/iraf/unix/hlib # make specific entries for each external package and then slap them # all together with the post(un)install scripts. echo 'reset dimsum = /iraf/dimsum/' > DIMSUM.extern.pkg echo 'task dimsum.pkg = dimsum$dimsum.cl' >> DIMSUM.extern.pkg echo '' >> DIMSUM.extern.pkg echo ' ,dimsum$lib/helpdb.mip\' > DIMSUM.helpdb.mip %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/iraf %post cp /iraf/iraf/unix/hlib/extern.pkg /iraf/iraf/unix/hlib/extern.pkg.irafsave cat /iraf/iraf/unix/hlib/*.extern.pkg > /iraf/iraf/unix/hlib/extern.pkg echo 'reset helpdb = "lib$helpdb.mip\' >> /iraf/iraf/unix/hlib/extern.pkg cat /iraf/iraf/unix/hlib/*.helpdb.mip >> /iraf/iraf/unix/hlib/extern.pkg echo ' "' >> /iraf/iraf/unix/hlib/extern.pkg echo 'keep' >> /iraf/iraf/unix/hlib/extern.pkg %postun cp /iraf/iraf/unix/hlib/extern.pkg /iraf/iraf/unix/hlib/extern.pkg.irafsave cat /iraf/iraf/unix/hlib/*.extern.pkg > /iraf/iraf/unix/hlib/extern.pkg echo 'reset helpdb = "lib$helpdb.mip\' >> /iraf/iraf/unix/hlib/extern.pkg cat /iraf/iraf/unix/hlib/*.helpdb.mip >> /iraf/iraf/unix/hlib/extern.pkg echo ' "' >> /iraf/iraf/unix/hlib/extern.pkg echo 'keep' >> /iraf/iraf/unix/hlib/extern.pkg %files %defattr(-,root,root) /iraf/dimsum /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Sun Aug 15 2004 - build for FC 2 * Fri Jan 16 2004 - build for FC 1 * Tue Jul 10 2001 - first crack at making rpm