%define __spec_install_post /bin/true Summary: SAO DS9 Image Display and Analysis Package Name: ds9 Version: 4.0b10 Release: 1.el5.uson License: distributable, see http://hea-www.harvard.edu/RD/index.html Group: Applications/Scientific Source0: ftp://sao-ftp.harvard.edu/pub/rd/ds9/linux/ds9.linux64.%{version}.tar.gz Source1: DS9.desktop Source2: ftp://sao-ftp.harvard.edu/pub/rd/ds9/linux/ds9.linux.%{version}.tar.gz Source3: ds9.png URL: http://hea-www.harvard.edu/RD/index.html Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON BuildRoot: %{_tmppath}/%{name}-root %description DS9 is the latest generation of the SAOImage image display and analysis system. This software is actively under development, but is still quite usable. The big advantage of DS9 over things like classic SAOImage or XImtool is that it will work on TrueColor displays (i.e. color depths >=16 bpp). %prep %ifarch x86_64 tar xvvzf $RPM_SOURCE_DIR/ds9.linux64.%{version}.tar.gz %else tar xvvzf $RPM_SOURCE_DIR/ds9.linux.%{version}.tar.gz %endif %build cd $RPM_BUILD_DIR touch ds9 %install mkdir -p $RPM_BUILD_ROOT/usr/bin/ cp ds9 $RPM_BUILD_ROOT/usr/bin/. mkdir -p $RPM_BUILD_ROOT/usr/share/applications/ cp $RPM_SOURCE_DIR/DS9.desktop $RPM_BUILD_ROOT/usr/share/applications/. mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/ cp $RPM_SOURCE_DIR/ds9.png $RPM_BUILD_ROOT/usr/share/pixmaps/. %post if [ "`grep -c ds9 /etc/prelink.conf`" -lt 1 ]; then echo '-b /usr/bin/ds9' >> /etc/prelink.conf; fi %clean rm -rf $RPM_BUILD_ROOT rm -fr $RPM_BUILD_DIR/ds9 %files /usr/bin/ds9 /usr/share/applications /usr/share/pixmaps/ds9.png %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Wed Nov 1 2006 tim pickering - update to 4.0b10 * Mon Jun 12 2006 tim pickering - update to 4.0b9; add postinstall script to keep prelink's grubby hands off ds9 * Mon Feb 6 2006 tim pickering - update to 4.0b7 * Wed Jun 22 2005 tim pickering - combine i386 and x86_64 into same source rpm * Tue Oct 19 2004 tim pickering - package 64-bit version for x86_64 * Mon Sep 27 2004 tim pickering - upgrade to 3.0.3 * Fri Aug 13 2004 tim pickering - upgrade to 3.0.1; build for FC 2 * Wed Jan 14 2004 tim pickering - upgrade to 3.0b6; build for FC 1 * Tue Aug 19 2003 tim pickering - upgrade to 3.0b5 * Wed May 08 2002 - upgrade to official 2.1 * Mon Feb 04 2002 - upgrade to 2.1b5 * Mon Jul 16 2001 - upgrade to 2.1b4 to fix some nasty bugs * Fri Dec 1 2000 - upgrade to public version 2.0 * Mon Oct 23 2000 - build under RH 7.0 * Mon May 15 2000 - first attempt at rpm-ification.