Summary: GUIAPPS - IRAF GUIAPPS external package Name: iraf-guiapps Version: 2.12.1 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: guiapps.tar.gz Url: http://iraf.noao.edu/iraf/web/projects/guiapps/ BuildRoot: %{_tmppath}/guiapps-root Provides: iraf-guiapps Requires: iraf >= 2.12.1, x11iraf >= 1.3 %description GUIAPPS is an IRAF external package providing some prototype GUI applications for data reduction and analysis. This package requires IRAF >= 2.12 and xgterm from x11iraf >= 1.3. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/guiapps # unpack the sources and binaries cd $RPM_BUILD_ROOT/iraf/guiapps tar xvvzf $RPM_SOURCE_DIR/guiapps.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.ssun/*" -exec rm -rf {} \; find . -path "*bin.alpha/*" -exec rm -rf {} \; find . -path "*bin.rs6000/*" -exec rm -rf {} \; find . -path "*bin.hp700/*" -exec rm -rf {} \; find . -path "*bin.macosx/*" -exec rm -rf {} \; find . -path "*bin.sparc/*" -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 guiapps = /iraf/guiapps/' > GUIAPPS.extern.pkg echo 'reset demo = /iraf/guiapps/demo/' >> GUIAPPS.extern.pkg echo 'task guiapps.pkg = guiapps$guiapps.cl' >> GUIAPPS.extern.pkg echo '' >> GUIAPPS.extern.pkg echo ' ,guiapps$lib/helpdb.mip\' > GUIAPPS.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/guiapps /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Sun Aug 15 2004 - build for FC 2 * Fri Jan 16 2004 - build for FC 1 * Tue Aug 19 2003 - update for RH 9 * Fri Dec 06 2002 - update for iraf 2.12.1 * Thu Nov 09 2000 - first crack at making rpm