Summary: VOL - IRAF VOL external package Name: iraf-vol Version: 1.0 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: vol.tar.Z Source1: vol-bin.redhat.tar.gz Url: http://iraf.noao.edu/iraf/web/extern.html BuildRoot: %{_tmppath}/ctio-root Provides: iraf-vol Requires: iraf >= 2.12 %description The VOLumes package is a possibly temporary collection of tasks related to manipulating and viewing 3d or in some cases 4d "volume" images, and a few other things. IMJOIN joins sets of N-dimensional images together along a specified axis. IM3DTRAN performs 3d image transposes; if appropriate [*,-*,*] type image sections are given as input, it also accomplishes rotates. Tasks such as these may later be integrated into a standard IRAF package. PVOL projects through volume images, casting rays onto a set of output 2d images distributed along a great circle around the volume image. When the output images are displayed or recorded onto video and played back, the volume image appears to rotate. Various translucency and opacity algorithms are employed. I2SUN is a temporary task for converting IRAF images into Sun rasterfiles, primarily to take advantage of a Sun-specific MOVIE utility for viewing digital movies on a workstation screen; it will no longer be necessary when the IRAF image display servers can display movies. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/vol # unpack the main sources cd $RPM_BUILD_ROOT/iraf/vol tar xvvzf $RPM_SOURCE_DIR/vol.tar.Z # unpack the binaries mkdir -p $RPM_BUILD_ROOT/iraf/vol/bin.redhat cd $RPM_BUILD_ROOT/iraf/vol/bin.redhat tar xvvzf $RPM_SOURCE_DIR/vol-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 vol = /iraf/vol/' > VOL.extern.pkg echo 'task vol.pkg = vol$vol.cl' >> VOL.extern.pkg echo '' >> VOL.extern.pkg echo ' ,vol$lib/helpdb.mip\' > VOL.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/vol /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Sun Aug 15 2004 - build under FC 2 * Tue Jan 20 2004 - build under FC 1 * Mon Dec 09 2002 - first crack at making rpm