Summary: COLOR - IRAF Tools for Color Image Display Name: iraf-color Version: 6 Release: 4.el5.uson License: Freely redistributable/modifiable if attributed, no warranty Group: Applications/Scientific Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON Source0: color.tar.Z Source1: color-bin.redhat.tar.gz Url: http://iraf.noao.edu/iraf/web/extern.html BuildRoot: %{_tmppath}/color-root Provides: iraf-color Requires: iraf >= 2.12 %description COLOR is an IRAF package providing tools for Color Image display and creation. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/color # unpack the main sources cd $RPM_BUILD_ROOT/iraf/color tar xvvzf $RPM_SOURCE_DIR/color.tar.Z # unpack the binaries mkdir -p $RPM_BUILD_ROOT/iraf/color/bin.redhat cd $RPM_BUILD_ROOT/iraf/color tar xvvzf $RPM_SOURCE_DIR/color-bin.redhat.tar.gz %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.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 color = /iraf/color/' > COLOR.extern.pkg echo 'task color.pkg = color$color.cl' >> COLOR.extern.pkg echo '' >> COLOR.extern.pkg echo ' ,color$lib/helpdb.mip\' > COLOR.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/color /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 * Fri Dec 06 2002 - update to 2.12.1 binaries * Tue Nov 07 2000 - first crack at making rpm