Summary: MSCRED - IRAF CCD Mosaic Reduction Package Name: iraf-mscred Version: 4.8 Release: 7.el5.uson License: Freely redistributable/modifiable if attributed, no warranty Group: Applications/Scientific Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON Source0: mscred.tar.Z Source1: mscred-bin.redhat.tgz Source2: mscdb.tar.Z Url: http://iraf.noao.edu/iraf/web/extern.html BuildRoot: %{_tmppath}/mscred-root Provides: iraf-mscred Requires: iraf >= 2.12 %description MSCRED is the IRAF CCD Mosaic Reduction package and can be used to reduce CCD mosaic data that is in the mosaic MEF data format. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/mscred mkdir -p $RPM_BUILD_ROOT/iraf/mscdb # unpack the main sources cd $RPM_BUILD_ROOT/iraf/mscred tar xvvzf $RPM_SOURCE_DIR/mscred.tar.Z # unpack the binaries cd $RPM_BUILD_ROOT/iraf/mscred tar xvvzf $RPM_SOURCE_DIR/mscred-bin.redhat.tgz # unpack the database files cd $RPM_BUILD_ROOT/iraf/mscdb tar xvvzf $RPM_SOURCE_DIR/mscdb.tar.Z %build # nuke unnecessary files and strip static libs cd $RPM_BUILD_ROOT/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.macosx/*" -exec rm -rf {} \; find . -path "*bin.linux/*" -exec rm -rf {} \; find . -name "*OBJS.arc*" -exec rm {} \; %install # 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 mscred = /iraf/mscred/' > MSCRED.extern.pkg echo 'reset mscdb = /iraf/mscdb/' >> MSCRED.extern.pkg echo 'task mscred.pkg = mscred$mscred.cl' >> MSCRED.extern.pkg echo '' >> MSCRED.extern.pkg echo ' ,mscred$lib/helpdb.mip\' > MSCRED.helpdb.mip %clean rm -rf $RPM_BUILD_ROOT %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/mscred /iraf/mscdb /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Sun Aug 15 2004 - update mscdb; build for FC 2 * Fri Jan 16 2004 - pull in latest bugfixes; build for FC 1 * Tue Aug 19 2003 - updated to july 30, 2003 bugfix release and built under RH 9 * Fri Dec 06 2002 - version 4.8; updates for iraf 2.12.1 * Mon Feb 04 2002 - upgrade to version 4.6 * Tue Jul 10 2001 - upgrade to version 4.5 * Tue Nov 07 2000 - first crack at making rpm