Summary: XCCDRED - IRAF XCCDRED external package Name: iraf-xccdred 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: xccdred.tar.Z Source1: xccdred-bin.redhat.tar.gz Url: http://iraf.noao.edu/iraf/web/extern.html BuildRoot: %{_tmppath}/xccdred-root Provides: iraf-xccdred Requires: iraf >= 2.12 %description XCCDRED -- Experimental version of CCDRED Package This external package is an experimental version of the CCDRED package which supports the ARCON multiple readout image format. The only task which has been modified from the V2.10.3beta version is CCDPROC. Note that to make preparing and using this experimental version as easy as possible the task names are unchanged. Therefore, you should avoid loading both XCCDRED and CCDRED at the same time. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/xccdred # unpack the main sources cd $RPM_BUILD_ROOT/iraf/xccdred tar xvvzf $RPM_SOURCE_DIR/xccdred.tar.Z # unpack the binaries mkdir -p $RPM_BUILD_ROOT/iraf/xccdred/bin.redhat cd $RPM_BUILD_ROOT/iraf/xccdred/bin.redhat tar xvvzf $RPM_SOURCE_DIR/xccdred-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 xccdred = /iraf/xccdred/' > XCCDRED.extern.pkg echo 'task xccdred.pkg = xccdred$xccdred.cl' >> XCCDRED.extern.pkg echo '' >> XCCDRED.extern.pkg echo ' ,xccdred$lib/helpdb.mip\' > XCCDRED.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/xccdred /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Sun Aug 15 2004 - build for FC 2 * Tue Jan 20 2004 - build for FC 1 * Tue Aug 19 2003 - build for RH 9 * Mon Dec 09 2002 - first crack at making rpm