Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release-src > by-pkgid > 1c2c51afc3284db25b4799e1ce873f29 > files > 15

ds9-7.5-2.mga6.src.rpm

Name:          ds9
Version:       7.5
Summary:       Astronomical Data Visualization Application
Release:       %mkrel 2
License:       GPLv3+
Group:         Sciences/Astronomy

URL:           http://hea-www.harvard.edu/RD/ds9/
Source:        http://hea-www.harvard.edu/RD/ds9/download/source/ds9.%{version}.tar.gz
Source1:       ds9.desktop
Source2:       ds9.png

#these patches remove the static deps to lib we already have. At some
#point, if we import all the required tcl packages, we could nuke them
#all
#
#in configure.in
Patch0:        ds9-7.5-configure.patch
#in make.pkgs
Patch1:        ds9-7.5-pkgs.patch
#in make.include
Patch2:        ds9-7.5-include.patch 
#in makefile.in
Patch3:        ds9-7.5-makefile.patch 
#fix missing include for tkhtml
Patch4:        ds9-7.5-tkhtml.patch

#fix undef symbol to psScale (!!!dirty guess!!!)
Patch6:        ds9-7.5-tksaowidget.patch 
#linking to dynamic libs
Patch7:        ds9-7.5-ds9makefile.patch
Patch8:        ds9-7.5-ds9configure.patch
Patch9:        ds9-7.4.1-ds9init.patch
Patch10:       ds9-7.5-ds9tcl.patch
#format litteral
Patch11:       ds9-7.5-format.patch


BuildRequires: zip, unzip
BuildRequires: gcc-gfortran
BuildRequires: fontconfig-devel
BuildRequires: tcl-devel
BuildRequires: tk-devel
BuildRequires: tcl-tcllib
BuildRequires: tcl-tclxml-devel
BuildRequires: tkimg-devel
BuildRequires: xmlrpc-c-devel
BuildRequires: xpa-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: jbigkit-devel
BuildRequires: libzip-devel
BuildRequires: zlib-devel
BuildRequires: libxt-devel

Requires:      tcl
Requires:      tk
Requires:      tcl-tcllib
Requires:      tcl-xmlrpc
Requires:      tcl-tclxml

%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.

%prep
%setup -q -n sao%{name}
#clean (some) of the static junk
%__rm -r -f tcl8.6
%__rm -r -f tcllib
%__rm -r -f tclxml
%__rm -r -f tk8.6
%__rm -r -f tkimg
%__rm -r -f xpa

#fix the mess generated by cleaning the static junk
%patch0 -p1 -b .orig
%patch1 -p1 -b .orig
%patch2 -p1 -b .orig
%patch3 -p1 -b .orig
%patch4 -p1 -b .orig

%patch6 -p1 -b .orig
%patch7 -p1 -b .orig
%patch8 -p1 -b .orig
%patch9 -p1 -b .orig
%patch10 -p1
%patch11 -p1 -b .orig


%build
autoreconf -fi ./tclcheckdns
autoreconf -fi ./unix
autoreconf -fi ./ds9/unix
export CONFIGURE_TOP=./unix
%configure2_5x
%make_build

%install
%__mkdir_p %{buildroot}/usr/bin
%__cp bin/ds9 %{buildroot}/usr/bin
%__mkdir_p %{buildroot}/%{_datadir}/pixmaps
%__cp -a %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps
%__mkdir_p %{buildroot}/%{_datadir}/applications
%__cp -a %{SOURCE1} %{buildroot}/%{_datadir}/applications
%__mkdir_p %{buildroot}/etc/prelink.conf.d
%__mkdir_p %{buildroot}/%{_datadir}/ds9
%__cp -a share/ds9 %{buildroot}/%{_datadir}

%files
%doc LICENSE.txt copyright
%{_bindir}/ds9
%{_datadir}/applications/ds9.desktop
%{_datadir}/pixmaps/ds9.png
%{_datadir}/ds9



%changelog
* Sat May 20 2017 eatdirt <eatdirt> 7.5-2.mga6
+ Revision: 1103448
- Unobsoleting ds9

* Tue Feb 14 2017 eatdirt <eatdirt> 7.5-1.mga6
+ Revision: 1086135
- Upgrade to version 7.5

* Fri Apr 01 2016 eatdirt <eatdirt> 7.4.1-3.mga6
+ Revision: 997324
- Fix missing requires

* Thu Mar 31 2016 eatdirt <eatdirt> 7.4.1-2.mga6
+ Revision: 997168
- Fix linking against xpa and xml, allow stripping
- Upgraded to version 7.4.1, added support to tcl8.6
- Restoring ds9 from obsolete

  + joequant <joequant>
    - remove since it doesn't build

  + umeabot <umeabot>
    - Mageia 6 Mass Rebuild

  + daviddavid <daviddavid>
    - rebuild for new tcl/tk 8.6.4

* Fri Sep 18 2015 tv <tv> 7.2-10.mga6
+ Revision: 880367
- fix & re-enable debuginfo
- fix & re-enable debuginfo

* Wed Sep 09 2015 neoclust <neoclust> 7.2-9.mga6
+ Revision: 874932
- Fix build with new rpm ( empty debuginfo)

* Tue May 05 2015 eatdirt <eatdirt> 7.2-8.mga5
+ Revision: 821275
- Bumping release tag

* Mon Feb 23 2015 joequant <joequant> 7.2-7.mga5
+ Revision: 816753
- add tk - fix 15345

* Wed Oct 15 2014 umeabot <umeabot> 7.2-6.mga5
+ Revision: 743232
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 7.2-5.mga5
+ Revision: 678869
- Mageia 5 Mass Rebuild

* Thu Jun 19 2014 eatdirt <eatdirt> 7.2-4.mga5
+ Revision: 638084
- Rebuilt for tcl 8.5.15

* Sat Oct 19 2013 umeabot <umeabot> 7.2-3.mga4
+ Revision: 531960
- Mageia 4 Mass Rebuild

* Tue Aug 13 2013 joequant <joequant> 7.2-2.mga4
+ Revision: 466150
- update syslib files to fix #10991

* Mon Jul 29 2013 joequant <joequant> 7.2-1.mga4
+ Revision: 460406
- upgrade to 7.2

* Fri Jun 07 2013 joequant <joequant> 7.1-1.mga4
+ Revision: 440254
- add xt-devel build requires
- fix category and improve macros
- change source to package requires
- imported package ds9