%global debug_package %{nil} # Turn off striping of binaries %global __strip /bin/true Name: ds9 Version: 8.0.1 Release: 1%{?dist} Summary: Astronomical Data Visualization Application License: GPLv3+ URL: http://ds9.si.edu/site/Home.html Source0: http://ds9.si.edu/download/source/ds9.%{version}.tar.gz Source1: http://ds9.si.edu/download/fedora29/ds9.fedora29.%{version}.tar.gz Source2: http://ds9.si.edu/download/centos6/ds9.centos6.%{version}.tar.gz Source3: ds9.png Source4: ds9.desktop Source5: ds9.conf %description SAOImage DS9 is an astronomical imaging and data visualization application. DS9 supports FITS images and binary tables, multiple frame buffers, region manipulation, and many scale algorithms and colormaps. It provides for easy communication with external analysis tasks and is highly configurable and extensible via XPA and SAMP. %prep %setup -q -n SAOImageDS9 %build %install %{__mkdir_p} $RPM_BUILD_ROOT/usr/bin %ifarch x86_64 tar -C $RPM_BUILD_ROOT/usr/bin -xzf %{SOURCE1} %else tar -C $RPM_BUILD_ROOT/usr/bin -xzf %{SOURCE2} %endif chmod 0755 $RPM_BUILD_ROOT/usr/bin/ds9 ls $RPM_BUILD_ROOT/usr/bin %{__mkdir_p} $RPM_BUILD_ROOT/%{_datadir}/pixmaps %{__cp} -a %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/pixmaps %{__mkdir_p} $RPM_BUILD_ROOT/%{_datadir}/applications %{__cp} -a %{SOURCE4} $RPM_BUILD_ROOT/%{_datadir}/applications %{__mkdir_p} $RPM_BUILD_ROOT/etc/prelink.conf.d %{__cp} -a %{SOURCE5} $RPM_BUILD_ROOT/etc/prelink.conf.d %files %license LICENSE %{_bindir}/ds9 %{_datadir}/* %{_sysconfdir}/* %changelog * Wed Mar 08 2017 Christian Dersch - 7.5-1 - new version * Fri Nov 6 2015 Christian Dersch - 7.3b5-2 - no debuginfo * Mon Mar 10 2014 Christian Dersch 7.3b5-1 - update to 7.3b5 * Mon Aug 26 2013 Christian Dersch 7.3b2-1 - update to 7.3b2 - switched to binary repackaging due to packaging issues * Thu Mar 21 2013 Christian Dersch 7.1-1 - initial build, spec taken from joequant from Mageia