Summary: GEMINI - IRAF GEMINI external package Name: iraf-gemini Version: 1.9 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: gemini_v19.tar.gz Url: http://www.gemini.edu/sciops/data/dataSoftware.html BuildRoot: %{_tmppath}/gemini-root Provides: iraf-gemini Requires: iraf, iraf-stsdas, iraf-tables, iraf-gmisc %description GEMINI is an IRAF external package providing some miscellaneous Gemini related tasks and scripts. %prep # set up dirs mkdir -p $RPM_BUILD_DIR/iraf/gemini # unpack the main sources cd $RPM_BUILD_DIR/iraf/gemini tar xvvzf $RPM_SOURCE_DIR/gemini_v19.tar.gz %build # nuke unnecessary files and strip static libs cd $RPM_BUILD_DIR/iraf find . -path "*bin.macosx/*" -exec rm -rf {} \; 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.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 rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/iraf cd $RPM_BUILD_DIR/iraf mv * $RPM_BUILD_ROOT/iraf/. # 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 gemini = /iraf/gemini/' > GEMINI.extern.pkg echo 'task gemini.pkg = gemini$gemini.cl' >> GEMINI.extern.pkg echo '' >> GEMINI.extern.pkg echo ' ,gemini$lib/helpdb.mip\' > GEMINI.helpdb.mip %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/iraf %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/gemini /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Fri Nov 17 2006 - update to v1.9; build under FC 6 * Sat Jun 25 2005 - update to v1.8; build under FC 4 * Sun Aug 15 2004 - build under FC 2 * Fri Jan 16 2004 - updated to version 1.5; build under FC 1 * Wed May 08 2002 - updated to new version 1.3 * Mon Feb 04 2002 - updated to new version 1.2 * Wed Feb 05 2001 - first crack at making rpm