Summary: STSDAS Tables package for IRAF Name: iraf-tables Version: 3.6 Release: 1.el5.uson License: Freely redistributable/modifiable if attributed, no warranty Group: Applications/Scientific Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON Source0: tables36.tar.gz Source1: tables36.bin.rh.tar.gz Url: http://ra.stsci.edu/STSDAS.html BuildRoot: %{_tmppath}/tables-root Provides: iraf-tables Requires: iraf >= 2.12 %description STSDAS Tables adds tabular data handling capabilities to the IRAF analysis environment and is required by the main STSDAS software package. Tables also includes IGI which provides (near) publication quality graphics capabilities. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/tables # unpack the main sources cd $RPM_BUILD_ROOT/iraf/tables tar xvvzf $RPM_SOURCE_DIR/tables36.tar.gz # unpack the binaries cd $RPM_BUILD_ROOT/iraf/tables/bin.redhat tar xvvzf $RPM_SOURCE_DIR/tables36.bin.rh.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 tables = /iraf/tables/' > TABLES.extern.pkg echo 'task tables.pkg = tables$tables.cl' >> TABLES.extern.pkg echo '' >> TABLES.extern.pkg echo ' ,tables$lib/helpdb.mip\' > TABLES.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/tables /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Thu Nov 16 2006 - update to 3.6 * Wed Nov 16 2005 - update to 3.4 * Sat Jun 25 2005 - build under FC 4 * Thu Apr 28 2005 - update to 3.3 for FC 3 * Sun Aug 15 2004 - build for FC 2 * Mon Mar 01 2004 - update to 3.2 * Tue Jan 20 2004 - update to 3.1; build under FC 1 * Mon Dec 09 2002 - upgrade to version 3.0 * Tue Jul 10 2001 - upgrade to version 2.3 * Mon Nov 06 2000 - first crack at making rpm