Summary: STSDAS - Space Telescope Science Data Analysis System Name: iraf-stsdas 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: stsdas36.tar.gz Source1: stsdas36.bin.rh.tar.gz Url: http://ra.stsci.edu/STSDAS.html BuildRoot: %{_tmppath}/stsdas-root Provides: iraf-stsdas Requires: iraf >= 2.12, iraf-tables >= 3.4 %description STSDAS is software for the reduction and analysis of data obtained with the Hubble Space Telescope. It runs within the IRAF environment and requires the STSDAS Tables external package to be installed as well. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/stsdas # unpack the main sources cd $RPM_BUILD_ROOT/iraf/stsdas tar xvvzf $RPM_SOURCE_DIR/stsdas36.tar.gz # unpack the binaries cd $RPM_BUILD_ROOT/iraf/stsdas/bin.redhat tar xvvzf $RPM_SOURCE_DIR/stsdas36.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 stsdas = /iraf/stsdas/' > STSDAS.extern.pkg echo 'task stsdas.pkg = stsdas$stsdas.cl' >> STSDAS.extern.pkg echo 'task apropos = stsdas$apropos.cl' >> STSDAS.extern.pkg echo '' >> STSDAS.extern.pkg echo ' ,stsdas$lib/helpdb.mip\' > STSDAS.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/stsdas /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Wed Nov 16 2005 - update to 3.4 under FC 4 * Thu Apr 28 2005 - update to 3.3.1 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 and iraf 2.12.x * Tue Jul 10 2001 - upgrade to version 2.3 * Mon Nov 06 2000 - first crack at packaging