Summary: RVSAO -- An IRAF package to obtain radial velocities from spectra Name: iraf-rvsao Version: 2.4.8 Release: 3.el5.uson License: Freely redistributable/modifiable if attributed, no warranty Group: Applications/Scientific Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON Source0: rvsao-2.4.8.tar.gz Source1: rvsao-2.4.8-bin.redhat.tar.gz Patch: rvsao.patch Url: ftp://cfa-ftp.harvard.edu/pub/iraf/ BuildRoot: %{_tmppath}/rvsao-root Provides: iraf-rvsao Requires: iraf >= 2.12 AutoReqProv: no %description RVSAO -- An IRAF package to obtain radial velocities from spectra The package RVSAO defined in this directory was developed by Doug Mink at the Harvard-Smithsonian Center for Astrophysics from the redshift package originally written by Gerard Kriss at Johns Hopkins University and modified significantly by Steve Levine at the University of Wisconsin. It obtains radial velocities and velocity dispersions using cross-correlation methods or emission line fits. It consists of six tasks: XCSAO, EMSAO, BCVCORR, SUMSPEC, LINESPEC, and EQWIDTH. If you have any problems, please contact Doug Mink, mink@cfa.harvard.edu. A task, RELEARN, has been provided to aid in updating parameters. Run it instead of UNLEARN to keep your current parameters settings while adding new parameters. After the Revision Notes, you will find installation instructions. A fairly complete description of this package has been published in the August 1998 issue of the Publications of the Astronomical Society of the Pacific. For further updates, see http://tdc-www.harvard.edu/iraf/rvsao/ %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf # unpack the main sources cd $RPM_BUILD_ROOT/iraf tar xvvzf $RPM_SOURCE_DIR/rvsao-%{version}.tar.gz mv rvsao-%{version} rvsao cd rvsao # unpack the binaries tar xvvzf $RPM_SOURCE_DIR/rvsao-%{version}-bin.redhat.tar.gz %patch0 -p1 -b rvsao.patch %build # nuke unnecessary files and strip static libs cd $RPM_BUILD_ROOT/iraf find . -path "*bin.sunos/*" -exec rm -rf {} \; find . -path "*bin.ssun/*" -exec rm -rf {} \; find . -path "*bin.freebsd/*" -exec rm -rf {} \; find . -path "*bin.sparc/*" -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 rvsao = /iraf/rvsao/' > RVSAO.extern.pkg echo 'task rvsao.pkg = rvsao$rvsao.cl' >> RVSAO.extern.pkg echo '' >> RVSAO.extern.pkg echo ' ,rvsao$lib/helpdb.mip\' > RVSAO.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/rvsao /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Mon Mar 13 2006 tim pickering - first rpm build